| 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 UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ |
| 6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ | 6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Overridden from ButtonListener: | 31 // Overridden from ButtonListener: |
| 32 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; | 32 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; |
| 33 | 33 |
| 34 // Example buttons. | 34 // Example buttons. |
| 35 TextButton* text_button_; | 35 TextButton* text_button_; |
| 36 ImageButton* image_button_; | 36 ImageButton* image_button_; |
| 37 | 37 |
| 38 // Values used to modify the look and feel of the button. | 38 // Values used to modify the look and feel of the button. |
| 39 TextButton::TextAlignment alignment_; | 39 TextButton::TextAlignment alignment_; |
| 40 bool use_native_theme_border_; | 40 bool use_native_theme_border_; |
| 41 const SkBitmap* icon_; | 41 const gfx::ImageSkia* icon_; |
| 42 | 42 |
| 43 // The number of times the buttons are pressed. | 43 // The number of times the buttons are pressed. |
| 44 int count_; | 44 int count_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(ButtonExample); | 46 DISALLOW_COPY_AND_ASSIGN(ButtonExample); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace examples | 49 } // namespace examples |
| 50 } // namespace views | 50 } // namespace views |
| 51 | 51 |
| 52 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ | 52 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ |
| OLD | NEW |