2013-06-24 17:45:58 +02:00
|
|
|
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_COMMON_DRAG_DATA_IMPL_H_
|
|
|
|
#define CEF_LIBCEF_COMMON_DRAG_DATA_IMPL_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "include/cef_drag_data.h"
|
2013-07-24 22:15:18 +02:00
|
|
|
#include "content/public/common/drop_data.h"
|
2013-06-24 17:45:58 +02:00
|
|
|
|
|
|
|
// Implementation of CefDragData.
|
|
|
|
class CefDragDataImpl : public CefDragData {
|
|
|
|
public:
|
2013-07-24 22:15:18 +02:00
|
|
|
explicit CefDragDataImpl(const content::DropData& data);
|
2013-06-24 17:45:58 +02:00
|
|
|
|
|
|
|
virtual bool IsLink();
|
|
|
|
virtual bool IsFragment();
|
|
|
|
virtual bool IsFile();
|
|
|
|
virtual CefString GetLinkURL();
|
|
|
|
virtual CefString GetLinkTitle();
|
|
|
|
virtual CefString GetLinkMetadata();
|
|
|
|
virtual CefString GetFragmentText();
|
|
|
|
virtual CefString GetFragmentHtml();
|
|
|
|
virtual CefString GetFragmentBaseURL();
|
|
|
|
virtual CefString GetFileName();
|
|
|
|
virtual bool GetFileNames(std::vector<CefString>& names);
|
|
|
|
|
|
|
|
protected:
|
2013-07-24 22:15:18 +02:00
|
|
|
content::DropData data_;
|
2013-06-24 17:45:58 +02:00
|
|
|
|
|
|
|
IMPLEMENT_REFCOUNTING(CefDragDataImpl);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_COMMON_DRAG_DATA_IMPL_H_
|