• 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=e5579ef142f0eb3873c7fd526320919b000f57ee$
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