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

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

Issue 138783002: Cleans up gyp file for views example and removes duplicate code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 6 years, 11 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/table_example.h ('k') | ui/views/examples/textfield_example.h » ('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 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
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_
OLDNEW
« no previous file with comments | « ui/views/examples/table_example.h ('k') | ui/views/examples/textfield_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698