1 // Copyright (c) 2017 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
5 // ---------------------------------------------------------------------------
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
13 #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_CTOCPP_H_
14 #define CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_CTOCPP_H_
17 #if !defined(WRAPPING_CEF_SHARED)
18 #error This file can be included wrapper-side only
21 #include "include/views/cef_browser_view.h"
22 #include "include/capi/views/cef_browser_view_capi.h"
23 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
25 // Wrap a C structure with a C++ class.
26 // This class may be instantiated and accessed wrapper-side only.
27 class CefBrowserViewCToCpp
28 : public CefCToCppRefCounted<CefBrowserViewCToCpp, CefBrowserView,
31 CefBrowserViewCToCpp();
33 // CefBrowserView methods.
34 CefRefPtr<CefBrowser> GetBrowser() OVERRIDE;
35 void SetPreferAccelerators(bool prefer_accelerators) OVERRIDE;
38 CefRefPtr<CefBrowserView> AsBrowserView() OVERRIDE;
39 CefRefPtr<CefButton> AsButton() OVERRIDE;
40 CefRefPtr<CefPanel> AsPanel() OVERRIDE;
41 CefRefPtr<CefScrollView> AsScrollView() OVERRIDE;
42 CefRefPtr<CefTextfield> AsTextfield() OVERRIDE;
43 CefString GetTypeString() OVERRIDE;
44 CefString ToString(bool include_children) OVERRIDE;
45 bool IsValid() OVERRIDE;
46 bool IsAttached() OVERRIDE;
47 bool IsSame(CefRefPtr<CefView> that) OVERRIDE;
48 CefRefPtr<CefViewDelegate> GetDelegate() OVERRIDE;
49 CefRefPtr<CefWindow> GetWindow() OVERRIDE;
51 void SetID(int id) OVERRIDE;
52 int GetGroupID() OVERRIDE;
53 void SetGroupID(int group_id) OVERRIDE;
54 CefRefPtr<CefView> GetParentView() OVERRIDE;
55 CefRefPtr<CefView> GetViewForID(int id) OVERRIDE;
56 void SetBounds(const CefRect& bounds) OVERRIDE;
57 CefRect GetBounds() OVERRIDE;
58 CefRect GetBoundsInScreen() OVERRIDE;
59 void SetSize(const CefSize& size) OVERRIDE;
60 CefSize GetSize() OVERRIDE;
61 void SetPosition(const CefPoint& position) OVERRIDE;
62 CefPoint GetPosition() OVERRIDE;
63 CefSize GetPreferredSize() OVERRIDE;
64 void SizeToPreferredSize() OVERRIDE;
65 CefSize GetMinimumSize() OVERRIDE;
66 CefSize GetMaximumSize() OVERRIDE;
67 int GetHeightForWidth(int width) OVERRIDE;
68 void InvalidateLayout() OVERRIDE;
69 void SetVisible(bool visible) OVERRIDE;
70 bool IsVisible() OVERRIDE;
71 bool IsDrawn() OVERRIDE;
72 void SetEnabled(bool enabled) OVERRIDE;
73 bool IsEnabled() OVERRIDE;
74 void SetFocusable(bool focusable) OVERRIDE;
75 bool IsFocusable() OVERRIDE;
76 bool IsAccessibilityFocusable() OVERRIDE;
77 void RequestFocus() OVERRIDE;
78 void SetBackgroundColor(cef_color_t color) OVERRIDE;
79 cef_color_t GetBackgroundColor() OVERRIDE;
80 bool ConvertPointToScreen(CefPoint& point) OVERRIDE;
81 bool ConvertPointFromScreen(CefPoint& point) OVERRIDE;
82 bool ConvertPointToWindow(CefPoint& point) OVERRIDE;
83 bool ConvertPointFromWindow(CefPoint& point) OVERRIDE;
84 bool ConvertPointToView(CefRefPtr<CefView> view, CefPoint& point) OVERRIDE;
85 bool ConvertPointFromView(CefRefPtr<CefView> view, CefPoint& point) OVERRIDE;
88 #endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_BROWSER_VIEW_CTOCPP_H_