From 5dc21090414efa5635c57c94e9c647f819dccfec Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Wed, 14 Apr 2010 20:05:35 +0000 Subject: GTK: Prevent inappropriate drag of location bar location icon. BUG=40840 TEST=manual Review URL: http://codereview.chromium.org/1607018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44523 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/location_bar_view_gtk.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to '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 cf7b02f..d8ce564 100644 --- a/chrome/browser/gtk/location_bar_view_gtk.h +++ b/chrome/browser/gtk/location_bar_view_gtk.h @@ -265,6 +265,9 @@ class LocationBarViewGtk : public AutocompleteEditController, // Creates, initializes, and packs the location icon + related widgets. void BuildLocationIcon(); + // Enable or disable the location icon as a drag source for the URL. + void SetLocationIconDragSource(); + GtkWidget* location_icon() { return location_icon_alignment_; } CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, HandleExpose, @@ -326,7 +329,9 @@ class LocationBarViewGtk : public AutocompleteEditController, GtkWidget* security_error_icon_image_; // An icon to the left of the address bar. GtkWidget* location_icon_alignment_; + GtkWidget* location_icon_event_box_; GtkWidget* location_icon_image_; + bool enable_location_drag_; // TODO(pkasting): Split this label off and move the rest of the items to the // left of the address bar. GtkWidget* security_info_label_; -- cgit v1.1