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

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

Issue 1759453002: Convert location bar bubble delegates to bubble dialog delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ImmersiveFullscreenController Created 4 years, 9 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
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/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/timer/timer.h" 10 #include "base/timer/timer.h"
(...skipping 23 matching lines...) Expand all
34 public views::ButtonListener, 34 public views::ButtonListener,
35 public ImmersiveModeController::Observer, 35 public ImmersiveModeController::Observer,
36 public extensions::IconImage::Observer { 36 public extensions::IconImage::Observer {
37 public: 37 public:
38 // Shows the bubble and automatically closes it after a short time period if 38 // Shows the bubble and automatically closes it after a short time period if
39 // |reason| is AUTOMATIC. 39 // |reason| is AUTOMATIC.
40 static void ShowBubble(content::WebContents* web_contents, 40 static void ShowBubble(content::WebContents* web_contents,
41 DisplayReason reason); 41 DisplayReason reason);
42 42
43 // Closes the showing bubble (if one exists). 43 // Closes the showing bubble (if one exists).
44 static void CloseBubble(); 44 static void CloseCurrentBubble();
45 45
46 // Returns the zoom bubble if the zoom bubble is showing. Returns NULL 46 // Returns the zoom bubble if the zoom bubble is showing. Returns NULL
47 // otherwise. 47 // otherwise.
48 static ZoomBubbleView* GetZoomBubble(); 48 static ZoomBubbleView* GetZoomBubble();
49 49
50 private: 50 private:
51 FRIEND_TEST_ALL_PREFIXES(ZoomBubbleBrowserTest, ImmersiveFullscreen); 51 FRIEND_TEST_ALL_PREFIXES(ZoomBubbleBrowserTest, ImmersiveFullscreen);
52 52
53 // Stores information about the extension that initiated the zoom change, if 53 // Stores information about the extension that initiated the zoom change, if
54 // any. 54 // any.
(...skipping 19 matching lines...) Expand all
74 DisplayReason reason, 74 DisplayReason reason,
75 ImmersiveModeController* immersive_mode_controller); 75 ImmersiveModeController* immersive_mode_controller);
76 ~ZoomBubbleView() override; 76 ~ZoomBubbleView() override;
77 77
78 // LocationBarBubbleDelegateView: 78 // LocationBarBubbleDelegateView:
79 void OnGestureEvent(ui::GestureEvent* event) override; 79 void OnGestureEvent(ui::GestureEvent* event) override;
80 void OnMouseEntered(const ui::MouseEvent& event) override; 80 void OnMouseEntered(const ui::MouseEvent& event) override;
81 void OnMouseExited(const ui::MouseEvent& event) override; 81 void OnMouseExited(const ui::MouseEvent& event) override;
82 void Init() override; 82 void Init() override;
83 void WindowClosing() override; 83 void WindowClosing() override;
84 void Close() override; 84 void CloseBubble() override;
85 85
86 // views::ButtonListener: 86 // views::ButtonListener:
87 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 87 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
88 88
89 // ImmersiveModeController::Observer: 89 // ImmersiveModeController::Observer:
90 void OnImmersiveRevealStarted() override; 90 void OnImmersiveRevealStarted() override;
91 void OnImmersiveModeControllerDestroyed() override; 91 void OnImmersiveModeControllerDestroyed() override;
92 92
93 // extensions::IconImage::Observer: 93 // extensions::IconImage::Observer:
94 void OnExtensionIconImageChanged(extensions::IconImage* /* image */) override; 94 void OnExtensionIconImageChanged(extensions::IconImage* /* image */) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698