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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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.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 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"
(...skipping 23 matching lines...) Expand all
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);
36 36
37 // Creates and adds a combobox to the layout. 37 // Creates and adds a combobox to the layout.
38 Combobox* AddCombobox(GridLayout* layout, 38 Combobox* AddCombobox(GridLayout* layout,
39 const char* name, 39 const char* name,
40 const char** strings, 40 const char** strings,
41 int count); 41 int count);
42 42
43 // Overridden from ButtonListener: 43 // Overridden from ButtonListener:
44 virtual void ButtonPressed(Button* button, const Event& event) OVERRIDE; 44 virtual void ButtonPressed(Button* button, const ui::Event& event) OVERRIDE;
45 45
46 // Overridden from ComboboxListener: 46 // Overridden from ComboboxListener:
47 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE; 47 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE;
48 48
49 class TextExampleView; 49 class TextExampleView;
50 // The content of the scroll view. 50 // The content of the scroll view.
51 TextExampleView* text_view_; 51 TextExampleView* text_view_;
52 52
53 // Combo box for horizontal text alignment. 53 // Combo box for horizontal text alignment.
54 Combobox* h_align_cb_; 54 Combobox* h_align_cb_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // around until destruction time. 87 // around until destruction time.
88 ScopedVector<ExampleComboboxModel> example_combobox_model_; 88 ScopedVector<ExampleComboboxModel> example_combobox_model_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(TextExample); 90 DISALLOW_COPY_AND_ASSIGN(TextExample);
91 }; 91 };
92 92
93 } // namespace examples 93 } // namespace examples
94 } // namespace views 94 } // namespace views
95 95
96 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_ 96 #endif // UI_VIEWS_EXAMPLES_TEXT_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/examples/table_example.cc ('k') | ui/views/examples/text_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698