| 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/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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // when |reason| is AUTOMATIC. If |immersive_mode_controller_| is present, the | 74 // when |reason| is AUTOMATIC. If |immersive_mode_controller_| is present, the |
| 75 // bubble will auto-close when the top-of-window views are revealed. | 75 // bubble will auto-close when the top-of-window views are revealed. |
| 76 ZoomBubbleView(views::View* anchor_view, | 76 ZoomBubbleView(views::View* anchor_view, |
| 77 const gfx::Point& anchor_point, | 77 const gfx::Point& anchor_point, |
| 78 content::WebContents* web_contents, | 78 content::WebContents* web_contents, |
| 79 DisplayReason reason, | 79 DisplayReason reason, |
| 80 ImmersiveModeController* immersive_mode_controller); | 80 ImmersiveModeController* immersive_mode_controller); |
| 81 ~ZoomBubbleView() override; | 81 ~ZoomBubbleView() override; |
| 82 | 82 |
| 83 // LocationBarBubbleDelegateView: | 83 // LocationBarBubbleDelegateView: |
| 84 int GetDialogButtons() const override; |
| 84 void OnGestureEvent(ui::GestureEvent* event) override; | 85 void OnGestureEvent(ui::GestureEvent* event) override; |
| 85 void OnMouseEntered(const ui::MouseEvent& event) override; | 86 void OnMouseEntered(const ui::MouseEvent& event) override; |
| 86 void OnMouseExited(const ui::MouseEvent& event) override; | 87 void OnMouseExited(const ui::MouseEvent& event) override; |
| 87 void Init() override; | 88 void Init() override; |
| 88 void WindowClosing() override; | 89 void WindowClosing() override; |
| 89 void CloseBubble() override; | 90 void CloseBubble() override; |
| 90 | 91 |
| 91 // views::ButtonListener: | 92 // views::ButtonListener: |
| 92 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 93 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 93 | 94 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 155 |
| 155 // The immersive mode controller for the BrowserView containing | 156 // The immersive mode controller for the BrowserView containing |
| 156 // |web_contents_|. | 157 // |web_contents_|. |
| 157 // Not owned. | 158 // Not owned. |
| 158 ImmersiveModeController* immersive_mode_controller_; | 159 ImmersiveModeController* immersive_mode_controller_; |
| 159 | 160 |
| 160 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleView); | 161 DISALLOW_COPY_AND_ASSIGN(ZoomBubbleView); |
| 161 }; | 162 }; |
| 162 | 163 |
| 163 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ | 164 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_BUBBLE_VIEW_H_ |
| OLD | NEW |