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

Side by Side Diff: content/public/browser/render_view_host.h

Issue 1723763002: Add WebDragData to blink::WebView::dragtargetDrop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 6 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.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 const gfx::Point& client_pt, 134 const gfx::Point& client_pt,
135 const gfx::Point& screen_pt, 135 const gfx::Point& screen_pt,
136 blink::WebDragOperationsMask operations_allowed, 136 blink::WebDragOperationsMask operations_allowed,
137 int key_modifiers) = 0; 137 int key_modifiers) = 0;
138 virtual void DragTargetDragOver( 138 virtual void DragTargetDragOver(
139 const gfx::Point& client_pt, 139 const gfx::Point& client_pt,
140 const gfx::Point& screen_pt, 140 const gfx::Point& screen_pt,
141 blink::WebDragOperationsMask operations_allowed, 141 blink::WebDragOperationsMask operations_allowed,
142 int key_modifiers) = 0; 142 int key_modifiers) = 0;
143 virtual void DragTargetDragLeave() = 0; 143 virtual void DragTargetDragLeave() = 0;
144 virtual void DragTargetDrop(const gfx::Point& client_pt, 144 virtual void DragTargetDrop(const DropData& drop_data,
145 const gfx::Point& client_pt,
145 const gfx::Point& screen_pt, 146 const gfx::Point& screen_pt,
146 int key_modifiers) = 0; 147 int key_modifiers) = 0;
148 virtual void FilterDropData(DropData* drop_data) = 0;
147 149
148 // Instructs the RenderView to automatically resize and send back updates 150 // Instructs the RenderView to automatically resize and send back updates
149 // for the new size. 151 // for the new size.
150 virtual void EnableAutoResize(const gfx::Size& min_size, 152 virtual void EnableAutoResize(const gfx::Size& min_size,
151 const gfx::Size& max_size) = 0; 153 const gfx::Size& max_size) = 0;
152 154
153 // Turns off auto-resize and gives a new size that the view should be. 155 // Turns off auto-resize and gives a new size that the view should be.
154 virtual void DisableAutoResize(const gfx::Size& new_size) = 0; 156 virtual void DisableAutoResize(const gfx::Size& new_size) = 0;
155 157
156 // Instructs the RenderView to send back updates to the preferred size. 158 // Instructs the RenderView to send back updates to the preferred size.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 212
211 private: 213 private:
212 // This interface should only be implemented inside content. 214 // This interface should only be implemented inside content.
213 friend class RenderViewHostImpl; 215 friend class RenderViewHostImpl;
214 RenderViewHost() {} 216 RenderViewHost() {}
215 }; 217 };
216 218
217 } // namespace content 219 } // namespace content
218 220
219 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 221 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/common/drag_traits.h ('k') | content/public/common/drop_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698