| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ | 5 #ifndef VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ |
| 6 #define VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ | 6 #define VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ |
| 7 | 7 |
| 8 #include "app/animation.h" | 8 #include "app/animation.h" |
| 9 #include "views/controls/button/button.h" | 9 #include "views/controls/button/button.h" |
| 10 | 10 |
| 11 class ThrobAnimation; | 11 class ThrobAnimation; |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 | 14 |
| 15 // A button with custom rendering. The common base class of IconButton and | 15 // A button with custom rendering. The common base class of ImageButton and |
| 16 // TextButton. | 16 // TextButton. |
| 17 class CustomButton : public Button, | 17 class CustomButton : public Button, |
| 18 public AnimationDelegate { | 18 public AnimationDelegate { |
| 19 public: | 19 public: |
| 20 virtual ~CustomButton(); | 20 virtual ~CustomButton(); |
| 21 | 21 |
| 22 // Possible states | 22 // Possible states |
| 23 enum ButtonState { | 23 enum ButtonState { |
| 24 BS_NORMAL = 0, | 24 BS_NORMAL = 0, |
| 25 BS_HOT, | 25 BS_HOT, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 // Mouse event flags which can trigger button actions. | 97 // Mouse event flags which can trigger button actions. |
| 98 int triggerable_event_flags_; | 98 int triggerable_event_flags_; |
| 99 | 99 |
| 100 DISALLOW_COPY_AND_ASSIGN(CustomButton); | 100 DISALLOW_COPY_AND_ASSIGN(CustomButton); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace views | 103 } // namespace views |
| 104 | 104 |
| 105 #endif // VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ | 105 #endif // VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ |
| OLD | NEW |