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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 10 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; | 32 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; |
33 virtual bool GetTooltipText(const gfx::Point& p, | 33 virtual bool GetTooltipText(const gfx::Point& p, |
34 base::string16* tooltip) const OVERRIDE; | 34 base::string16* tooltip) const OVERRIDE; |
35 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 35 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
36 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 36 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
37 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 37 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
38 | 38 |
39 // ui::EventHandler: | 39 // ui::EventHandler: |
40 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 40 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
41 | 41 |
42 // Helper method to show and focus the zoom bubble associated with this | 42 // Hide the zoom bubble if it's showing. Show the zoom bubble if it's hidden. |
msw
2014/07/24 22:07:13
It seems like ZoomView should be a BubbleIconView
Dan Beam
2014/10/23 23:34:03
Done.
| |
43 // widget. | 43 void ToggleBubble(); |
44 void ActivateBubble(); | |
45 | 44 |
46 // The delegate used to get the currently visible WebContents. | 45 // The delegate used to get the currently visible WebContents. |
47 LocationBarView::Delegate* location_bar_delegate_; | 46 LocationBarView::Delegate* location_bar_delegate_; |
48 | 47 |
48 // Was the zoom bubble showing when the mouse went down inside this view. | |
49 bool was_bubble_showing_; | |
50 | |
49 DISALLOW_COPY_AND_ASSIGN(ZoomView); | 51 DISALLOW_COPY_AND_ASSIGN(ZoomView); |
50 }; | 52 }; |
51 | 53 |
52 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ | 54 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ |
OLD | NEW |