| OLD | NEW |
| 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 #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 |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "views/view.h" | 12 #include "views/view.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 | 15 |
| 16 class Checkbox; | 16 class Checkbox; |
| 17 class ImageView; | 17 class ImageView; |
| 18 class Label; | 18 class Label; |
| 19 class Textfield; | 19 class Textfield; |
| 20 | 20 |
| 21 // This class displays the contents of a message box. It is intended for use | 21 // This class displays the contents of a message box. It is intended for use |
| 22 // within a constrained window, and has options for a message, prompt, OK | 22 // within a constrained window, and has options for a message, prompt, OK |
| 23 // and Cancel buttons. | 23 // and Cancel buttons. |
| 24 class VIEWS_API MessageBoxView : public View { | 24 class VIEWS_EXPORT MessageBoxView : public View { |
| 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 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 int message_width_; | 93 int message_width_; |
| 94 | 94 |
| 95 ScopedRunnableMethodFactory<MessageBoxView> focus_grabber_factory_; | 95 ScopedRunnableMethodFactory<MessageBoxView> focus_grabber_factory_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); | 97 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace views | 100 } // namespace views |
| 101 | 101 |
| 102 #endif // VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ | 102 #endif // VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ |
| OLD | NEW |