| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_WEBDROPDATA_H_ | 9 #ifndef WEBKIT_COMMON_WEBDROPDATA_H_ |
| 10 #define WEBKIT_COMMON_WEBDROPDATA_H_ | 10 #define WEBKIT_COMMON_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/strings/nullable_string16.h" | 16 #include "base/strings/nullable_string16.h" |
| 17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
| 18 #include "googleurl/src/gurl.h" | |
| 19 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 18 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 19 #include "url/gurl.h" |
| 20 #include "webkit/common/webkit_common_export.h" | 20 #include "webkit/common/webkit_common_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_COMMON_EXPORT WebDropData { | 28 struct WEBKIT_COMMON_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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 GURL html_base_url; | 71 GURL html_base_url; |
| 72 | 72 |
| 73 // User is dragging data from the webview (e.g., an image). | 73 // User is dragging data from the webview (e.g., an image). |
| 74 base::string16 file_description_filename; | 74 base::string16 file_description_filename; |
| 75 std::string file_contents; | 75 std::string file_contents; |
| 76 | 76 |
| 77 std::map<base::string16, base::string16> custom_data; | 77 std::map<base::string16, base::string16> custom_data; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // WEBKIT_COMMON_WEBDROPDATA_H_ | 80 #endif // WEBKIT_COMMON_WEBDROPDATA_H_ |
| OLD | NEW |