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

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

Issue 8566052: views: Delete bubble, events, focus, layout directories and its stubbed files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/examples/menu_example.cc ('k') | ui/views/examples/native_theme_button_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/message_box_example.h" 5 #include "ui/views/examples/message_box_example.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "ui/views/layout/grid_layout.h"
8 #include "views/controls/message_box_view.h" 9 #include "views/controls/message_box_view.h"
9 #include "views/layout/grid_layout.h"
10 #include "views/view.h" 10 #include "views/view.h"
11 11
12 namespace examples { 12 namespace examples {
13 13
14 MessageBoxExample::MessageBoxExample(ExamplesMain* main) 14 MessageBoxExample::MessageBoxExample(ExamplesMain* main)
15 : ExampleBase(main, "Message Box View") { 15 : ExampleBase(main, "Message Box View") {
16 } 16 }
17 17
18 MessageBoxExample::~MessageBoxExample() { 18 MessageBoxExample::~MessageBoxExample() {
19 } 19 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ASCIIToUTF16(BoolToOnOff(message_box_view_->IsCheckBoxSelected()))); 58 ASCIIToUTF16(BoolToOnOff(message_box_view_->IsCheckBoxSelected())));
59 PrintStatus(message_box_view_->IsCheckBoxSelected() ? 59 PrintStatus(message_box_view_->IsCheckBoxSelected() ?
60 "Check Box Selected" : "Check Box Not Selected"); 60 "Check Box Selected" : "Check Box Not Selected");
61 } else if (sender == toggle_) { 61 } else if (sender == toggle_) {
62 message_box_view_->SetCheckBoxSelected( 62 message_box_view_->SetCheckBoxSelected(
63 !message_box_view_->IsCheckBoxSelected()); 63 !message_box_view_->IsCheckBoxSelected());
64 } 64 }
65 } 65 }
66 66
67 } // namespace examples 67 } // namespace examples
OLDNEW
« no previous file with comments | « ui/views/examples/menu_example.cc ('k') | ui/views/examples/native_theme_button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698