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

Side by Side Diff: views/controls/message_box_view.cc

Issue 113940: Make Textfield more portable.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "views/controls/message_box_view.h" 5 #include "views/controls/message_box_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/message_box_flags.h" 8 #include "app/message_box_flags.h"
9 #include "base/clipboard.h" 9 #include "base/clipboard.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 29 matching lines...) Expand all
40 prompt_field_(NULL), 40 prompt_field_(NULL),
41 icon_(NULL), 41 icon_(NULL),
42 checkbox_(NULL), 42 checkbox_(NULL),
43 message_width_(kDefaultMessageWidth), 43 message_width_(kDefaultMessageWidth),
44 ALLOW_THIS_IN_INITIALIZER_LIST(focus_grabber_factory_(this)) { 44 ALLOW_THIS_IN_INITIALIZER_LIST(focus_grabber_factory_(this)) {
45 Init(dialog_flags, default_prompt); 45 Init(dialog_flags, default_prompt);
46 } 46 }
47 47
48 std::wstring MessageBoxView::GetInputText() { 48 std::wstring MessageBoxView::GetInputText() {
49 if (prompt_field_) 49 if (prompt_field_)
50 return prompt_field_->GetText(); 50 return prompt_field_->text();
51 return EmptyWString(); 51 return EmptyWString();
52 } 52 }
53 53
54 bool MessageBoxView::IsCheckBoxSelected() { 54 bool MessageBoxView::IsCheckBoxSelected() {
55 return checkbox_ ? checkbox_->checked() : false; 55 return checkbox_ ? checkbox_->checked() : false;
56 } 56 }
57 57
58 void MessageBoxView::SetIcon(const SkBitmap& icon) { 58 void MessageBoxView::SetIcon(const SkBitmap& icon) {
59 if (!icon_) 59 if (!icon_)
60 icon_ = new views::ImageView(); 60 icon_ = new views::ImageView();
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 if (checkbox_) { 208 if (checkbox_) {
209 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); 209 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing);
210 layout->StartRow(0, checkbox_column_view_set_id); 210 layout->StartRow(0, checkbox_column_view_set_id);
211 layout->AddView(checkbox_); 211 layout->AddView(checkbox_);
212 } 212 }
213 213
214 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); 214 layout->AddPaddingRow(0, kRelatedControlVerticalSpacing);
215 } 215 }
OLDNEW
« no previous file with comments | « chrome/browser/views/shelf_item_dialog.cc ('k') | views/controls/textfield/native_textfield_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698