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

Side by Side Diff: chrome/browser/ui/gtk/zoom_bubble_gtk.h

Issue 10907168: [gtk] When mouse is inside of an auto-closing zoom bubble and the zoom is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init POD 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_GTK_ZOOM_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_ZOOM_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_ZOOM_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_ZOOM_BUBBLE_GTK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 10 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Fired when the mouse enters or leaves the widget. 49 // Fired when the mouse enters or leaves the widget.
50 CHROMEGTK_CALLBACK_1(ZoomBubbleGtk, gboolean, OnMouseEnter, 50 CHROMEGTK_CALLBACK_1(ZoomBubbleGtk, gboolean, OnMouseEnter,
51 GdkEventCrossing*); 51 GdkEventCrossing*);
52 CHROMEGTK_CALLBACK_1(ZoomBubbleGtk, gboolean, OnMouseLeave, 52 CHROMEGTK_CALLBACK_1(ZoomBubbleGtk, gboolean, OnMouseLeave,
53 GdkEventCrossing*); 53 GdkEventCrossing*);
54 54
55 // Whether the currently displayed bubble will automatically close. 55 // Whether the currently displayed bubble will automatically close.
56 bool auto_close_; 56 bool auto_close_;
57 57
58 // Whether the mouse is currently inside the bubble.
59 bool mouse_inside_;
60
58 // Timer used to close the bubble when |auto_close_| is true. 61 // Timer used to close the bubble when |auto_close_| is true.
59 base::OneShotTimer<ZoomBubbleGtk> timer_; 62 base::OneShotTimer<ZoomBubbleGtk> timer_;
60 63
61 // The TabContents for the page whose zoom has changed. 64 // The TabContents for the page whose zoom has changed.
62 TabContents* tab_contents_; 65 TabContents* tab_contents_;
63 66
64 // An event box that wraps the content of the bubble. 67 // An event box that wraps the content of the bubble.
65 GtkWidget* event_box_; 68 GtkWidget* event_box_;
66 69
67 // Label showing zoom percentage. 70 // Label showing zoom percentage.
68 GtkWidget* label_; 71 GtkWidget* label_;
69 72
70 // The BubbleGtk object containing the zoom bubble's content. 73 // The BubbleGtk object containing the zoom bubble's content.
71 BubbleGtk* bubble_; 74 BubbleGtk* bubble_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleGtk); 76 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleGtk);
74 }; 77 };
75 78
76 #endif // CHROME_BROWSER_UI_GTK_ZOOM_BUBBLE_GTK_H_ 79 #endif // CHROME_BROWSER_UI_GTK_ZOOM_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/zoom_bubble_gtk.cc » ('j') | chrome/browser/ui/gtk/zoom_bubble_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698