| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/ui/app_modal_dialogs/app_modal_dialog.h" | 5 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" |
| 6 | 6 |
| 7 #include "chrome/browser/tab_contents/tab_contents.h" | 7 #include "chrome/browser/tab_contents/tab_contents.h" |
| 8 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" | 8 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" |
| 9 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" | 9 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" |
| 10 #include "chrome/common/notification_service.h" | 10 #include "chrome/common/notification_service.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 DCHECK(native_dialog_); | 42 DCHECK(native_dialog_); |
| 43 native_dialog_->ActivateAppModalDialog(); | 43 native_dialog_->ActivateAppModalDialog(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void AppModalDialog::CloseModalDialog() { | 46 void AppModalDialog::CloseModalDialog() { |
| 47 DCHECK(native_dialog_); | 47 DCHECK(native_dialog_); |
| 48 native_dialog_->CloseAppModalDialog(); | 48 native_dialog_->CloseAppModalDialog(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void AppModalDialog::CompleteDialog() { | 51 void AppModalDialog::CompleteDialog() { |
| 52 Singleton<AppModalDialogQueue>()->ShowNextDialog(); | 52 AppModalDialogQueue::GetInstance()->ShowNextDialog(); |
| 53 } | 53 } |
| OLD | NEW |