2011-05-20 14:42:25 +00:00
|
|
|
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
2010-10-03 21:04:50 +00: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 20:38:27 +00:00
|
|
|
#ifndef _CEFCLIENT_H
|
|
|
|
#define _CEFCLIENT_H
|
2010-10-03 21:04:50 +00:00
|
|
|
|
|
|
|
#include "include/cef.h"
|
2011-03-08 03:54:50 +00:00
|
|
|
|
2010-10-28 20:38:27 +00:00
|
|
|
// Returns the main browser window instance.
|
2010-10-03 21:04:50 +00:00
|
|
|
CefRefPtr<CefBrowser> AppGetBrowser();
|
|
|
|
|
2010-10-28 20:38:27 +00:00
|
|
|
// Returns the main application window handle.
|
|
|
|
CefWindowHandle AppGetMainHwnd();
|
|
|
|
|
|
|
|
// Returns the application working directory.
|
2010-11-22 17:49:46 +00:00
|
|
|
std::string AppGetWorkingDirectory();
|
2010-10-28 20:38:27 +00:00
|
|
|
|
|
|
|
// Implementations for various tests.
|
2011-01-29 01:42:59 +00:00
|
|
|
void RunGetSourceTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunGetTextTest(CefRefPtr<CefBrowser> browser);
|
2010-10-28 20:38:27 +00:00
|
|
|
void RunRequestTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunJavaScriptExecuteTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunPopupTest(CefRefPtr<CefBrowser> browser);
|
2010-11-17 17:28:32 +00:00
|
|
|
void RunLocalStorageTest(CefRefPtr<CefBrowser> browser);
|
2010-12-16 21:54:42 +00:00
|
|
|
void RunAccelerated2DCanvasTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunAcceleratedLayersTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunWebGLTest(CefRefPtr<CefBrowser> browser);
|
|
|
|
void RunHTML5VideoTest(CefRefPtr<CefBrowser> browser);
|
2011-01-11 23:46:14 +00:00
|
|
|
void RunXMLHTTPRequestTest(CefRefPtr<CefBrowser> browser);
|
2011-02-09 22:04:35 +00:00
|
|
|
void RunWebURLRequestTest(CefRefPtr<CefBrowser> browser);
|
2011-02-23 03:45:13 +00:00
|
|
|
void RunDOMAccessTest(CefRefPtr<CefBrowser> browser);
|
2011-02-28 00:33:11 +00:00
|
|
|
void RunDragDropTest(CefRefPtr<CefBrowser> browser);
|
2011-06-14 15:09:55 +00:00
|
|
|
void RunModalDialogTest(CefRefPtr<CefBrowser> browser);
|
2010-10-28 20:38:27 +00:00
|
|
|
|
|
|
|
#endif // _CEFCLIENT_H
|