Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: content/public/common/drop_data.h

Issue 1411913010: Propagate drag-and-drop key modifiers to WebView's guest renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix initialiser order. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/drag_traits.h ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/common/drag_traits.h ('k') | content/public/common/drop_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698