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_CHROME_TO_MOBILE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CHROME_TO_MOBILE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CHROME_TO_MOBILE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CHROME_TO_MOBILE_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/command_observer.h" | 8 #include "chrome/browser/command_observer.h" |
9 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" | 9 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" |
10 #include "ui/views/controls/image_view.h" | 10 #include "ui/views/controls/image_view.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE; | 29 virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE; |
30 | 30 |
31 // TouchableLocationBarView. | 31 // TouchableLocationBarView. |
32 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; | 32 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; |
33 | 33 |
34 private: | 34 private: |
35 // views::ImageView overrides: | 35 // views::ImageView overrides: |
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 views::MouseEvent& event) OVERRIDE; | 39 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
40 virtual void OnMouseReleased(const views::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 // The LocationBarView hosting this view. | 43 // The LocationBarView hosting this view. |
44 LocationBarView* location_bar_view_; | 44 LocationBarView* location_bar_view_; |
45 | 45 |
46 // The CommandUpdater for the Browser object that owns the location bar. | 46 // The CommandUpdater for the Browser object that owns the location bar. |
47 CommandUpdater* command_updater_; | 47 CommandUpdater* command_updater_; |
48 | 48 |
49 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeToMobileView); | 49 DISALLOW_IMPLICIT_CONSTRUCTORS(ChromeToMobileView); |
50 }; | 50 }; |
51 | 51 |
52 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CHROME_TO_MOBILE_VIEW_H_ | 52 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CHROME_TO_MOBILE_VIEW_H_ |
OLD | NEW |