Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: ui/views/examples/text_example.h

Issue 9965017: views: Rename ComboboxListener::ItemChanged to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo_box -> combobox Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/examples/native_theme_button_example.cc ('k') | ui/views/examples/text_example.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/examples/native_theme_button_example.cc ('k') | ui/views/examples/text_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698