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

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

Issue 9875001: views: Rename Combobox "selected getter/setter" accessors 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 17 matching lines...) Expand all
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
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_
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