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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 DropData(); | 35 DropData(); |
36 ~DropData(); | 36 ~DropData(); |
37 | 37 |
38 // Whether this drag originated from a renderer. | 38 // Whether this drag originated from a renderer. |
39 bool did_originate_from_renderer; | 39 bool did_originate_from_renderer; |
40 | 40 |
41 // User is dragging a link into the webview. | 41 // User is dragging a link into the webview. |
42 GURL url; | 42 GURL url; |
43 base::string16 url_title; // The title associated with |url|. | 43 base::string16 url_title; // The title associated with |url|. |
| 44 bool has_url; |
44 | 45 |
45 // User is dragging a link out-of the webview. | 46 // User is dragging a link out-of the webview. |
46 base::string16 download_metadata; | 47 base::string16 download_metadata; |
47 | 48 |
48 // Referrer policy to use when dragging a link out of the webview results in | 49 // Referrer policy to use when dragging a link out of the webview results in |
49 // a download. | 50 // a download. |
50 blink::WebReferrerPolicy referrer_policy; | 51 blink::WebReferrerPolicy referrer_policy; |
51 | 52 |
52 // User is dropping one or more files on the webview. This field is only | 53 // User is dropping one or more files on the webview. This field is only |
53 // populated if the drag is not renderer tainted, as this allows File access | 54 // populated if the drag is not renderer tainted, as this allows File access |
(...skipping 18 matching lines...) Expand all Loading... |
72 // User is dragging data from the webview (e.g., an image). | 73 // User is dragging data from the webview (e.g., an image). |
73 base::string16 file_description_filename; | 74 base::string16 file_description_filename; |
74 std::string file_contents; | 75 std::string file_contents; |
75 | 76 |
76 std::map<base::string16, base::string16> custom_data; | 77 std::map<base::string16, base::string16> custom_data; |
77 }; | 78 }; |
78 | 79 |
79 } // namespace content | 80 } // namespace content |
80 | 81 |
81 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 82 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
OLD | NEW |