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

Unified Diff: chrome/browser/gtk/location_bar_view_gtk.h

Issue 1725011: GTK: Add a drag icon for site icon drags. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 8 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/gtk/location_bar_view_gtk.h
diff --git a/chrome/browser/gtk/location_bar_view_gtk.h b/chrome/browser/gtk/location_bar_view_gtk.h
index fe9d26c6f3695a9d1141790536eadd6bb4e1ecb7..baa7e4a6c23929044b00c71740c6fe9606eff683 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/gtk/location_bar_view_gtk.h
@@ -278,6 +278,10 @@ class LocationBarViewGtk : public AutocompleteEditController,
GdkEventButton*);
CHROMEGTK_CALLBACK_4(LocationBarViewGtk, void, OnIconDragData,
GdkDragContext*, GtkSelectionData*, guint, guint);
+ CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnIconDragBegin,
+ GdkDragContext*);
+ CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnDragIconExpose,
+ GdkEventExpose*);
CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnEntryBoxSizeAllocate,
GtkAllocation*);
CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnStarButtonPress,
@@ -333,6 +337,7 @@ class LocationBarViewGtk : public AutocompleteEditController,
GtkWidget* site_type_alignment_;
GtkWidget* site_type_event_box_;
GtkWidget* location_icon_image_;
+ OwnedWidgetGtk drag_icon_;
bool enable_location_drag_;
// TODO(pkasting): Split this label off and move the rest of the items to the
// left of the address bar.
« no previous file with comments | « no previous file | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | chrome/browser/gtk/location_bar_view_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698