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