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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.h

Issue 12086095: Fixed drag and drop into and out of Browser Plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved state to embedder. Created 7 years, 11 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
Index: content/browser/browser_plugin/browser_plugin_embedder.h
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.h b/content/browser/browser_plugin/browser_plugin_embedder.h
index b8450070f171e9a4aa3d27813860789e82f3680d..5850e00f747f1844da775a487801a674de5a418e 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.h
+++ b/content/browser/browser_plugin/browser_plugin_embedder.h
@@ -101,6 +101,12 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
+ void DragEnteredGuest(BrowserPluginGuest* guest);
+
+ void DragLeftGuest(BrowserPluginGuest* guest);
+
+ void StartDrag(BrowserPluginGuest* guest);
+
private:
friend class TestBrowserPluginEmbedder;
@@ -131,6 +137,12 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
const std::string& mailbox_name,
uint32 sync_point);
+ // Returns the guest browser plugin delegate that is currently dragging.
+ BrowserPluginGuest* GetDraggingGuest() const;
+
+ // Returns true if there is a guest currently being dragged over.
+ bool IsDragOverGuest() const;
+
// Static factory instance (always NULL for non-test).
static BrowserPluginHostFactory* factory_;
@@ -151,6 +163,8 @@ class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver,
// Next request id for BrowserPluginMsg_PluginAtPositionRequest query.
int next_get_render_view_request_id_;
int next_instance_id_;
+ BrowserPluginGuest* guest_dragging_over;
+ BrowserPluginGuest* guest_started_drag;
DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
};

Powered by Google App Engine
This is Rietveld 408576698