| 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 27 matching lines...) Expand all Loading... |
| 38 // Creates and adds a combobox 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 OnSelectedIndexChanged(Combobox* combobox) OVERRIDE; |
| 49 int prev_index, | |
| 50 int new_index) OVERRIDE; | |
| 51 | 49 |
| 52 class TextExampleView; | 50 class TextExampleView; |
| 53 // The content of the scroll view. | 51 // The content of the scroll view. |
| 54 TextExampleView* text_view_; | 52 TextExampleView* text_view_; |
| 55 | 53 |
| 56 // Combo box for horizontal text alignment. | 54 // Combo box for horizontal text alignment. |
| 57 Combobox* h_align_cb_; | 55 Combobox* h_align_cb_; |
| 58 | 56 |
| 59 // Combo box for vertical text alignment. | 57 // Combo box for vertical text alignment. |
| 60 Combobox* v_align_cb_; | 58 Combobox* v_align_cb_; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 90 // around until destruction time. | 88 // around until destruction time. |
| 91 ScopedVector<ExampleComboboxModel> example_combobox_model_; | 89 ScopedVector<ExampleComboboxModel> example_combobox_model_; |
| 92 | 90 |
| 93 DISALLOW_COPY_AND_ASSIGN(TextExample); | 91 DISALLOW_COPY_AND_ASSIGN(TextExample); |
| 94 }; | 92 }; |
| 95 | 93 |
| 96 } // namespace examples | 94 } // namespace examples |
| 97 } // namespace views | 95 } // namespace views |
| 98 | 96 |
| 99 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ | 97 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ |
| OLD | NEW |