1 // Copyright (c) 2022 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. 4 // 5 // --------------------------------------------------------------------------- 6 // 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. 11 // 12 // $hash=7e1c98d4417c831dc850f36bc6ac20d95cd03dab$ 13 // 14 15 #ifndef CEF_LIBCEF_DLL_CTOCPP_VIEWS_OVERLAY_CONTROLLER_CTOCPP_H_ 16 #define CEF_LIBCEF_DLL_CTOCPP_VIEWS_OVERLAY_CONTROLLER_CTOCPP_H_ 17 #pragma once 18 19 #if !defined(WRAPPING_CEF_SHARED) 20 #error This file can be included wrapper-side only 21 #endif 22 23 #include "include/capi/views/cef_overlay_controller_capi.h" 24 #include "include/capi/views/cef_view_capi.h" 25 #include "include/capi/views/cef_window_capi.h" 26 #include "include/views/cef_overlay_controller.h" 27 #include "include/views/cef_view.h" 28 #include "include/views/cef_window.h" 29 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h" 30 31 // Wrap a C structure with a C++ class. 32 // This class may be instantiated and accessed wrapper-side only. 33 class CefOverlayControllerCToCpp 34 : public CefCToCppRefCounted<CefOverlayControllerCToCpp, 35 CefOverlayController, 36 cef_overlay_controller_t> { 37 public: 38 CefOverlayControllerCToCpp(); 39 virtual ~CefOverlayControllerCToCpp(); 40 41 // CefOverlayController methods. 42 bool IsValid() override; 43 bool IsSame(CefRefPtr<CefOverlayController> that) override; 44 CefRefPtr<CefView> GetContentsView() override; 45 CefRefPtr<CefWindow> GetWindow() override; 46 cef_docking_mode_t GetDockingMode() override; 47 void Destroy() override; 48 void SetBounds(const CefRect& bounds) override; 49 CefRect GetBounds() override; 50 CefRect GetBoundsInScreen() override; 51 void SetSize(const CefSize& size) override; 52 CefSize GetSize() override; 53 void SetPosition(const CefPoint& position) override; 54 CefPoint GetPosition() override; 55 void SetInsets(const CefInsets& insets) override; 56 CefInsets GetInsets() override; 57 void SizeToPreferredSize() override; 58 void SetVisible(bool visible) override; 59 bool IsVisible() override; 60 bool IsDrawn() override; 61 }; 62 63 #endif // CEF_LIBCEF_DLL_CTOCPP_VIEWS_OVERLAY_CONTROLLER_CTOCPP_H_ 64