OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/string16.h" | 15 #include "base/string16.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "webkit/glue/webkit_glue_export.h" |
17 | 18 |
18 struct IDataObject; | 19 struct IDataObject; |
19 | 20 |
20 namespace WebKit { | 21 namespace WebKit { |
21 class WebDragData; | 22 class WebDragData; |
22 } | 23 } |
23 | 24 |
24 struct WebDropData { | 25 struct WEBKIT_GLUE_EXPORT WebDropData { |
25 // Construct from a WebDragData object. | 26 // Construct from a WebDragData object. |
26 explicit WebDropData(const WebKit::WebDragData&); | 27 explicit WebDropData(const WebKit::WebDragData&); |
27 | 28 |
28 WebDropData(); | 29 WebDropData(); |
29 | 30 |
30 ~WebDropData(); | 31 ~WebDropData(); |
31 | 32 |
32 // User is dragging a link into the webview. | 33 // User is dragging a link into the webview. |
33 GURL url; | 34 GURL url; |
34 string16 url_title; // The title associated with |url|. | 35 string16 url_title; // The title associated with |url|. |
(...skipping 24 matching lines...) Expand all Loading... |
59 WebKit::WebDragData ToDragData() const; | 60 WebKit::WebDragData ToDragData() const; |
60 | 61 |
61 // Helper method for converting Window's specific IDataObject to a WebDropData | 62 // Helper method for converting Window's specific IDataObject to a WebDropData |
62 // object. TODO(tc): Move this to the browser side since it's Windows | 63 // object. TODO(tc): Move this to the browser side since it's Windows |
63 // specific and no longer used in webkit. | 64 // specific and no longer used in webkit. |
64 static void PopulateWebDropData(IDataObject* data_object, | 65 static void PopulateWebDropData(IDataObject* data_object, |
65 WebDropData* drop_data); | 66 WebDropData* drop_data); |
66 }; | 67 }; |
67 | 68 |
68 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ | 69 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ |
OLD | NEW |