| 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 "ui/gfx/shadow_value.h" | 8 #include "ui/gfx/shadow_value.h" |
| 9 #include "ui/views/controls/button/custom_button.h" | 9 #include "ui/views/controls/button/custom_button.h" |
| 10 #include "ui/views/controls/image_view.h" | 10 #include "ui/views/controls/image_view.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 // View overrides: | 79 // View overrides: |
| 80 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 80 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 81 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 81 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 82 virtual void OnMouseCaptureLost() OVERRIDE; | 82 virtual void OnMouseCaptureLost() OVERRIDE; |
| 83 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; | 83 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; |
| 84 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; | 84 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; |
| 85 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; | 85 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
| 86 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 86 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
| 87 virtual ui::GestureStatus OnGestureEvent(const ui::GestureEvent& event) | 87 virtual ui::EventResult OnGestureEvent(const ui::GestureEvent& event) |
| 88 OVERRIDE; | 88 OVERRIDE; |
| 89 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 89 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 90 virtual void Layout() OVERRIDE; | 90 virtual void Layout() OVERRIDE; |
| 91 virtual void OnFocus() OVERRIDE; | 91 virtual void OnFocus() OVERRIDE; |
| 92 virtual void OnBlur() OVERRIDE; | 92 virtual void OnBlur() OVERRIDE; |
| 93 | 93 |
| 94 // Sets the icon image with a shadow. | 94 // Sets the icon image with a shadow. |
| 95 void SetShadowedImage(const gfx::ImageSkia& bitmap); | 95 void SetShadowedImage(const gfx::ImageSkia& bitmap); |
| 96 // Override for custom initialization. | 96 // Override for custom initialization. |
| 97 virtual void Init(); | 97 virtual void Init(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 121 | 121 |
| 122 gfx::ShadowValues icon_shadows_; | 122 gfx::ShadowValues icon_shadows_; |
| 123 | 123 |
| 124 DISALLOW_COPY_AND_ASSIGN(LauncherButton); | 124 DISALLOW_COPY_AND_ASSIGN(LauncherButton); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 } // namespace internal | 127 } // namespace internal |
| 128 } // namespace ash | 128 } // namespace ash |
| 129 | 129 |
| 130 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_ | 130 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_ |
| OLD | NEW |