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

Unified Diff: chrome/browser/tab_contents/web_drag_dest_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_dest_gtk.h
diff --git a/chrome/browser/tab_contents/web_drag_dest_gtk.h b/chrome/browser/tab_contents/web_drag_dest_gtk.h
index 84511971e78645ada1d02c6780f080c419d2ab57..4b8a0550a67bf412adffc0ae723d38ba9a26e8e1 100644
--- a/chrome/browser/tab_contents/web_drag_dest_gtk.h
+++ b/chrome/browser/tab_contents/web_drag_dest_gtk.h
@@ -11,13 +11,12 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/task.h"
-#include "chrome/browser/bookmarks/bookmark_node_data.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
#include "ui/base/gtk/gtk_signal.h"
#include "webkit/glue/webdropdata.h"
class TabContents;
-class TabContentsWrapper;
+class WebDragDestDelegateGtk;
// A helper class that handles DnD for drops in the renderer. In GTK parlance,
// this handles destination-side DnD, but not source-side DnD.
@@ -34,9 +33,10 @@ class WebDragDestGtk {
// See OnDragLeave().
void DragLeave();
- private:
- FRIEND_TEST_ALL_PREFIXES(WebDragDestGtkTest, NoTabContentsWrapper);
+ WebDragDestDelegateGtk* delegate() const { return delegate_; }
+ void set_delegate(WebDragDestDelegateGtk* delegate) { delegate_ = delegate; }
+ private:
// Called when a system drag crosses over the render view. As there is no drag
// enter event, we treat it as an enter event (and not a regular motion event)
// when |context_| is NULL.
@@ -62,11 +62,6 @@ class WebDragDestGtk {
TabContents* tab_contents_;
- // 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 render view.
GtkWidget* widget_;
@@ -94,9 +89,8 @@ class WebDragDestGtk {
// |widget_| is.
int destroy_handler_;
- // 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_;
+ // A delegate that can receive drag information about drag events.
+ WebDragDestDelegateGtk* delegate_;
ScopedRunnableMethodFactory<WebDragDestGtk> method_factory_;
« no previous file with comments | « chrome/browser/tab_contents/web_drag_dest_delegate_gtk.cc ('k') | chrome/browser/tab_contents/web_drag_dest_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698