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

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

Issue 10985069: [test fixlet] Add tests for the zoom icon in the location bar on GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: making bubble tests interactive_ui_tests Created 8 years, 3 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/zoom_bubble_gtk.h
diff --git a/chrome/browser/ui/gtk/zoom_bubble_gtk.h b/chrome/browser/ui/gtk/zoom_bubble_gtk.h
index a46c9f252f9bb278f4c838b289eb67af31a2d754..b5432cfa9672e44d2fc57eceb068cbfc2307d96c 100644
--- a/chrome/browser/ui/gtk/zoom_bubble_gtk.h
+++ b/chrome/browser/ui/gtk/zoom_bubble_gtk.h
@@ -23,6 +23,9 @@ class ZoomBubbleGtk {
// Closes the zoom bubble.
static void Close();
+ // Whether the zoom bubble is currently showing.
+ static bool IsShowing();
+
private:
ZoomBubbleGtk(GtkWidget* anchor, TabContents* tab_contents, bool auto_close);
virtual ~ZoomBubbleGtk();
@@ -52,6 +55,12 @@ class ZoomBubbleGtk {
CHROMEGTK_CALLBACK_1(ZoomBubbleGtk, gboolean, OnMouseLeave,
GdkEventCrossing*);
+ // Friend the tests so they can check access the static bubble.
+ friend class ZoomBubbleGtkTest;
+
+ // Pointer to singleton object (NULL if no bubble is open).
+ static ZoomBubbleGtk* g_bubble;
+
// Whether the currently displayed bubble will automatically close.
bool auto_close_;

Powered by Google App Engine
This is Rietveld 408576698