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 18 matching lines...) Expand all Loading... | |
29 GURL url; | 29 GURL url; |
30 int64 size; | 30 int64 size; |
31 }; | 31 }; |
32 | 32 |
33 DropData(); | 33 DropData(); |
34 ~DropData(); | 34 ~DropData(); |
35 | 35 |
36 // Whether this drag originated from a renderer. | 36 // Whether this drag originated from a renderer. |
37 bool did_originate_from_renderer; | 37 bool did_originate_from_renderer; |
38 | 38 |
39 // The key-modifiers present for this update, included here so BrowserPlugin | |
40 // can forward them to the guest renderer. | |
41 // TODO(wjmaclean): This can probably be removed when BrowserPlugin goes | |
42 // away, https://crbug.com/533069. | |
43 int key_modifiers; | |
Charlie Reis
2015/11/04 22:48:29
If this is temporary, maybe it should go at the en
wjmaclean
2015/11/05 15:08:07
Done. (I had chosen this location primarily to kee
| |
44 | |
39 // User is dragging a link into the webview. | 45 // User is dragging a link into the webview. |
40 GURL url; | 46 GURL url; |
41 base::string16 url_title; // The title associated with |url|. | 47 base::string16 url_title; // The title associated with |url|. |
42 | 48 |
43 // User is dragging a link out-of the webview. | 49 // User is dragging a link out-of the webview. |
44 base::string16 download_metadata; | 50 base::string16 download_metadata; |
45 | 51 |
46 // Referrer policy to use when dragging a link out of the webview results in | 52 // Referrer policy to use when dragging a link out of the webview results in |
47 // a download. | 53 // a download. |
48 blink::WebReferrerPolicy referrer_policy; | 54 blink::WebReferrerPolicy referrer_policy; |
(...skipping 16 matching lines...) Expand all Loading... | |
65 // |html_base_url| is the URL that the html fragment is taken from (used to | 71 // |html_base_url| is the URL that the html fragment is taken from (used to |
66 // resolve relative links). It's ok for |html_base_url| to be empty. | 72 // resolve relative links). It's ok for |html_base_url| to be empty. |
67 base::NullableString16 html; | 73 base::NullableString16 html; |
68 GURL html_base_url; | 74 GURL html_base_url; |
69 | 75 |
70 // User is dragging data from the webview (e.g., an image). | 76 // User is dragging data from the webview (e.g., an image). |
71 base::string16 file_description_filename; | 77 base::string16 file_description_filename; |
72 std::string file_contents; | 78 std::string file_contents; |
73 | 79 |
74 std::map<base::string16, base::string16> custom_data; | 80 std::map<base::string16, base::string16> custom_data; |
81 | |
Charlie Reis
2015/11/04 22:48:29
nit: Not needed.
wjmaclean
2015/11/05 15:08:07
Done.
| |
75 }; | 82 }; |
76 | 83 |
77 } // namespace content | 84 } // namespace content |
78 | 85 |
79 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 86 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
OLD | NEW |