| 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_TEXT_EXAMPLE_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ |
| 6 #define UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ | 6 #define UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Combo box to choose one of the sample texts. | 61 // Combo box to choose one of the sample texts. |
| 62 Combobox* text_cb_; | 62 Combobox* text_cb_; |
| 63 | 63 |
| 64 // Check box to enable/disable multiline text drawing. | 64 // Check box to enable/disable multiline text drawing. |
| 65 Checkbox* multiline_checkbox_; | 65 Checkbox* multiline_checkbox_; |
| 66 | 66 |
| 67 // Check box to enable/disable character break behavior. | 67 // Check box to enable/disable character break behavior. |
| 68 Checkbox* break_checkbox_; | 68 Checkbox* break_checkbox_; |
| 69 | 69 |
| 70 // Check box to enable/disable text halo. | |
| 71 Checkbox* halo_checkbox_; | |
| 72 | |
| 73 // Check box to enable/disable bold style. | 70 // Check box to enable/disable bold style. |
| 74 Checkbox* bold_checkbox_; | 71 Checkbox* bold_checkbox_; |
| 75 | 72 |
| 76 // Check box to enable/disable italic style. | 73 // Check box to enable/disable italic style. |
| 77 Checkbox* italic_checkbox_; | 74 Checkbox* italic_checkbox_; |
| 78 | 75 |
| 79 // Check box to enable/disable underline style. | 76 // Check box to enable/disable underline style. |
| 80 Checkbox* underline_checkbox_; | 77 Checkbox* underline_checkbox_; |
| 81 | 78 |
| 82 // We create a model for each of the combobox, so we need to keep them | 79 // We create a model for each of the combobox, so we need to keep them |
| 83 // around until destruction time. | 80 // around until destruction time. |
| 84 ScopedVector<ExampleComboboxModel> example_combobox_model_; | 81 ScopedVector<ExampleComboboxModel> example_combobox_model_; |
| 85 | 82 |
| 86 DISALLOW_COPY_AND_ASSIGN(TextExample); | 83 DISALLOW_COPY_AND_ASSIGN(TextExample); |
| 87 }; | 84 }; |
| 88 | 85 |
| 89 } // namespace examples | 86 } // namespace examples |
| 90 } // namespace views | 87 } // namespace views |
| 91 | 88 |
| 92 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ | 89 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ |
| OLD | NEW |