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

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

Issue 147245: Linux web drag first cut.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: connect once Created 11 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_view_gtk.h
===================================================================
--- chrome/browser/tab_contents/tab_contents_view_gtk.h (revision 19403)
+++ chrome/browser/tab_contents/tab_contents_view_gtk.h (working copy)
@@ -81,6 +81,9 @@
// should be taken that the correct one is hidden/shown.
void InsertIntoContentArea(GtkWidget* widget);
+ // Tell webkit the drag is over.
+ void DragEnded();
+
// We keep track of the timestamp of the latest mousedown event.
static gboolean OnMouseDown(GtkWidget* widget,
GdkEventButton* event, TabContentsViewGtk* view);
@@ -94,6 +97,13 @@
GtkFloatingContainer* floating_container, GtkAllocation* allocation,
TabContentsViewGtk* tab_contents_view);
+ // Webkit DnD.
tony 2009/06/26 23:55:18 Nit: Renderer I think is more accurate.
+ static void OnDragEnd(GtkWidget* widget, GdkDragContext* drag_context,
+ TabContentsViewGtk* tab_contents_view);
+ static void OnDragDataGet(GtkWidget* drag_widget,
+ GdkDragContext* context, GtkSelectionData* selection_data,
+ guint target_type, guint time, TabContentsViewGtk* view);
+
// Contains |fixed_| as its GtkBin member and a possible floating widget from
// |popup_view_|.
OwnedWidgetGtk floating_;
@@ -125,6 +135,10 @@
// objects in this vector are owned by the TabContents, not the view.
std::vector<ConstrainedWindowGtk*> constrained_windows_;
+ // The drop data for the current drag (for drags that originate in the render
+ // view).
+ scoped_ptr<WebDropData> drop_data_;
+
DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
};
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698