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 WebContents. This represents | 5 // A struct for managing data being dropped on a WebContents. This represents |
6 // a union of all the types of data that can be dropped in a platform neutral | 6 // a union of all the types of data that can be dropped in a platform neutral |
7 // way. | 7 // way. |
8 | 8 |
9 #ifndef CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 9 #ifndef CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
10 #define CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 10 #define CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 // User is dragging a link into the webview. | 38 // User is dragging a link into the webview. |
39 GURL url; | 39 GURL url; |
40 base::string16 url_title; // The title associated with |url|. | 40 base::string16 url_title; // The title associated with |url|. |
41 | 41 |
42 // User is dragging a link out-of the webview. | 42 // User is dragging a link out-of the webview. |
43 base::string16 download_metadata; | 43 base::string16 download_metadata; |
44 | 44 |
45 // Referrer policy to use when dragging a link out of the webview results in | 45 // Referrer policy to use when dragging a link out of the webview results in |
46 // a download. | 46 // a download. |
47 WebKit::WebReferrerPolicy referrer_policy; | 47 blink::WebReferrerPolicy referrer_policy; |
48 | 48 |
49 // User is dropping one or more files on the webview. | 49 // User is dropping one or more files on the webview. |
50 std::vector<FileInfo> filenames; | 50 std::vector<FileInfo> filenames; |
51 | 51 |
52 // Isolated filesystem ID for the files being dragged on the webview. | 52 // Isolated filesystem ID for the files being dragged on the webview. |
53 base::string16 filesystem_id; | 53 base::string16 filesystem_id; |
54 | 54 |
55 // User is dragging plain text into the webview. | 55 // User is dragging plain text into the webview. |
56 base::NullableString16 text; | 56 base::NullableString16 text; |
57 | 57 |
58 // User is dragging text/html into the webview (e.g., out of Firefox). | 58 // User is dragging text/html into the webview (e.g., out of Firefox). |
59 // |html_base_url| is the URL that the html fragment is taken from (used to | 59 // |html_base_url| is the URL that the html fragment is taken from (used to |
60 // resolve relative links). It's ok for |html_base_url| to be empty. | 60 // resolve relative links). It's ok for |html_base_url| to be empty. |
61 base::NullableString16 html; | 61 base::NullableString16 html; |
62 GURL html_base_url; | 62 GURL html_base_url; |
63 | 63 |
64 // User is dragging data from the webview (e.g., an image). | 64 // User is dragging data from the webview (e.g., an image). |
65 base::string16 file_description_filename; | 65 base::string16 file_description_filename; |
66 std::string file_contents; | 66 std::string file_contents; |
67 | 67 |
68 std::map<base::string16, base::string16> custom_data; | 68 std::map<base::string16, base::string16> custom_data; |
69 }; | 69 }; |
70 | 70 |
71 } // namespace content | 71 } // namespace content |
72 | 72 |
73 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 73 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
OLD | NEW |