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

Unified Diff: chrome/browser/renderer_host/render_view_host_delegate.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/renderer_host/render_view_host_delegate.h
===================================================================
--- chrome/browser/renderer_host/render_view_host_delegate.h (revision 39450)
+++ chrome/browser/renderer_host/render_view_host_delegate.h (working copy)
@@ -16,12 +16,14 @@
#include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h"
#include "webkit/glue/window_open_disposition.h"
+struct BookmarkDragData;
struct ContextMenuParams;
class FilePath;
class GURL;
class Value;
struct NativeWebKeyboardEvent;
class NavigationEntry;
+class OSExchangeData;
class Profile;
struct RendererPreferences;
class RenderProcessHost;
@@ -405,6 +407,28 @@
int query_id, const webkit_glue::FormField& field) = 0;
};
+ // BookmarkDrag --------------------------------------------------------------
+ // Interface for forwarding bookmark drag and drop to extenstions.
+
+ class BookmarkDrag {
+ public:
+
+#if defined(TOOLKIT_VIEWS)
+ typedef OSExchangeData DragData;
+#elif defined(OS_LINUX)
+ // TODO(arv): GtkSelectionData?
+ class DragData {};
+#else
+ // TODO(arv): NSDraggingInfo?
+ class DragData {};
+#endif
+
+ virtual void OnDragEnter(const DragData* data) = 0;
+ virtual void OnDragOver(const DragData* data) = 0;
+ virtual void OnDragLeave(const DragData* data) = 0;
+ virtual void OnDrop(const DragData* data) = 0;
+ };
+
// ---------------------------------------------------------------------------
// Returns the current delegate associated with a feature. May return NULL if
@@ -418,6 +442,7 @@
virtual FavIcon* GetFavIconDelegate();
virtual FormFieldHistory* GetFormFieldHistoryDelegate();
virtual AutoFill* GetAutoFillDelegate();
+ virtual BookmarkDrag* GetBookmarkDragDelegate();
// Gets the URL that is currently being displayed, if there is one.
virtual const GURL& GetURL() const;

Powered by Google App Engine
This is Rietveld 408576698