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

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

Issue 2505113002: Drag-and-drop: Target drag messages to specific RenderWidgets. (Closed)
Patch Set: Small fix. 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 b465089cac08585f0e7eeae35bcc98734867228d..cfa6eb0b8347b22fdbbc974b36e8ded34acd678d 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -199,10 +199,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
const gfx::Point& client_pt,
const gfx::Point& screen_pt,
int key_modifiers) override;
- void DragSourceEndedAt(int client_x,
- int client_y,
- int screen_x,
- int screen_y,
+ void DragSourceEndedAt(const gfx::Point& client_pt,
+ const gfx::Point& screen_pt,
blink::WebDragOperation operation) override;
void DragSourceSystemDragEnded() override;
void FilterDropData(DropData* drop_data) override;
@@ -569,6 +567,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
bool needs_begin_frames() const { return needs_begin_frames_; }
+ base::WeakPtr<RenderWidgetHostImpl> GetWeakPtr() {
+ return weak_factory_.GetWeakPtr();
+ }
+
protected:
// ---------------------------------------------------------------------------
// The following method is overridden by RenderViewHost to send upwards to

Powered by Google App Engine
This is Rietveld 408576698