Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 GURL url; | 31 GURL url; |
| 32 int64_t size; | 32 int64_t size; |
| 33 }; | 33 }; |
| 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 // Wether this DropData is valid. | |
|
aelias_OOO_until_Jul13
2016/03/02 02:53:40
"Whether this DropData has been initialized" might
| |
| 42 bool is_valid; | |
| 43 | |
| 41 // User is dragging a link into the webview. | 44 // User is dragging a link into the webview. |
| 42 GURL url; | 45 GURL url; |
| 43 base::string16 url_title; // The title associated with |url|. | 46 base::string16 url_title; // The title associated with |url|. |
| 44 | 47 |
| 45 // User is dragging a link out-of the webview. | 48 // User is dragging a link out-of the webview. |
| 46 base::string16 download_metadata; | 49 base::string16 download_metadata; |
| 47 | 50 |
| 48 // Referrer policy to use when dragging a link out of the webview results in | 51 // Referrer policy to use when dragging a link out of the webview results in |
| 49 // a download. | 52 // a download. |
| 50 blink::WebReferrerPolicy referrer_policy; | 53 blink::WebReferrerPolicy referrer_policy; |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 72 // User is dragging data from the webview (e.g., an image). | 75 // User is dragging data from the webview (e.g., an image). |
| 73 base::string16 file_description_filename; | 76 base::string16 file_description_filename; |
| 74 std::string file_contents; | 77 std::string file_contents; |
| 75 | 78 |
| 76 std::map<base::string16, base::string16> custom_data; | 79 std::map<base::string16, base::string16> custom_data; |
| 77 }; | 80 }; |
| 78 | 81 |
| 79 } // namespace content | 82 } // namespace content |
| 80 | 83 |
| 81 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ | 84 #endif // CONTENT_PUBLIC_COMMON_DROP_DATA_H_ |
| OLD | NEW |