| 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 23 matching lines...) Expand all Loading... |
| 34 private: | 34 private: |
| 35 // views::ImageView: | 35 // views::ImageView: |
| 36 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 36 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 37 virtual bool GetTooltipText(const gfx::Point& p, | 37 virtual bool GetTooltipText(const gfx::Point& p, |
| 38 string16* tooltip) const OVERRIDE; | 38 string16* tooltip) const OVERRIDE; |
| 39 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 39 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 40 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 40 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 41 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 41 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 42 | 42 |
| 43 // ui::EventHandler: | 43 // ui::EventHandler: |
| 44 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 44 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 45 | 45 |
| 46 // TouchableLocationBarView. | 46 // TouchableLocationBarView. |
| 47 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; | 47 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; |
| 48 | 48 |
| 49 // Helper method to show and focus the zoom bubble associated with this | 49 // Helper method to show and focus the zoom bubble associated with this |
| 50 // widget. | 50 // widget. |
| 51 void ActivateBubble(); | 51 void ActivateBubble(); |
| 52 | 52 |
| 53 // Toolbar model used to test whether location bar input is in progress. | 53 // Toolbar model used to test whether location bar input is in progress. |
| 54 ToolbarModel* toolbar_model_; | 54 ToolbarModel* toolbar_model_; |
| 55 | 55 |
| 56 // The delegate used to get the currently visible WebContents. | 56 // The delegate used to get the currently visible WebContents. |
| 57 LocationBarView::Delegate* location_bar_delegate_; | 57 LocationBarView::Delegate* location_bar_delegate_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(ZoomView); | 59 DISALLOW_COPY_AND_ASSIGN(ZoomView); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ | 62 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ZOOM_VIEW_H_ |
| OLD | NEW |