| 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 #include "chrome/browser/app_modal_dialog.h" | 5 #include "chrome/browser/app_modal_dialog.h" |
| 6 | 6 |
| 7 #include "chrome/browser/app_modal_dialog_queue.h" | 7 #include "chrome/browser/app_modal_dialog_queue.h" |
| 8 #include "chrome/browser/tab_contents/tab_contents.h" | 8 #include "chrome/browser/tab_contents/tab_contents.h" |
| 9 #include "chrome/common/notification_service.h" | 9 #include "chrome/common/notification_service.h" |
| 10 #include "chrome/common/notification_type.h" | 10 #include "chrome/common/notification_type.h" |
| 11 #include "chrome/common/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
| 12 | 12 |
| 13 AppModalDialog::AppModalDialog(TabContents* tab_contents, | 13 AppModalDialog::AppModalDialog(TabContents* tab_contents, |
| 14 const std::wstring& title, | 14 const std::wstring& title, |
| 15 int dialog_flags, | 15 int dialog_flags, |
| 16 const std::wstring& message_text, | 16 const std::wstring& message_text, |
| 17 const std::wstring& default_prompt_text, | 17 const std::wstring& default_prompt_text, |
| 18 bool display_suppress_checkbox, | 18 bool display_suppress_checkbox, |
| 19 bool is_before_unload_dialog, | 19 bool is_before_unload_dialog, |
| 20 IPC::Message* reply_msg) | 20 IPC::Message* reply_msg) |
| 21 : dialog_(NULL), | 21 : dialog_(NULL), |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 SendCloseNotification(); | 116 SendCloseNotification(); |
| 117 } | 117 } |
| 118 | 118 |
| 119 void AppModalDialog::OnClose() { | 119 void AppModalDialog::OnClose() { |
| 120 if (tab_contents_) { | 120 if (tab_contents_) { |
| 121 tab_contents_->OnJavaScriptMessageBoxWindowDestroyed(); | 121 tab_contents_->OnJavaScriptMessageBoxWindowDestroyed(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 SendCloseNotification(); | 124 SendCloseNotification(); |
| 125 } | 125 } |
| OLD | NEW |