| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |