| 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_STAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" | 8 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" |
| 9 #include "ui/views/controls/image_view.h" | 9 #include "ui/views/controls/image_view.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // TouchableLocationBarView. | 26 // TouchableLocationBarView. |
| 27 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; | 27 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // views::ImageView overrides: | 30 // views::ImageView overrides: |
| 31 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 31 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 32 virtual bool GetTooltipText(const gfx::Point& p, | 32 virtual bool GetTooltipText(const gfx::Point& p, |
| 33 string16* tooltip) const OVERRIDE; | 33 string16* tooltip) const OVERRIDE; |
| 34 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 34 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 35 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 35 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 36 virtual ui::GestureStatus OnGestureEvent( | 36 virtual ui::EventResult OnGestureEvent( |
| 37 const ui::GestureEvent& event) OVERRIDE; | 37 const ui::GestureEvent& event) OVERRIDE; |
| 38 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 38 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 39 | 39 |
| 40 // The CommandUpdater for the Browser object that owns the location bar. | 40 // The CommandUpdater for the Browser object that owns the location bar. |
| 41 CommandUpdater* command_updater_; | 41 CommandUpdater* command_updater_; |
| 42 | 42 |
| 43 DISALLOW_IMPLICIT_CONSTRUCTORS(StarView); | 43 DISALLOW_IMPLICIT_CONSTRUCTORS(StarView); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_ | 46 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_STAR_VIEW_H_ |
| OLD | NEW |