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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // |html_base_url| is the URL that the html fragment is taken from (used to | 68 // |html_base_url| is the URL that the html fragment is taken from (used to |
69 // resolve relative links). It's ok for |html_base_url| to be empty. | 69 // resolve relative links). It's ok for |html_base_url| to be empty. |
70 base::NullableString16 html; | 70 base::NullableString16 html; |
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 |
| 79 // The key-modifiers present for this update, included here so BrowserPlugin |
| 80 // can forward them to the guest renderer. |
| 81 // TODO(wjmaclean): This can probably be removed when BrowserPlugin goes |
| 82 // away, https://crbug.com/533069. |
| 83 int key_modifiers; |
78 }; | 84 }; |
79 | 85 |
80 } // namespace content | 86 } // namespace content |
81 | 87 |
82 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 88 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
OLD | NEW |