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

Unified Diff: content/browser/web_contents/web_contents_view_gtk.h

Issue 12252016: Prevented connecting drag drop events to a SwappedOut RenderViewHost in WebContentsViewGtk (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Oops. Fix compile error. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_gtk.h
diff --git a/content/browser/web_contents/web_contents_view_gtk.h b/content/browser/web_contents/web_contents_view_gtk.h
index da1f45c80636612461dc6b0005a4843a4f626f22..2bc22055861c4e1e381d6fe4d39595b717ea3ae5 100644
--- a/content/browser/web_contents/web_contents_view_gtk.h
+++ b/content/browser/web_contents/web_contents_view_gtk.h
@@ -97,6 +97,10 @@ class CONTENT_EXPORT WebContentsViewGtk
// should be taken that the correct one is hidden/shown.
void InsertIntoContentArea(GtkWidget* widget);
+ // Replaces, or updates, the existing WebDragDestGtk with one for |new_host|.
+ // This must be called when swapping in, or creating a swapped in, RVH.
+ void UpdateDragDest(RenderViewHost* new_host);
+
// Handle focus traversal on the render widget native view. Can be overridden
// by subclasses.
CHROMEGTK_CALLBACK_1(WebContentsViewGtk, gboolean, OnFocus, GtkDirectionType);
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698