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

Side by Side Diff: ui/views/examples/native_theme_button_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) 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 #include "ui/views/examples/native_theme_button_example.h" 5 #include "ui/views/examples/native_theme_button_example.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 244 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL,
245 1, GridLayout::USE_PREF, 0, 0); 245 1, GridLayout::USE_PREF, 0, 0);
246 column_set->AddPaddingColumn(0, 16); 246 column_set->AddPaddingColumn(0, 16);
247 layout->StartRow(1, 1); 247 layout->StartRow(1, 1);
248 layout->AddView(button_); 248 layout->AddView(button_);
249 249
250 layout->AddPaddingRow(0, 8); 250 layout->AddPaddingRow(0, 8);
251 } 251 }
252 252
253 void NativeThemeButtonExample::ButtonPressed(Button* sender, 253 void NativeThemeButtonExample::ButtonPressed(Button* sender,
254 const Event& event) { 254 const ui::Event& event) {
255 PrintStatus(button_->MessWithState().c_str()); 255 PrintStatus(button_->MessWithState().c_str());
256 } 256 }
257 257
258 } // namespace examples 258 } // namespace examples
259 } // namespace views 259 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/examples/native_theme_button_example.h ('k') | ui/views/examples/native_theme_checkbox_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698