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

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

Issue 10889052: Display action box menu on Linux/gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switched to a base::Closure Created 8 years, 4 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/ui/gtk/location_bar_view_gtk.h
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.h b/chrome/browser/ui/gtk/location_bar_view_gtk.h
index 24e3b959d58b2f438dd7f5f8f3924b7d76076c2c..91d77a8ad63629121bd261c4fc851a721cbb8833 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.h
@@ -11,6 +11,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
@@ -366,6 +367,8 @@ class LocationBarViewGtk : public OmniboxEditController,
GtkAllocation*);
CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnZoomButtonPress,
GdkEventButton*);
+ CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnStarButtonSizeAllocate,
+ GtkAllocation*);
CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnStarButtonPress,
GdkEventButton*);
@@ -425,6 +428,11 @@ class LocationBarViewGtk : public OmniboxEditController,
ui::OwnedWidgetGtk star_;
GtkWidget* star_image_;
bool starred_;
+ bool star_sized_; // True after a size-allocate signal to the star widget.
+
+ // Action to execute after the star icon has been sized, can refer to a NULL
+ // function to indicate no such action should be taken.
+ base::Closure on_star_sized_;
// An icon to the left of the address bar.
GtkWidget* site_type_alignment_;

Powered by Google App Engine
This is Rietveld 408576698