OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // A struct for managing data being dropped on a webview. This represents a | 5 // A struct for managing data being dropped on a webview. This represents a |
6 // union of all the types of data that can be dropped in a platform neutral | 6 // union of all the types of data that can be dropped in a platform neutral |
7 // way. | 7 // way. |
8 | 8 |
9 #ifndef WEBKIT_GLUE_WEBDROPDATA_H_ | 9 #ifndef WEBKIT_GLUE_WEBDROPDATA_H_ |
10 #define WEBKIT_GLUE_WEBDROPDATA_H_ | 10 #define WEBKIT_GLUE_WEBDROPDATA_H_ |
11 | 11 |
12 #include <map> | 12 #include <map> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/nullable_string16.h" | 16 #include "base/nullable_string16.h" |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h
" | 19 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
20 #include "webkit/glue/webkit_glue_export.h" | 20 #include "webkit/glue/webkit_glue_export.h" |
21 | 21 |
22 struct IDataObject; | 22 struct IDataObject; |
23 | 23 |
24 namespace WebKit { | 24 namespace WebKit { |
25 class WebDragData; | 25 class WebDragData; |
26 } | 26 } |
27 | 27 |
28 struct WEBKIT_GLUE_EXPORT WebDropData { | 28 struct WEBKIT_GLUE_EXPORT WebDropData { |
29 // The struct is used to represent a file in the drop data. | 29 // The struct is used to represent a file in the drop data. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 WebKit::WebDragData ToDragData() const; | 80 WebKit::WebDragData ToDragData() const; |
81 | 81 |
82 // Helper method for converting Window's specific IDataObject to a WebDropData | 82 // Helper method for converting Window's specific IDataObject to a WebDropData |
83 // object. TODO(tc): Move this to the browser side since it's Windows | 83 // object. TODO(tc): Move this to the browser side since it's Windows |
84 // specific and no longer used in webkit. | 84 // specific and no longer used in webkit. |
85 static void PopulateWebDropData(IDataObject* data_object, | 85 static void PopulateWebDropData(IDataObject* data_object, |
86 WebDropData* drop_data); | 86 WebDropData* drop_data); |
87 }; | 87 }; |
88 | 88 |
89 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ | 89 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ |
OLD | NEW |