2023-01-02 23:47:15 +01:00
|
|
|
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
2014-01-06 20:48:18 +01:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2023-01-02 23:47:15 +01:00
|
|
|
// $hash=7a8ec7b7c1010725596b1a64eb325b0e75ea34b7$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_
|
|
|
|
#define CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_
|
|
|
|
#pragma once
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#if !defined(WRAPPING_CEF_SHARED)
|
|
|
|
#error This file can be included wrapper-side only
|
|
|
|
#endif
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include "include/capi/cef_drag_data_capi.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/cef_drag_data.h"
|
2017-02-09 23:07:43 +01:00
|
|
|
#include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
|
2014-01-06 20:48:18 +01:00
|
|
|
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
|
|
// This class may be instantiated and accessed wrapper-side only.
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefDragDataCToCpp : public CefCToCppRefCounted<CefDragDataCToCpp,
|
|
|
|
CefDragData,
|
|
|
|
cef_drag_data_t> {
|
2014-01-06 20:48:18 +01:00
|
|
|
public:
|
2015-04-26 20:40:01 +02:00
|
|
|
CefDragDataCToCpp();
|
2019-01-23 16:42:12 +01:00
|
|
|
virtual ~CefDragDataCToCpp();
|
2014-01-06 20:48:18 +01:00
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CefDragData methods.
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefDragData> Clone() override;
|
|
|
|
bool IsReadOnly() override;
|
|
|
|
bool IsLink() override;
|
|
|
|
bool IsFragment() override;
|
|
|
|
bool IsFile() override;
|
|
|
|
CefString GetLinkURL() override;
|
|
|
|
CefString GetLinkTitle() override;
|
|
|
|
CefString GetLinkMetadata() override;
|
|
|
|
CefString GetFragmentText() override;
|
|
|
|
CefString GetFragmentHtml() override;
|
|
|
|
CefString GetFragmentBaseURL() override;
|
|
|
|
CefString GetFileName() override;
|
|
|
|
size_t GetFileContents(CefRefPtr<CefStreamWriter> writer) override;
|
|
|
|
bool GetFileNames(std::vector<CefString>& names) override;
|
|
|
|
void SetLinkURL(const CefString& url) override;
|
|
|
|
void SetLinkTitle(const CefString& title) override;
|
|
|
|
void SetLinkMetadata(const CefString& data) override;
|
|
|
|
void SetFragmentText(const CefString& text) override;
|
|
|
|
void SetFragmentHtml(const CefString& html) override;
|
|
|
|
void SetFragmentBaseURL(const CefString& base_url) override;
|
|
|
|
void ResetFileContents() override;
|
|
|
|
void AddFile(const CefString& path, const CefString& display_name) override;
|
2022-03-02 20:44:16 +01:00
|
|
|
void ClearFilenames() override;
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefImage> GetImage() override;
|
|
|
|
CefPoint GetImageHotspot() override;
|
|
|
|
bool HasImage() override;
|
2014-01-06 20:48:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_DLL_CTOCPP_DRAG_DATA_CTOCPP_H_
|