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/web_contents_modal_dialog.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" |
11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
13 #include "ui/base/l10n/l10n_util.h" | 13 #include "ui/base/l10n/l10n_util.h" |
14 | 14 |
15 using content::NavigationController; | 15 using content::NavigationController; |
16 using content::WebContents; | 16 using content::WebContents; |
17 | 17 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_->CloseWebContentsModalDialog(); | 100 window_->CloseWebContentsModalDialog(); |
101 } | 101 } |
OLD | NEW |