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

Unified Diff: chrome/browser/tab_contents/tab_contents.h

Issue 596105: Bookmark Manager Drag and Drop backend.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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: chrome/browser/tab_contents/tab_contents.h
===================================================================
--- chrome/browser/tab_contents/tab_contents.h (revision 39450)
+++ chrome/browser/tab_contents/tab_contents.h (working copy)
@@ -663,6 +663,16 @@
virtual TabContents* AsTabContents() { return this; }
virtual ExtensionHost* AsExtensionHost() { return NULL; }
+ // The BookmarkDragDelegate is used to forward bookmark drag and drop events
+ // to extensions.
+ virtual RenderViewHostDelegate::BookmarkDrag* GetBookmarkDragDelegate();
+
+ // It is up to callers to call SetBookmarkDragDelegate(NULL) when
+ // |bookmark_drag| is deleted since this class does not take ownership of
+ // |bookmark_drag|.
+ virtual void SetBookmarkDragDelegate(
+ RenderViewHostDelegate::BookmarkDrag* bookmark_drag);
+
private:
friend class NavigationController;
// Used to access the child_windows_ (ConstrainedWindowList) for testing
@@ -1012,6 +1022,9 @@
// PluginInstaller, lazily created.
scoped_ptr<PluginInstaller> plugin_installer_;
+ // Handles drag and drop event forwarding to extensions.
+ BookmarkDrag* bookmark_drag_;
+
// Handles downloading favicons.
FavIconHelper fav_icon_helper_;

Powered by Google App Engine
This is Rietveld 408576698