Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: content/public/common/drop_data.h

Issue 18281002: Move WebDropData to content::DropData and split off conversion function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/web_drag_dest_delegate.h ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/drop_data.h
diff --git a/webkit/common/webdropdata.h b/content/public/common/drop_data.h
similarity index 73%
rename from webkit/common/webdropdata.h
rename to content/public/common/drop_data.h
index 293e2bb2f14e436d821df9e4e6de99004abae3bd..008b3f9ae3416a057338e627e24df039821b15f1 100644
--- a/webkit/common/webdropdata.h
+++ b/content/public/common/drop_data.h
@@ -1,33 +1,28 @@
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-//
-// A struct for managing data being dropped on a webview. This represents a
-// union of all the types of data that can be dropped in a platform neutral
+
+// A struct for managing data being dropped on a WebContents. This represents
+// a union of all the types of data that can be dropped in a platform neutral
// way.
-#ifndef WEBKIT_COMMON_WEBDROPDATA_H_
-#define WEBKIT_COMMON_WEBDROPDATA_H_
+#ifndef CONTENT_PUBLIC_COMMON_DROP_DATA_H_
+#define CONTENT_PUBLIC_COMMON_DROP_DATA_H_
#include <map>
#include <string>
#include <vector>
#include "base/strings/nullable_string16.h"
-#include "base/strings/string16.h"
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebReferrerPolicy.h"
#include "url/gurl.h"
-#include "webkit/common/webkit_common_export.h"
-
-struct IDataObject;
-namespace WebKit {
-class WebDragData;
-}
+namespace content {
-struct WEBKIT_COMMON_EXPORT WebDropData {
+struct CONTENT_EXPORT DropData {
// The struct is used to represent a file in the drop data.
- struct WEBKIT_COMMON_EXPORT FileInfo {
+ struct CONTENT_EXPORT FileInfo {
FileInfo();
FileInfo(const base::string16& path, const base::string16& display_name);
@@ -37,12 +32,8 @@ struct WEBKIT_COMMON_EXPORT WebDropData {
base::string16 display_name;
};
- // Construct from a WebDragData object.
- explicit WebDropData(const WebKit::WebDragData&);
-
- WebDropData();
-
- ~WebDropData();
+ DropData();
+ ~DropData();
// User is dragging a link into the webview.
GURL url;
@@ -77,4 +68,6 @@ struct WEBKIT_COMMON_EXPORT WebDropData {
std::map<base::string16, base::string16> custom_data;
};
-#endif // WEBKIT_COMMON_WEBDROPDATA_H_
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_
« no previous file with comments | « content/public/browser/web_drag_dest_delegate.h ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698