| 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" |
| 11 #include "ui/views/controls/button/button.h" | 11 #include "ui/views/controls/button/button.h" |
| 12 #include "ui/views/controls/combobox/combobox_listener.h" | 12 #include "ui/views/controls/combobox/combobox_listener.h" |
| 13 #include "ui/views/examples/example_base.h" | 13 #include "ui/views/examples/example_base.h" |
| 14 | 14 |
| 15 namespace views { | 15 namespace views { |
| 16 class Checkbox; | 16 class Checkbox; |
| 17 class GridLayout; | 17 class GridLayout; |
| 18 | 18 |
| 19 namespace examples { | 19 namespace examples { |
| 20 | 20 |
| 21 class ExampleComboboxModel; | 21 class ExampleComboboxModel; |
| 22 | 22 |
| 23 class TextExample : public ExampleBase, | 23 class VIEWS_EXAMPLES_EXPORT TextExample : public ExampleBase, |
| 24 public ButtonListener, | 24 public ButtonListener, |
| 25 public ComboboxListener { | 25 public ComboboxListener { |
| 26 public: | 26 public: |
| 27 TextExample(); | 27 TextExample(); |
| 28 virtual ~TextExample(); | 28 virtual ~TextExample(); |
| 29 | 29 |
| 30 // Overridden from ExampleBase: | 30 // Overridden from ExampleBase: |
| 31 virtual void CreateExampleView(View* container) OVERRIDE; | 31 virtual void CreateExampleView(View* container) OVERRIDE; |
| 32 | 32 |
| 33 private: | 33 private: |
| 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); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // around until destruction time. | 84 // around until destruction time. |
| 85 ScopedVector<ExampleComboboxModel> example_combobox_model_; | 85 ScopedVector<ExampleComboboxModel> example_combobox_model_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(TextExample); | 87 DISALLOW_COPY_AND_ASSIGN(TextExample); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace examples | 90 } // namespace examples |
| 91 } // namespace views | 91 } // namespace views |
| 92 | 92 |
| 93 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ | 93 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ |
| OLD | NEW |