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 #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 17 matching lines...) Expand all Loading... |
28 TextExample(); | 28 TextExample(); |
29 virtual ~TextExample(); | 29 virtual ~TextExample(); |
30 | 30 |
31 // Overridden from ExampleBase: | 31 // Overridden from ExampleBase: |
32 virtual void CreateExampleView(View* container) OVERRIDE; | 32 virtual void CreateExampleView(View* container) OVERRIDE; |
33 | 33 |
34 private: | 34 private: |
35 // Creates and adds a check box to the layout. | 35 // Creates and adds a check box to the layout. |
36 Checkbox* AddCheckbox(GridLayout* layout, const char* name); | 36 Checkbox* AddCheckbox(GridLayout* layout, const char* name); |
37 | 37 |
38 // Creates and adds a combo box to the layout. | 38 // Creates and adds a combobox to the layout. |
39 Combobox* AddCombobox(GridLayout* layout, | 39 Combobox* AddCombobox(GridLayout* layout, |
40 const char* name, | 40 const char* name, |
41 const char** strings, | 41 const char** strings, |
42 int count); | 42 int count); |
43 | 43 |
44 // Overridden from ButtonListener: | 44 // Overridden from ButtonListener: |
45 virtual void ButtonPressed(Button* button, const Event& event) OVERRIDE; | 45 virtual void ButtonPressed(Button* button, const Event& event) OVERRIDE; |
46 | 46 |
47 // Overridden from ComboboxListener: | 47 // Overridden from ComboboxListener: |
48 virtual void ItemChanged(Combobox* combo_box, | 48 virtual void ItemChanged(Combobox* combo_box, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // around until destruction time. | 90 // around until destruction time. |
91 ScopedVector<ExampleComboboxModel> example_combobox_model_; | 91 ScopedVector<ExampleComboboxModel> example_combobox_model_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(TextExample); | 93 DISALLOW_COPY_AND_ASSIGN(TextExample); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace examples | 96 } // namespace examples |
97 } // namespace views | 97 } // namespace views |
98 | 98 |
99 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ | 99 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ |
OLD | NEW |