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

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

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
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/native_theme_checkbox_example.h" 5 #include "ui/views/examples/native_theme_checkbox_example.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/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"
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 void NativeThemeCheckboxExample::CreateExampleView(View* container) { 24 void NativeThemeCheckboxExample::CreateExampleView(View* container) {
25 button_ = new Checkbox(ASCIIToUTF16("Checkbox")); 25 button_ = new Checkbox(ASCIIToUTF16("Checkbox"));
26 button_->set_listener(this); 26 button_->set_listener(this);
27 container->SetLayoutManager(new FillLayout); 27 container->SetLayoutManager(new FillLayout);
28 container->AddChildView(button_); 28 container->AddChildView(button_);
29 } 29 }
30 30
31 void NativeThemeCheckboxExample::ButtonPressed(Button* sender, 31 void NativeThemeCheckboxExample::ButtonPressed(Button* sender,
32 const Event& event) { 32 const ui::Event& event) {
33 PrintStatus(base::StringPrintf("Pressed! count: %d", ++count_).c_str()); 33 PrintStatus(base::StringPrintf("Pressed! count: %d", ++count_).c_str());
34 } 34 }
35 35
36 } // namespace examples 36 } // namespace examples
37 } // namespace views 37 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/examples/native_theme_checkbox_example.h ('k') | ui/views/examples/progress_bar_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698