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

Side by Side Diff: ui/views/examples/checkbox_example.cc

Issue 16757004: Use a direct include of strings headers in ui/, part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/corewm/tooltip_controller_test_helper.h ('k') | ui/views/examples/combobox_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ui/views/examples/checkbox_example.h" 5 #include "ui/views/examples/checkbox_example.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "ui/views/controls/button/checkbox.h" 9 #include "ui/views/controls/button/checkbox.h"
10 #include "ui/views/controls/button/radio_button.h" 10 #include "ui/views/controls/button/radio_button.h"
11 #include "ui/views/layout/fill_layout.h" 11 #include "ui/views/layout/fill_layout.h"
12 12
13 namespace views { 13 namespace views {
14 namespace examples { 14 namespace examples {
15 15
16 CheckboxExample::CheckboxExample() : ExampleBase("Checkbox"), count_(0) { 16 CheckboxExample::CheckboxExample() : ExampleBase("Checkbox"), count_(0) {
17 } 17 }
18 18
19 CheckboxExample::~CheckboxExample() { 19 CheckboxExample::~CheckboxExample() {
20 } 20 }
21 21
22 void CheckboxExample::CreateExampleView(View* container) { 22 void CheckboxExample::CreateExampleView(View* container) {
23 button_ = new Checkbox(ASCIIToUTF16("Checkbox")); 23 button_ = new Checkbox(ASCIIToUTF16("Checkbox"));
24 button_->set_listener(this); 24 button_->set_listener(this);
25 container->SetLayoutManager(new FillLayout); 25 container->SetLayoutManager(new FillLayout);
26 container->AddChildView(button_); 26 container->AddChildView(button_);
27 } 27 }
28 28
29 void CheckboxExample::ButtonPressed(Button* sender, const ui::Event& event) { 29 void CheckboxExample::ButtonPressed(Button* sender, const ui::Event& event) {
30 PrintStatus("Pressed! count: %d", ++count_); 30 PrintStatus("Pressed! count: %d", ++count_);
31 } 31 }
32 32
33 } // namespace examples 33 } // namespace examples
34 } // namespace views 34 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/corewm/tooltip_controller_test_helper.h ('k') | ui/views/examples/combobox_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698