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.
|
|
|
|
|
2012-01-09 23:46:23 +00:00
|
|
|
#ifndef CEF_TESTS_CEFCLIENT_CEFCLIENT_H_
|
|
|
|
#define CEF_TESTS_CEFCLIENT_CEFCLIENT_H_
|
|
|
|
#pragma once
|
2010-10-03 21:04:50 +00:00
|
|
|
|
2012-01-09 23:46:23 +00:00
|
|
|
#include <string>
|
2011-12-23 17:36:30 +00:00
|
|
|
#include "include/cef_base.h"
|
|
|
|
|
|
|
|
class CefApp;
|
|
|
|
class CefBrowser;
|
|
|
|
class CefCommandLine;
|
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
|
|
|
|
2011-11-14 23:43:52 +00:00
|
|
|
// Initialize the application command line.
|
|
|
|
void AppInitCommandLine(int argc, const char* const* argv);
|
|
|
|
|
|
|
|
// Returns the application command line object.
|
|
|
|
CefRefPtr<CefCommandLine> AppGetCommandLine();
|
|
|
|
|
|
|
|
// Returns the application settings based on command line arguments.
|
2011-11-23 22:47:09 +00:00
|
|
|
void AppGetSettings(CefSettings& settings, CefRefPtr<CefApp>& app);
|
2011-11-14 23:43:52 +00:00
|
|
|
|
|
|
|
// Returns the application browser settings based on command line arguments.
|
|
|
|
void AppGetBrowserSettings(CefBrowserSettings& settings);
|
|
|
|
|
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);
|
2011-10-28 20:30:19 +00:00
|
|
|
void RunJavaScriptInvokeTest(CefRefPtr<CefBrowser> browser);
|
2010-10-28 20:38:27 +00:00
|
|
|
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
|
|
|
|
2011-10-21 19:35:19 +00:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
void RunTransparentPopupTest(CefRefPtr<CefBrowser> browser);
|
2011-11-09 20:09:24 +00:00
|
|
|
void RunGetImageTest(CefRefPtr<CefBrowser> browser);
|
2011-10-21 19:35:19 +00:00
|
|
|
#endif
|
|
|
|
|
2012-01-09 23:46:23 +00:00
|
|
|
#endif // CEF_TESTS_CEFCLIENT_CEFCLIENT_H_
|