OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tab_modal_confirm_dialog_delegate.h" | 5 #include "chrome/browser/ui/tab_modal_confirm_dialog_delegate.h" |
6 | 6 |
7 #include "chrome/browser/ui/constrained_window.h" | 7 #include "chrome/browser/ui/constrained_window.h" |
8 #include "chrome/common/chrome_notification_types.h" | 8 #include "chrome/common/chrome_notification_types.h" |
9 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/navigation_controller.h" |
10 #include "content/public/browser/notification_source.h" | 10 #include "content/public/browser/notification_source.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 void TabModalConfirmDialogDelegate::OnAccepted() { | 92 void TabModalConfirmDialogDelegate::OnAccepted() { |
93 } | 93 } |
94 | 94 |
95 void TabModalConfirmDialogDelegate::OnCanceled() { | 95 void TabModalConfirmDialogDelegate::OnCanceled() { |
96 } | 96 } |
97 | 97 |
98 void TabModalConfirmDialogDelegate::CloseDialog() { | 98 void TabModalConfirmDialogDelegate::CloseDialog() { |
99 if (window_) | 99 if (window_) |
100 window_->CloseConstrainedWindow(); | 100 window_->CloseWebContentsModalDialog(); |
101 } | 101 } |
OLD | NEW |