| 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_ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // For default constructions, use drag |identity| 0. | 32 // For default constructions, use drag |identity| 0. |
| 33 WebDropData() : identity(0) {} | 33 WebDropData() : identity(0) {} |
| 34 | 34 |
| 35 int32 identity; | 35 int32 identity; |
| 36 | 36 |
| 37 // User is dragging a link into the webview. | 37 // User is dragging a link into the webview. |
| 38 GURL url; | 38 GURL url; |
| 39 string16 url_title; // The title associated with |url|. | 39 string16 url_title; // The title associated with |url|. |
| 40 | 40 |
| 41 // User is dragging a link out-of the webview. |
| 42 GURL download_url; |
| 43 |
| 41 // File extension for dragging images from a webview to the desktop. | 44 // File extension for dragging images from a webview to the desktop. |
| 42 string16 file_extension; | 45 string16 file_extension; |
| 43 | 46 |
| 44 // User is dropping one or more files on the webview. | 47 // User is dropping one or more files on the webview. |
| 45 std::vector<string16> filenames; | 48 std::vector<string16> filenames; |
| 46 | 49 |
| 47 // User is dragging plain text into the webview. | 50 // User is dragging plain text into the webview. |
| 48 string16 plain_text; | 51 string16 plain_text; |
| 49 | 52 |
| 50 // User is dragging text/html into the webview (e.g., out of Firefox). | 53 // User is dragging text/html into the webview (e.g., out of Firefox). |
| (...skipping 10 matching lines...) Expand all Loading... |
| 61 WebKit::WebDragData ToDragData() const; | 64 WebKit::WebDragData ToDragData() const; |
| 62 | 65 |
| 63 // Helper method for converting Window's specific IDataObject to a WebDropData | 66 // Helper method for converting Window's specific IDataObject to a WebDropData |
| 64 // object. TODO(tc): Move this to the browser side since it's Windows | 67 // object. TODO(tc): Move this to the browser side since it's Windows |
| 65 // specific and no longer used in webkit. | 68 // specific and no longer used in webkit. |
| 66 static void PopulateWebDropData(IDataObject* data_object, | 69 static void PopulateWebDropData(IDataObject* data_object, |
| 67 WebDropData* drop_data); | 70 WebDropData* drop_data); |
| 68 }; | 71 }; |
| 69 | 72 |
| 70 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ | 73 #endif // WEBKIT_GLUE_WEBDROPDATA_H_ |
| OLD | NEW |