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

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

Issue 8196001: content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix viewgtk compile Created 9 years, 2 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/web_drag_bookmark_handler_gtk.h
diff --git a/chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h b/chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..7a9db5e2bf798575bb1e621d4251f0cfd7bbd826
--- /dev/null
+++ b/chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
+#define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
+#pragma once
+
+#include "chrome/browser/bookmarks/bookmark_node_data.h"
+#include "chrome/browser/tab_contents/web_drag_dest_delegate_gtk.h"
+
+class TabContentsWrapper;
+
+class WebDragBookmarkHandlerGtk : public WebDragDestDelegateGtk {
+ public:
+ WebDragBookmarkHandlerGtk();
+ virtual ~WebDragBookmarkHandlerGtk();
+
+ // Overridden from WebDragBookmarkDelegate:
+ virtual void DragInitialize(TabContents* contents);
+ virtual GdkAtom GetBookmarkTargetAtom() const;
+ virtual void OnReceiveDataFromGtk(GtkSelectionData* data);
+ virtual void OnReceiveProcessedData(const GURL& url,
+ const string16& title);
+ virtual void OnDragOver();
+ virtual void OnDragEnter();
+ virtual void OnDrop();
+ virtual void OnDragLeave();
+
+ private:
+ // The TabContentsWrapper for |tab_contents_|.
+ // Weak reference; may be NULL if the contents aren't contained in a wrapper
+ // (e.g. WebUI dialogs).
+ TabContentsWrapper* tab_;
+
+ // The bookmark data for the current tab. This will be empty if there is not
+ // a native bookmark drag (or we haven't gotten the data from the source yet).
+ BookmarkNodeData bookmark_drag_data_;
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698