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

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

Issue 11348304: Implement script bubble for GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ok Created 8 years, 1 month 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 | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 03fbd82371e8f9c2c3db1144adb8860709b758e6..0bde97e17b831471bd9edb9b17e280ba17376a73 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.h
@@ -366,10 +366,14 @@ class LocationBarViewGtk : public OmniboxEditController,
GtkAllocation*);
CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnZoomButtonPress,
GdkEventButton*);
+ CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnScriptBubbleButtonPress,
+ GdkEventButton*);
CHROMEGTK_CALLBACK_1(LocationBarViewGtk, void, OnStarButtonSizeAllocate,
GtkAllocation*);
CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean, OnStarButtonPress,
GdkEventButton*);
+ CHROMEGTK_CALLBACK_1(LocationBarViewGtk, gboolean,
+ OnScriptBubbleButtonExpose, GdkEventExpose*);
// Updates the site type area: changes the icon and shows/hides the EV
// certificate information.
@@ -396,7 +400,8 @@ class LocationBarViewGtk : public OmniboxEditController,
// available horizontal space in the location bar.
void AdjustChildrenVisibility();
- // Build the zoom, and star icons.
+ // Helpers to build create the various buttons that show up in the location
+ // bar.
GtkWidget* CreateIconButton(
GtkWidget** image,
int image_id,
@@ -404,12 +409,13 @@ class LocationBarViewGtk : public OmniboxEditController,
int tooltip_id,
gboolean (click_callback)(GtkWidget*, GdkEventButton*, gpointer));
void CreateZoomButton();
+ void CreateScriptBubbleButton();
void CreateStarButton();
- // Update the zoom icon after zoom changes.
+ // Helpers to update state of the various buttons that show up in the
+ // location bar.
void UpdateZoomIcon();
-
- // Update the star icon after it is toggled or the theme changes.
+ void UpdateScriptBubbleIcon();
void UpdateStarIcon();
// Returns true if we should only show the URL and none of the extras like
@@ -423,6 +429,10 @@ class LocationBarViewGtk : public OmniboxEditController,
ui::OwnedWidgetGtk zoom_;
GtkWidget* zoom_image_;
+ ui::OwnedWidgetGtk script_bubble_button_;
+ GtkWidget* script_bubble_button_image_;
+ size_t num_running_scripts_;
+
// Star button.
ui::OwnedWidgetGtk star_;
GtkWidget* star_image_;
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698