Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/zoom_bubble_view.h |
| diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.h b/chrome/browser/ui/views/location_bar/zoom_bubble_view.h |
| index 81db642872cf45c8f91ea5d44fa3edec6d52a2d3..5caaddae792f7a0ea69654537eae6840cc6ead4c 100644 |
| --- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.h |
| +++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.h |
| @@ -33,6 +33,7 @@ class ZoomBubbleView : public LocationBarBubbleDelegateView, |
| // Shows the bubble and automatically closes it after a short time period if |
| // |reason| is AUTOMATIC. |
| static void ShowBubble(content::WebContents* web_contents, |
| + const gfx::Point& anchor_point, |
| DisplayReason reason); |
| // Closes the showing bubble (if one exists). |
| @@ -42,6 +43,10 @@ class ZoomBubbleView : public LocationBarBubbleDelegateView, |
| // otherwise. |
| static ZoomBubbleView* GetZoomBubble(); |
| + // Refreshes the bubble by changing the zoom percentage appropriately and |
| + // resetting the timer if necessary. |
| + void Refresh(); |
| + |
| private: |
| FRIEND_TEST_ALL_PREFIXES(ZoomBubbleBrowserTest, ImmersiveFullscreen); |
| @@ -64,7 +69,9 @@ class ZoomBubbleView : public LocationBarBubbleDelegateView, |
| std::unique_ptr<const extensions::IconImage> icon_image; |
| }; |
| + // BubbleView anchoring to |anchor_view| or |anchor_point| as available. |
|
msw
2017/04/24 18:53:39
nit: "The bubble will anchor to |anchor_view| or |
varkha
2017/04/26 04:52:59
Ouch, looks like some errant keystroke has erased
|
| ZoomBubbleView(views::View* anchor_view, |
| + const gfx::Point& anchor_point, |
| content::WebContents* web_contents, |
| DisplayReason reason, |
| ImmersiveModeController* immersive_mode_controller); |
| @@ -88,10 +95,6 @@ class ZoomBubbleView : public LocationBarBubbleDelegateView, |
| // extensions::IconImage::Observer: |
| void OnExtensionIconImageChanged(extensions::IconImage* /* image */) override; |
| - // Refreshes the bubble by changing the zoom percentage appropriately and |
| - // resetting the timer if necessary. |
| - void Refresh(); |
| - |
| // Sets information about the extension that initiated the zoom change. |
| // Calling this method asserts that the extension |extension| did initiate |
| // the zoom change. |