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/cocoa/constrained_window/constrained_window_mac.h" | 5 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
6 | 6 |
| 7 #include "base/logging.h" |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/logging.h" | |
9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h" | 9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h" |
10 #import "chrome/browser/ui/cocoa/single_web_contents_dialog_manager_cocoa.h" | 10 #import "chrome/browser/ui/cocoa/single_web_contents_dialog_manager_cocoa.h" |
11 #include "components/guest_view/browser/guest_view_base.h" | 11 #include "components/guest_view/browser/guest_view_base.h" |
12 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 12 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
15 using web_modal::WebContentsModalDialogManager; | 15 using web_modal::WebContentsModalDialogManager; |
16 | 16 |
17 ConstrainedWindowMac::ConstrainedWindowMac( | 17 ConstrainedWindowMac::ConstrainedWindowMac( |
18 ConstrainedWindowMacDelegate* delegate, | 18 ConstrainedWindowMacDelegate* delegate, |
(...skipping 20 matching lines...) Expand all Loading... |
39 | 39 |
40 void ConstrainedWindowMac::CloseWebContentsModalDialog() { | 40 void ConstrainedWindowMac::CloseWebContentsModalDialog() { |
41 if (manager_) | 41 if (manager_) |
42 manager_->Close(); | 42 manager_->Close(); |
43 } | 43 } |
44 | 44 |
45 void ConstrainedWindowMac::OnDialogClosing() { | 45 void ConstrainedWindowMac::OnDialogClosing() { |
46 if (delegate_) | 46 if (delegate_) |
47 delegate_->OnConstrainedWindowClosed(this); | 47 delegate_->OnConstrainedWindowClosed(this); |
48 } | 48 } |
OLD | NEW |