OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 ASH_LAUNCHER_ALTERNATE_APP_LIST_BUTTON_H_ | 5 #ifndef ASH_LAUNCHER_ALTERNATE_APP_LIST_BUTTON_H_ |
6 #define ASH_LAUNCHER_ALTERNATE_APP_LIST_BUTTON_H_ | 6 #define ASH_LAUNCHER_ALTERNATE_APP_LIST_BUTTON_H_ |
7 | 7 |
8 #include "ui/views/controls/button/image_button.h" | 8 #include "ui/views/controls/button/image_button.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 36 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
37 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 37 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
38 virtual void OnMouseCaptureLost() OVERRIDE; | 38 virtual void OnMouseCaptureLost() OVERRIDE; |
39 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 39 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
40 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 40 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
41 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 41 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
42 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 42 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
43 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 43 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
44 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 44 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
45 | 45 |
46 // ui::EventHandler overrides: | |
47 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | |
48 | |
49 private: | 46 private: |
50 LauncherButtonHost* host_; | 47 LauncherButtonHost* host_; |
51 // Reference to the shelf widget containing this button, owned by the | 48 // Reference to the shelf widget containing this button, owned by the |
52 // root window controller. | 49 // root window controller. |
53 ShelfWidget* shelf_widget_; | 50 ShelfWidget* shelf_widget_; |
54 | 51 |
55 DISALLOW_COPY_AND_ASSIGN(AlternateAppListButton); | 52 DISALLOW_COPY_AND_ASSIGN(AlternateAppListButton); |
56 }; | 53 }; |
57 | 54 |
58 } // namespace internal | 55 } // namespace internal |
59 } // namespace ash | 56 } // namespace ash |
60 | 57 |
61 #endif // ASH_LAUNCHER_ALTERNATE_APP_LIST_BUTTON_H_ | 58 #endif // ASH_LAUNCHER_ALTERNATE_APP_LIST_BUTTON_H_ |
OLD | NEW |