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

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: Fixed incorrectly positioned bubble problem. 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..7d7402b34de609bb737f4f3b532f89a07f8902ec 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.h
@@ -340,6 +340,8 @@ class LocationBarViewGtk : public OmniboxEditController,
};
friend class PageActionViewGtk;
+ class ShowStarBubbleAction;
+
// Creates, initializes, and packs the location icon, EV certificate name,
// and optional border.
void BuildSiteTypeArea();
@@ -366,6 +368,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 +429,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.
+
+ // Information about the star bubble to show after the star icon has been
+ // sized, or NULL if no such action should be taken.
+ scoped_ptr<ShowStarBubbleAction> show_star_bubble_action_;
// An icon to the left of the address bar.
GtkWidget* site_type_alignment_;

Powered by Google App Engine
This is Rietveld 408576698