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

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

Issue 10378086: views: Add a new ctor to MessageBoxView that takes only a InitParams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix review Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/message_box_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/message_box_example.cc
diff --git a/ui/views/examples/message_box_example.cc b/ui/views/examples/message_box_example.cc
index c718077d709eecad7d6f8850d4c4535af38bcfa9..e50d22a68a005f03583f3a88f9803b274abe5786 100644
--- a/ui/views/examples/message_box_example.cc
+++ b/ui/views/examples/message_box_example.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -20,9 +20,7 @@ MessageBoxExample::~MessageBoxExample() {
void MessageBoxExample::CreateExampleView(View* container) {
message_box_view_ = new MessageBoxView(
- views::MessageBoxView::NO_OPTIONS,
- ASCIIToUTF16("Message Box Message"),
- ASCIIToUTF16("Default Prompt"));
+ MessageBoxView::InitParams(ASCIIToUTF16("Hello, world!")));
status_ = new TextButton(this, ASCIIToUTF16("Show Status"));
toggle_ = new TextButton(this, ASCIIToUTF16("Toggle Checkbox"));
« no previous file with comments | « ui/views/controls/message_box_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698