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_LAUNCHER_BUTTON_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_BUTTON_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/gfx/shadow_value.h" | 9 #include "ui/gfx/shadow_value.h" |
10 #include "ui/views/controls/button/custom_button.h" | 10 #include "ui/views/controls/button/custom_button.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 }; | 82 }; |
83 | 83 |
84 // View overrides: | 84 // View overrides: |
85 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 85 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
86 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 86 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
87 virtual void OnMouseCaptureLost() OVERRIDE; | 87 virtual void OnMouseCaptureLost() OVERRIDE; |
88 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; | 88 virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE; |
89 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | 89 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; |
90 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; | 90 virtual void OnMouseEntered(const views::MouseEvent& event) OVERRIDE; |
91 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 91 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
92 virtual ui::GestureStatus OnGestureEvent( | 92 virtual ui::GestureStatus OnGestureEvent(const views::GestureEvent& event) |
93 const views::GestureEvent& event) OVERRIDE; | 93 OVERRIDE; |
94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 94 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
95 virtual void Layout() OVERRIDE; | 95 virtual void Layout() OVERRIDE; |
96 virtual void OnFocus() OVERRIDE; | 96 virtual void OnFocus() OVERRIDE; |
97 virtual void OnBlur() OVERRIDE; | 97 virtual void OnBlur() OVERRIDE; |
98 | 98 |
99 // Sets the icon image with a shadow. | 99 // Sets the icon image with a shadow. |
100 void SetShadowedImage(const gfx::ImageSkia& bitmap); | 100 void SetShadowedImage(const gfx::ImageSkia& bitmap); |
101 // Override for custom initialization. | 101 // Override for custom initialization. |
102 virtual void Init(); | 102 virtual void Init(); |
103 // Override to subclass IconView. | 103 // Override to subclass IconView. |
(...skipping 27 matching lines...) Expand all Loading... |
131 | 131 |
132 gfx::ShadowValues icon_shadows_; | 132 gfx::ShadowValues icon_shadows_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(LauncherButton); | 134 DISALLOW_COPY_AND_ASSIGN(LauncherButton); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace internal | 137 } // namespace internal |
138 } // namespace ash | 138 } // namespace ash |
139 | 139 |
140 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_ | 140 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_ |
OLD | NEW |