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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 1d319b166ab7159cad0d508ebf317f2702b22622..7be1260b8b51e1d77c08381c5cd2533e7c8b798c 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -174,6 +174,24 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
RenderWidgetHost::InputEventObserver* observer) override;
void GetScreenInfo(content::ScreenInfo* result) override;
void HandleCompositorProto(const std::vector<uint8_t>& proto) override;
+ // |drop_data| must have been filtered. The embedder should call
+ // FilterDropData before passing the drop data to RWHI.
+ void DragTargetDragEnter(const DropData& drop_data,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ blink::WebDragOperationsMask operations_allowed,
+ int key_modifiers) override;
+ void DragTargetDragOver(const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ blink::WebDragOperationsMask operations_allowed,
+ int key_modifiers) override;
+ void DragTargetDragLeave() override;
+ // |drop_data| must have been filtered. The embedder should call
+ // FilterDropData before passing the drop data to RWHI.
+ void DragTargetDrop(const DropData& drop_data,
+ const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
+ int key_modifiers) override;
// Notification that the screen info has changed.
void NotifyScreenInfoChanged();

Powered by Google App Engine
This is Rietveld 408576698