2015-01-05 14:03:50 +01:00
|
|
|
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
2012-04-03 03:34:16 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CTOCPP_BROWSER_HOST_CTOCPP_H_
|
|
|
|
#define CEF_LIBCEF_DLL_CTOCPP_BROWSER_HOST_CTOCPP_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifndef USING_CEF_SHARED
|
|
|
|
#pragma message("Warning: "__FILE__" may be accessed wrapper-side only")
|
|
|
|
#else // USING_CEF_SHARED
|
|
|
|
|
2012-10-16 21:28:07 +02:00
|
|
|
#include <vector>
|
2012-04-03 03:34:16 +02:00
|
|
|
#include "include/cef_browser.h"
|
|
|
|
#include "include/capi/cef_browser_capi.h"
|
|
|
|
#include "include/cef_client.h"
|
|
|
|
#include "include/capi/cef_client_capi.h"
|
|
|
|
#include "libcef_dll/ctocpp/ctocpp.h"
|
|
|
|
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
|
|
// This class may be instantiated and accessed wrapper-side only.
|
|
|
|
class CefBrowserHostCToCpp
|
|
|
|
: public CefCToCpp<CefBrowserHostCToCpp, CefBrowserHost,
|
|
|
|
cef_browser_host_t> {
|
|
|
|
public:
|
|
|
|
explicit CefBrowserHostCToCpp(cef_browser_host_t* str)
|
|
|
|
: CefCToCpp<CefBrowserHostCToCpp, CefBrowserHost, cef_browser_host_t>(
|
|
|
|
str) {}
|
|
|
|
|
|
|
|
// CefBrowserHost methods
|
|
|
|
virtual CefRefPtr<CefBrowser> GetBrowser() OVERRIDE;
|
2013-03-19 23:59:33 +01:00
|
|
|
virtual void CloseBrowser(bool force_close) OVERRIDE;
|
2014-06-06 21:04:21 +02:00
|
|
|
virtual void SetFocus(bool focus) OVERRIDE;
|
|
|
|
virtual void SetWindowVisibility(bool visible) OVERRIDE;
|
2012-04-03 03:34:16 +02:00
|
|
|
virtual CefWindowHandle GetWindowHandle() OVERRIDE;
|
|
|
|
virtual CefWindowHandle GetOpenerWindowHandle() OVERRIDE;
|
|
|
|
virtual CefRefPtr<CefClient> GetClient() OVERRIDE;
|
2013-09-03 18:43:31 +02:00
|
|
|
virtual CefRefPtr<CefRequestContext> GetRequestContext() OVERRIDE;
|
2012-06-12 21:50:24 +02:00
|
|
|
virtual double GetZoomLevel() OVERRIDE;
|
|
|
|
virtual void SetZoomLevel(double zoomLevel) OVERRIDE;
|
2012-10-16 21:28:07 +02:00
|
|
|
virtual void RunFileDialog(FileDialogMode mode, const CefString& title,
|
2015-01-20 19:24:54 +01:00
|
|
|
const CefString& default_file_path,
|
|
|
|
const std::vector<CefString>& accept_filters, int selected_accept_filter,
|
2012-10-16 21:28:07 +02:00
|
|
|
CefRefPtr<CefRunFileDialogCallback> callback) OVERRIDE;
|
2013-02-13 23:47:04 +01:00
|
|
|
virtual void StartDownload(const CefString& url) OVERRIDE;
|
2013-10-23 21:30:47 +02:00
|
|
|
virtual void Print() OVERRIDE;
|
2013-10-24 00:44:12 +02:00
|
|
|
virtual void Find(int identifier, const CefString& searchText, bool forward,
|
|
|
|
bool matchCase, bool findNext) OVERRIDE;
|
|
|
|
virtual void StopFinding(bool clearSelection) OVERRIDE;
|
2013-11-08 17:06:06 +01:00
|
|
|
virtual void ShowDevTools(const CefWindowInfo& windowInfo,
|
2014-10-11 02:12:01 +02:00
|
|
|
CefRefPtr<CefClient> client, const CefBrowserSettings& settings,
|
|
|
|
const CefPoint& inspect_element_at) OVERRIDE;
|
2013-11-08 17:06:06 +01:00
|
|
|
virtual void CloseDevTools() OVERRIDE;
|
2014-11-24 20:23:26 +01:00
|
|
|
virtual void GetNavigationEntries(
|
|
|
|
CefRefPtr<CefNavigationEntryVisitor> visitor,
|
|
|
|
bool current_only) OVERRIDE;
|
2013-04-05 19:05:37 +02:00
|
|
|
virtual void SetMouseCursorChangeDisabled(bool disabled) OVERRIDE;
|
|
|
|
virtual bool IsMouseCursorChangeDisabled() OVERRIDE;
|
2014-10-07 22:44:33 +02:00
|
|
|
virtual void ReplaceMisspelling(const CefString& word) OVERRIDE;
|
2014-10-19 03:47:27 +02:00
|
|
|
virtual void AddWordToDictionary(const CefString& word) OVERRIDE;
|
2014-07-01 00:30:29 +02:00
|
|
|
virtual bool IsWindowRenderingDisabled() OVERRIDE;
|
|
|
|
virtual void WasResized() OVERRIDE;
|
|
|
|
virtual void WasHidden(bool hidden) OVERRIDE;
|
|
|
|
virtual void NotifyScreenInfoChanged() OVERRIDE;
|
|
|
|
virtual void Invalidate(PaintElementType type) OVERRIDE;
|
2012-11-21 01:40:15 +01:00
|
|
|
virtual void SendKeyEvent(const CefKeyEvent& event) OVERRIDE;
|
2013-01-12 00:00:39 +01:00
|
|
|
virtual void SendMouseClickEvent(const CefMouseEvent& event,
|
|
|
|
MouseButtonType type, bool mouseUp, int clickCount) OVERRIDE;
|
|
|
|
virtual void SendMouseMoveEvent(const CefMouseEvent& event,
|
|
|
|
bool mouseLeave) OVERRIDE;
|
|
|
|
virtual void SendMouseWheelEvent(const CefMouseEvent& event, int deltaX,
|
2012-11-21 01:40:15 +01:00
|
|
|
int deltaY) OVERRIDE;
|
|
|
|
virtual void SendFocusEvent(bool setFocus) OVERRIDE;
|
|
|
|
virtual void SendCaptureLostEvent() OVERRIDE;
|
2014-10-29 19:14:47 +01:00
|
|
|
virtual void NotifyMoveOrResizeStarted() OVERRIDE;
|
2014-07-01 00:30:29 +02:00
|
|
|
virtual CefTextInputContext GetNSTextInputContext() OVERRIDE;
|
|
|
|
virtual void HandleKeyEventBeforeTextInputClient(
|
|
|
|
CefEventHandle keyEvent) OVERRIDE;
|
|
|
|
virtual void HandleKeyEventAfterTextInputClient(
|
|
|
|
CefEventHandle keyEvent) OVERRIDE;
|
|
|
|
virtual void DragTargetDragEnter(CefRefPtr<CefDragData> drag_data,
|
|
|
|
const CefMouseEvent& event, DragOperationsMask allowed_ops) OVERRIDE;
|
|
|
|
virtual void DragTargetDragOver(const CefMouseEvent& event,
|
|
|
|
DragOperationsMask allowed_ops) OVERRIDE;
|
|
|
|
virtual void DragTargetDragLeave() OVERRIDE;
|
|
|
|
virtual void DragTargetDrop(const CefMouseEvent& event) OVERRIDE;
|
|
|
|
virtual void DragSourceEndedAt(int x, int y, DragOperationsMask op) OVERRIDE;
|
|
|
|
virtual void DragSourceSystemDragEnded() OVERRIDE;
|
2012-04-03 03:34:16 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // USING_CEF_SHARED
|
|
|
|
#endif // CEF_LIBCEF_DLL_CTOCPP_BROWSER_HOST_CTOCPP_H_
|
|
|
|
|