2011-08-22 03:31:55 +02:00
|
|
|
// Copyright (c) 2011 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.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#ifndef CEF_LIBCEF_DRAG_DATA_IMPL_H_
|
|
|
|
#define CEF_LIBCEF_DRAG_DATA_IMPL_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
2011-08-22 03:31:55 +02:00
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
#include "include/cef_drag_data.h"
|
2011-08-22 03:31:55 +02:00
|
|
|
#include "webkit/glue/webdropdata.h"
|
|
|
|
|
|
|
|
// Implementation of CefDragData.
|
2012-01-10 00:46:23 +01:00
|
|
|
class CefDragDataImpl : public CefDragData {
|
|
|
|
public:
|
2011-08-22 03:31:55 +02:00
|
|
|
explicit CefDragDataImpl(const WebDropData& data);
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
protected:
|
2011-08-22 03:31:55 +02:00
|
|
|
WebDropData data_;
|
|
|
|
|
|
|
|
IMPLEMENT_REFCOUNTING(CefDragDataImpl);
|
|
|
|
};
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#endif // CEF_LIBCEF_DRAG_DATA_IMPL_H_
|