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

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

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/native_theme_button_example.h ('k') | ui/views/focus/accelerator_handler.h » ('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/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"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "ui/base/animation/throb_animation.h" 12 #include "ui/base/animation/throb_animation.h"
13 #include "ui/base/models/combobox_model.h" 13 #include "ui/base/models/combobox_model.h"
14 #include "ui/gfx/canvas.h" 14 #include "ui/gfx/canvas.h"
15 #include "ui/views/controls/combobox/combobox.h" 15 #include "ui/views/controls/combobox/combobox.h"
16 #include "ui/views/controls/label.h" 16 #include "ui/views/controls/label.h"
17 #include "ui/views/examples/example_combobox_model.h" 17 #include "ui/views/examples/example_combobox_model.h"
18 #include "ui/views/layout/grid_layout.h" 18 #include "ui/views/layout/grid_layout.h"
19 #include "views/native_theme_painter.h" 19 #include "ui/views/native_theme_painter.h"
20 20
21 namespace { 21 namespace {
22 22
23 const char* kParts[] = { 23 const char* kParts[] = {
24 "PushButton", 24 "PushButton",
25 "RadioButton", 25 "RadioButton",
26 "Checkbox", 26 "Checkbox",
27 }; 27 };
28 28
29 const char* kStates[] = { 29 const char* kStates[] = {
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 layout->AddPaddingRow(0, 8); 249 layout->AddPaddingRow(0, 8);
250 } 250 }
251 251
252 void NativeThemeButtonExample::ButtonPressed(Button* sender, 252 void NativeThemeButtonExample::ButtonPressed(Button* sender,
253 const Event& event) { 253 const Event& event) {
254 PrintStatus(button_->MessWithState().c_str()); 254 PrintStatus(button_->MessWithState().c_str());
255 } 255 }
256 256
257 } // namespace examples 257 } // namespace examples
258 } // namespace views 258 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/examples/native_theme_button_example.h ('k') | ui/views/focus/accelerator_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698