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

Side by Side Diff: chrome/browser/ui/views/location_bar/zoom_bubble_view.h

Issue 420533002: zoom bubble: Close if anchor is clicked while bubble is showing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 6 years, 4 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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698