• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=0814e8ced30cbbd7c5867464550da973395b385b$
13 //
14 
15 #ifndef CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_
16 #define CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_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_drag_data_capi.h"
25 #include "include/cef_drag_data.h"
26 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
27 
28 // Wrap a C structure with a C++ class.
29 // This class may be instantiated and accessed wrapper-side only.
30 class CefDragDataCToCpp : public CefCToCppRefCounted<CefDragDataCToCpp,
31                                                      CefDragData,
32                                                      cef_drag_data_t> {
33  public:
34   CefDragDataCToCpp();
35   virtual ~CefDragDataCToCpp();
36 
37   // CefDragData methods.
38   CefRefPtr<CefDragData> Clone() override;
39   bool IsReadOnly() override;
40   bool IsLink() override;
41   bool IsFragment() override;
42   bool IsFile() override;
43   CefString GetLinkURL() override;
44   CefString GetLinkTitle() override;
45   CefString GetLinkMetadata() override;
46   CefString GetFragmentText() override;
47   CefString GetFragmentHtml() override;
48   CefString GetFragmentBaseURL() override;
49   CefString GetFileName() override;
50   size_t GetFileContents(CefRefPtr<CefStreamWriter> writer) override;
51   bool GetFileNames(std::vector<CefString>& names) override;
52   void SetLinkURL(const CefString& url) override;
53   void SetLinkTitle(const CefString& title) override;
54   void SetLinkMetadata(const CefString& data) override;
55   void SetFragmentText(const CefString& text) override;
56   void SetFragmentHtml(const CefString& html) override;
57   void SetFragmentBaseURL(const CefString& base_url) override;
58   void ResetFileContents() override;
59   void AddFile(const CefString& path, const CefString& display_name) override;
60   CefRefPtr<CefImage> GetImage() override;
61   CefPoint GetImageHotspot() override;
62   bool HasImage() override;
63 };
64 
65 #endif  // CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_
66