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

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

Issue 8430013: Split Mac WebDropTarget into two, content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes 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_mac.h
diff --git a/chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h b/chrome/browser/tab_contents/web_drag_bookmark_handler_mac.h
similarity index 62%
copy from chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h
copy to chrome/browser/tab_contents/web_drag_bookmark_handler_mac.h
index ed06be650b0714e8cccfc4a91d1b9f7d3d7b0ec7..989cce1831f1d33710e0aa908bc11880c647a653 100644
--- a/chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h
+++ b/chrome/browser/tab_contents/web_drag_bookmark_handler_mac.h
@@ -2,8 +2,8 @@
// 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_
+#ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_MAC_H_
+#define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_MAC_H_
#pragma once
#include "base/compiler_specific.h"
@@ -14,17 +14,13 @@ class TabContentsWrapper;
// Chrome needs to intercept content drag events so it can dispatch them to the
// bookmarks and extensions system.
-class WebDragBookmarkHandlerGtk : public content::WebDragDestDelegate {
+class WebDragBookmarkHandlerMac : public content::WebDragDestDelegate {
public:
- WebDragBookmarkHandlerGtk();
- virtual ~WebDragBookmarkHandlerGtk();
+ WebDragBookmarkHandlerMac();
+ virtual ~WebDragBookmarkHandlerMac();
- // Overridden from WebDragBookmarkDelegate:
+ // Overridden from content::WebDragDestDelegate:
virtual void DragInitialize(TabContents* contents) OVERRIDE;
- virtual GdkAtom GetBookmarkTargetAtom() const OVERRIDE;
- virtual void OnReceiveDataFromGtk(GtkSelectionData* data) OVERRIDE;
- virtual void OnReceiveProcessedData(const GURL& url,
- const string16& title) OVERRIDE;
virtual void OnDragOver() OVERRIDE;
virtual void OnDragEnter() OVERRIDE;
virtual void OnDrop() OVERRIDE;
@@ -37,8 +33,10 @@ class WebDragBookmarkHandlerGtk : public content::WebDragDestDelegate {
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).
+ // a native bookmark drag.
BookmarkNodeData bookmark_drag_data_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebDragBookmarkHandlerMac);
};
-#endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
+#endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698