• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2021 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=0413031a4d40137ab08d1bd99af0216e88ebf6ea$
13 //
14 
15 #ifndef CEF_LIBCEF_DLL_CTOCPP_BROWSER_CTOCPP_H_
16 #define CEF_LIBCEF_DLL_CTOCPP_BROWSER_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 <vector>
24 #include "include/capi/cef_browser_capi.h"
25 #include "include/capi/cef_client_capi.h"
26 #include "include/cef_browser.h"
27 #include "include/cef_client.h"
28 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
29 
30 // Wrap a C structure with a C++ class.
31 // This class may be instantiated and accessed wrapper-side only.
32 class CefBrowserCToCpp
33     : public CefCToCppRefCounted<CefBrowserCToCpp, CefBrowser, cef_browser_t> {
34  public:
35   CefBrowserCToCpp();
36   virtual ~CefBrowserCToCpp();
37 
38   // CefBrowser methods.
39   CefRefPtr<CefBrowserHost> GetHost() OVERRIDE;
40   bool CanGoBack() OVERRIDE;
41   void GoBack() OVERRIDE;
42   bool CanGoForward() OVERRIDE;
43   void GoForward() OVERRIDE;
44   bool IsLoading() OVERRIDE;
45   void Reload() OVERRIDE;
46   void ReloadIgnoreCache() OVERRIDE;
47   void StopLoad() OVERRIDE;
48   int GetIdentifier() OVERRIDE;
49   bool IsSame(CefRefPtr<CefBrowser> that) OVERRIDE;
50   bool IsPopup() OVERRIDE;
51   bool HasDocument() OVERRIDE;
52   CefRefPtr<CefFrame> GetMainFrame() OVERRIDE;
53   CefRefPtr<CefFrame> GetFocusedFrame() OVERRIDE;
54   CefRefPtr<CefFrame> GetFrame(int64 identifier) OVERRIDE;
55   CefRefPtr<CefFrame> GetFrame(const CefString& name) OVERRIDE;
56   size_t GetFrameCount() OVERRIDE;
57   void GetFrameIdentifiers(std::vector<int64>& identifiers) OVERRIDE;
58   void GetFrameNames(std::vector<CefString>& names) OVERRIDE;
59 };
60 
61 #endif  // CEF_LIBCEF_DLL_CTOCPP_BROWSER_CTOCPP_H_
62