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/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Creates and adds a check box to the layout. | 34 // Creates and adds a check box to the layout. |
35 Checkbox* AddCheckbox(GridLayout* layout, const char* name); | 35 Checkbox* AddCheckbox(GridLayout* layout, const char* name); |
36 | 36 |
37 // Creates and adds a combobox to the layout. | 37 // Creates and adds a combobox to the layout. |
38 Combobox* AddCombobox(GridLayout* layout, | 38 Combobox* AddCombobox(GridLayout* layout, |
39 const char* name, | 39 const char* name, |
40 const char** strings, | 40 const char** strings, |
41 int count); | 41 int count); |
42 | 42 |
43 // Overridden from ButtonListener: | 43 // Overridden from ButtonListener: |
44 virtual void ButtonPressed(Button* button, const Event& event) OVERRIDE; | 44 virtual void ButtonPressed(Button* button, const ui::Event& event) OVERRIDE; |
45 | 45 |
46 // Overridden from ComboboxListener: | 46 // Overridden from ComboboxListener: |
47 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE; | 47 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE; |
48 | 48 |
49 class TextExampleView; | 49 class TextExampleView; |
50 // The content of the scroll view. | 50 // The content of the scroll view. |
51 TextExampleView* text_view_; | 51 TextExampleView* text_view_; |
52 | 52 |
53 // Combo box for horizontal text alignment. | 53 // Combo box for horizontal text alignment. |
54 Combobox* h_align_cb_; | 54 Combobox* h_align_cb_; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // around until destruction time. | 87 // around until destruction time. |
88 ScopedVector<ExampleComboboxModel> example_combobox_model_; | 88 ScopedVector<ExampleComboboxModel> example_combobox_model_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(TextExample); | 90 DISALLOW_COPY_AND_ASSIGN(TextExample); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace examples | 93 } // namespace examples |
94 } // namespace views | 94 } // namespace views |
95 | 95 |
96 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ | 96 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ |
OLD | NEW |