| 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/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" | 10 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // |auto_close| is true. | 38 // |auto_close| is true. |
| 39 static void ShowBubble(content::WebContents* web_contents, | 39 static void ShowBubble(content::WebContents* web_contents, |
| 40 bool auto_close); | 40 bool auto_close); |
| 41 | 41 |
| 42 // Closes the showing bubble (if one exists). | 42 // Closes the showing bubble (if one exists). |
| 43 static void CloseBubble(); | 43 static void CloseBubble(); |
| 44 | 44 |
| 45 // Whether the zoom bubble is currently showing. | 45 // Whether the zoom bubble is currently showing. |
| 46 static bool IsShowing(); | 46 static bool IsShowing(); |
| 47 | 47 |
| 48 // Whether the zoom bubble is currently closing. |
| 49 static bool IsClosing(); |
| 50 |
| 48 // Returns the zoom bubble if the zoom bubble is showing. Returns NULL | 51 // Returns the zoom bubble if the zoom bubble is showing. Returns NULL |
| 49 // otherwise. | 52 // otherwise. |
| 50 static const ZoomBubbleView* GetZoomBubbleForTest(); | 53 static const ZoomBubbleView* GetZoomBubbleForTest(); |
| 51 | 54 |
| 52 private: | 55 private: |
| 53 // Stores information about the extension that initiated the zoom change, if | 56 // Stores information about the extension that initiated the zoom change, if |
| 54 // any. | 57 // any. |
| 55 struct ZoomBubbleExtensionInfo { | 58 struct ZoomBubbleExtensionInfo { |
| 56 ZoomBubbleExtensionInfo(); | 59 ZoomBubbleExtensionInfo(); |
| 57 ~ZoomBubbleExtensionInfo(); | 60 ~ZoomBubbleExtensionInfo(); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // Not owned. | 159 // Not owned. |
| 157 ImmersiveModeController* immersive_mode_controller_; | 160 ImmersiveModeController* immersive_mode_controller_; |
| 158 | 161 |
| 159 // Used to register for fullscreen change notifications. | 162 // Used to register for fullscreen change notifications. |
| 160 content::NotificationRegistrar registrar_; | 163 content::NotificationRegistrar registrar_; |
| 161 | 164 |
| 162 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleView); | 165 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleView); |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ | 168 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ |
| OLD | NEW |