| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_APP_MODAL_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_H_ |
| 6 #define CHROME_BROWSER_APP_MODAL_DIALOG_H_ | 6 #define CHROME_BROWSER_APP_MODAL_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void CancelWindow(); | 88 void CancelWindow(); |
| 89 | 89 |
| 90 private: | 90 private: |
| 91 void InitNotifications(); | 91 void InitNotifications(); |
| 92 | 92 |
| 93 // NotificationObserver implementation. | 93 // NotificationObserver implementation. |
| 94 virtual void Observe(NotificationType type, | 94 virtual void Observe(NotificationType type, |
| 95 const NotificationSource& source, | 95 const NotificationSource& source, |
| 96 const NotificationDetails& details); | 96 const NotificationDetails& details); |
| 97 | 97 |
| 98 // Sends APP_MODAL_DIALOG_CLOSED notification. |
| 99 void SendCloseNotification(); |
| 100 |
| 98 NotificationRegistrar registrar_; | 101 NotificationRegistrar registrar_; |
| 99 | 102 |
| 100 // A reference to the platform native dialog box. | 103 // A reference to the platform native dialog box. |
| 101 NativeDialog dialog_; | 104 NativeDialog dialog_; |
| 102 | 105 |
| 103 // Information about the message box is held in the following variables. | 106 // Information about the message box is held in the following variables. |
| 104 TabContents* tab_contents_; | 107 TabContents* tab_contents_; |
| 105 std::wstring title_; | 108 std::wstring title_; |
| 106 int dialog_flags_; | 109 int dialog_flags_; |
| 107 std::wstring message_text_; | 110 std::wstring message_text_; |
| 108 std::wstring default_prompt_text_; | 111 std::wstring default_prompt_text_; |
| 109 bool display_suppress_checkbox_; | 112 bool display_suppress_checkbox_; |
| 110 bool is_before_unload_dialog_; | 113 bool is_before_unload_dialog_; |
| 111 IPC::Message* reply_msg_; | 114 IPC::Message* reply_msg_; |
| 112 }; | 115 }; |
| 113 | 116 |
| 114 #endif // #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_H_ | 117 #endif // #ifndef CHROME_BROWSER_APP_MODAL_DIALOG_H_ |
| OLD | NEW |