| 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 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
| 10 #include "ui/views/examples/example_base.h" | 10 #include "ui/views/examples/example_base.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 // ButtonListener: | 33 // ButtonListener: |
| 34 void ButtonPressed(Button* sender, const ui::Event& event) override; | 34 void ButtonPressed(Button* sender, const ui::Event& event) override; |
| 35 | 35 |
| 36 // Example buttons. | 36 // Example buttons. |
| 37 LabelButton* label_button_ = nullptr; | 37 LabelButton* label_button_ = nullptr; |
| 38 LabelButton* styled_button_ = nullptr; | 38 LabelButton* styled_button_ = nullptr; |
| 39 LabelButton* disabled_button_ = nullptr; | 39 LabelButton* disabled_button_ = nullptr; |
| 40 MdTextButton* md_button_ = nullptr; | 40 MdTextButton* md_button_ = nullptr; |
| 41 MdTextButton* md_default_button_ = nullptr; | 41 MdTextButton* md_default_button_ = nullptr; |
| 42 MdTextButton* md_prominent_button_ = nullptr; | |
| 43 ImageButton* image_button_ = nullptr; | 42 ImageButton* image_button_ = nullptr; |
| 44 | 43 |
| 45 const gfx::ImageSkia* icon_ = nullptr; | 44 const gfx::ImageSkia* icon_ = nullptr; |
| 46 | 45 |
| 47 // The number of times the buttons are pressed. | 46 // The number of times the buttons are pressed. |
| 48 int count_ = 0; | 47 int count_ = 0; |
| 49 | 48 |
| 50 DISALLOW_COPY_AND_ASSIGN(ButtonExample); | 49 DISALLOW_COPY_AND_ASSIGN(ButtonExample); |
| 51 }; | 50 }; |
| 52 | 51 |
| 53 } // namespace examples | 52 } // namespace examples |
| 54 } // namespace views | 53 } // namespace views |
| 55 | 54 |
| 56 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ | 55 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ |
| OLD | NEW |