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 ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ | 5 #ifndef ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ |
6 #define ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ | 6 #define ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/views/controls/button/image_button.h" | 9 #include "ui/views/controls/button/image_button.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Sets the image to display for this entry. | 24 // Sets the image to display for this entry. |
25 void SetAppImage(const SkBitmap& image); | 25 void SetAppImage(const SkBitmap& image); |
26 | 26 |
27 protected: | 27 protected: |
28 // View overrides: | 28 // View overrides: |
29 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 29 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
30 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 30 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
31 virtual void OnMouseCaptureLost() OVERRIDE; | 31 virtual void OnMouseCaptureLost() OVERRIDE; |
32 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 32 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
33 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 33 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
34 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | |
35 | 34 |
36 private: | 35 private: |
37 LauncherButtonHost* host_; | 36 LauncherButtonHost* host_; |
38 | 37 |
39 DISALLOW_COPY_AND_ASSIGN(AppLauncherButton); | 38 DISALLOW_COPY_AND_ASSIGN(AppLauncherButton); |
40 }; | 39 }; |
41 | 40 |
42 } // namespace internal | 41 } // namespace internal |
43 } // namespace ash | 42 } // namespace ash |
44 | 43 |
45 #endif // ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ | 44 #endif // ASH_LAUNCHER_APP_LAUNCHER_BUTTON_H_ |
OLD | NEW |