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

Unified Diff: ui/views/examples/native_theme_checkbox_example.cc

Issue 8687013: Get the examples to run in aura_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/native_theme_checkbox_example.cc
===================================================================
--- ui/views/examples/native_theme_checkbox_example.cc (revision 111815)
+++ ui/views/examples/native_theme_checkbox_example.cc (working copy)
@@ -10,26 +10,28 @@
#include "ui/views/controls/button/radio_button.h"
#include "ui/views/layout/fill_layout.h"
+namespace views {
namespace examples {
-NativeThemeCheckboxExample::NativeThemeCheckboxExample(ExamplesMain* main)
- : ExampleBase(main, "Native Theme Checkbox"),
+NativeThemeCheckboxExample::NativeThemeCheckboxExample()
+ : ExampleBase("Native Theme Checkbox"),
count_(0) {
}
NativeThemeCheckboxExample::~NativeThemeCheckboxExample() {
}
-void NativeThemeCheckboxExample::CreateExampleView(views::View* container) {
- button_ = new views::Checkbox(ASCIIToUTF16("Checkbox"));
+void NativeThemeCheckboxExample::CreateExampleView(View* container) {
+ button_ = new Checkbox(ASCIIToUTF16("Checkbox"));
button_->set_listener(this);
- container->SetLayoutManager(new views::FillLayout);
+ container->SetLayoutManager(new FillLayout);
container->AddChildView(button_);
}
-void NativeThemeCheckboxExample::ButtonPressed(views::Button* sender,
- const views::Event& event) {
+void NativeThemeCheckboxExample::ButtonPressed(Button* sender,
+ const Event& event) {
PrintStatus(base::StringPrintf("Pressed! count: %d", ++count_).c_str());
}
} // namespace examples
+} // namespace views
« 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