2011-05-20 16:42:25 +02:00
|
|
|
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
2010-10-03 23:04:50 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
#ifndef _CEFCLIENT_H
|
|
|
|
#define _CEFCLIENT_H
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
#include "include/cef.h"
|
2011-03-08 04:54:50 +01:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
// Returns the main browser window instance.
|
2010-10-03 23:04:50 +02:00
|
|
|
CefRefPtr<CefBrowser> AppGetBrowser();
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
// Returns the main application window handle.
|
|
|
|
CefWindowHandle AppGetMainHwnd();
|
|
|
|
|
|
|
|
// Returns the application working directory.
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string AppGetWorkingDirectory();
|
2010-10-28 22:38:27 +02:00
|
|
|
|
|
|
|
// Implementations for various tests.
|
2011-01-29 02:42:59 +01:00
|
|
|
void RunGetSourceTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunGetTextTest(CefRefPtr<CefBrowser> browser);
|
2010-10-28 22:38:27 +02:00
|
|
|
void RunRequestTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunJavaScriptExecuteTest(CefRefPtr<CefBrowser> browser);
|
2011-10-28 22:30:19 +02:00
|
|
|
void RunJavaScriptInvokeTest(CefRefPtr<CefBrowser> browser);
|
2010-10-28 22:38:27 +02:00
|
|
|
void RunPopupTest(CefRefPtr<CefBrowser> browser);
|
2010-11-17 18:28:32 +01:00
|
|
|
void RunLocalStorageTest(CefRefPtr<CefBrowser> browser);
|
2010-12-16 22:54:42 +01:00
|
|
|
void RunAccelerated2DCanvasTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunAcceleratedLayersTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunWebGLTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunHTML5VideoTest(CefRefPtr<CefBrowser> browser);
|
2011-01-12 00:46:14 +01:00
|
|
|
void RunXMLHTTPRequestTest(CefRefPtr<CefBrowser> browser);
|
2011-02-09 23:04:35 +01:00
|
|
|
void RunWebURLRequestTest(CefRefPtr<CefBrowser> browser);
|
2011-02-23 04:45:13 +01:00
|
|
|
void RunDOMAccessTest(CefRefPtr<CefBrowser> browser);
|
2011-02-28 01:33:11 +01:00
|
|
|
void RunDragDropTest(CefRefPtr<CefBrowser> browser);
|
2011-06-14 17:09:55 +02:00
|
|
|
void RunModalDialogTest(CefRefPtr<CefBrowser> browser);
|
2010-10-28 22:38:27 +02:00
|
|
|
|
2011-10-21 21:35:19 +02:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
void RunTransparentPopupTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
#endif
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
#endif // _CEFCLIENT_H
|