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

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

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Addressed comments by dcheng@. Created 4 years, 1 month 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
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_WIDGET_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 // Add/remove an input event observer. 253 // Add/remove an input event observer.
254 virtual void AddInputEventObserver(InputEventObserver* observer) = 0; 254 virtual void AddInputEventObserver(InputEventObserver* observer) = 0;
255 virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0; 255 virtual void RemoveInputEventObserver(InputEventObserver* observer) = 0;
256 256
257 // Get the screen info corresponding to this render widget. 257 // Get the screen info corresponding to this render widget.
258 virtual void GetScreenInfo(ScreenInfo* result) = 0; 258 virtual void GetScreenInfo(ScreenInfo* result) = 0;
259 259
260 // Sends a compositor proto to the render widget. 260 // Sends a compositor proto to the render widget.
261 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0; 261 virtual void HandleCompositorProto(const std::vector<uint8_t>& proto) = 0;
262
263 // Drag-and-drop drop target messages that get sent to Blink.
264 virtual void DragTargetDragEnter(
265 const DropData& drop_data,
266 const gfx::Point& client_pt,
267 const gfx::Point& screen_pt,
268 blink::WebDragOperationsMask operations_allowed,
269 int key_modifiers) = 0;
270 virtual void DragTargetDragOver(
271 const gfx::Point& client_pt,
272 const gfx::Point& screen_pt,
273 blink::WebDragOperationsMask operations_allowed,
274 int key_modifiers) = 0;
275 virtual void DragTargetDragLeave() = 0;
276 virtual void DragTargetDrop(const DropData& drop_data,
277 const gfx::Point& client_pt,
278 const gfx::Point& screen_pt,
279 int key_modifiers) = 0;
280
281 // Filters drop data before it is passed to RenderWidgetHostImpl.
nasko 2016/11/10 17:33:16 nit: Since this is content/public, drop the Impl p
paulmeyer 2016/11/11 23:26:48 Done.
282 virtual void FilterDropData(DropData* drop_data) = 0;
262 }; 283 };
263 284
264 } // namespace content 285 } // namespace content
265 286
266 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ 287 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698