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

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

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 #ifndef VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ 5 #ifndef VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_
6 #define VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ 6 #define VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 MessageBoxView(int dialog_flags, 26 MessageBoxView(int dialog_flags,
27 const std::wstring& message, 27 const std::wstring& message,
28 const std::wstring& default_prompt, 28 const std::wstring& default_prompt,
29 int message_width); 29 int message_width);
30 30
31 MessageBoxView(int dialog_flags, 31 MessageBoxView(int dialog_flags,
32 const std::wstring& message, 32 const std::wstring& message,
33 const std::wstring& default_prompt); 33 const std::wstring& default_prompt);
34 34
35 virtual ~MessageBoxView();
36
35 // Returns the text box. 37 // Returns the text box.
36 views::Textfield* text_box() { return prompt_field_; } 38 views::Textfield* text_box() { return prompt_field_; }
37 39
38 // Returns user entered data in the prompt field. 40 // Returns user entered data in the prompt field.
39 std::wstring GetInputText(); 41 std::wstring GetInputText();
40 42
41 // Returns true if a checkbox is selected, false otherwise. (And false if 43 // Returns true if a checkbox is selected, false otherwise. (And false if
42 // the message box has no checkbox.) 44 // the message box has no checkbox.)
43 bool IsCheckBoxSelected(); 45 bool IsCheckBoxSelected();
44 46
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 88
87 // Maximum width of the message label. 89 // Maximum width of the message label.
88 int message_width_; 90 int message_width_;
89 91
90 ScopedRunnableMethodFactory<MessageBoxView> focus_grabber_factory_; 92 ScopedRunnableMethodFactory<MessageBoxView> focus_grabber_factory_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); 94 DISALLOW_COPY_AND_ASSIGN(MessageBoxView);
93 }; 95 };
94 96
95 #endif // VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ 97 #endif // VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698