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_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/timer/timer.h" | 10 #include "base/timer/timer.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void StopTimer(); | 109 void StopTimer(); |
110 | 110 |
111 ZoomBubbleExtensionInfo extension_info_; | 111 ZoomBubbleExtensionInfo extension_info_; |
112 | 112 |
113 // Singleton instance of the zoom bubble. The zoom bubble can only be shown on | 113 // Singleton instance of the zoom bubble. The zoom bubble can only be shown on |
114 // the active browser window, so there is no case in which it will be shown | 114 // the active browser window, so there is no case in which it will be shown |
115 // twice at the same time. | 115 // twice at the same time. |
116 static ZoomBubbleView* zoom_bubble_; | 116 static ZoomBubbleView* zoom_bubble_; |
117 | 117 |
118 // Timer used to close the bubble when |auto_close_| is true. | 118 // Timer used to close the bubble when |auto_close_| is true. |
119 base::OneShotTimer<ZoomBubbleView> timer_; | 119 base::OneShotTimer timer_; |
120 | 120 |
121 // Image button in the zoom bubble that will show the |extension_icon_| image | 121 // Image button in the zoom bubble that will show the |extension_icon_| image |
122 // if an extension initiated the zoom change, and links to that extension at | 122 // if an extension initiated the zoom change, and links to that extension at |
123 // "chrome://extensions". | 123 // "chrome://extensions". |
124 views::ImageButton* image_button_; | 124 views::ImageButton* image_button_; |
125 | 125 |
126 // Label displaying the zoom percentage. | 126 // Label displaying the zoom percentage. |
127 views::Label* label_; | 127 views::Label* label_; |
128 | 128 |
129 // The WebContents for the page whose zoom has changed. | 129 // The WebContents for the page whose zoom has changed. |
130 content::WebContents* web_contents_; | 130 content::WebContents* web_contents_; |
131 | 131 |
132 // Whether the currently displayed bubble will automatically close. | 132 // Whether the currently displayed bubble will automatically close. |
133 bool auto_close_; | 133 bool auto_close_; |
134 | 134 |
135 // The immersive mode controller for the BrowserView containing | 135 // The immersive mode controller for the BrowserView containing |
136 // |web_contents_|. | 136 // |web_contents_|. |
137 // Not owned. | 137 // Not owned. |
138 ImmersiveModeController* immersive_mode_controller_; | 138 ImmersiveModeController* immersive_mode_controller_; |
139 | 139 |
140 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleView); | 140 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleView); |
141 }; | 141 }; |
142 | 142 |
143 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ | 143 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ |
OLD | NEW |