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/webui/constrained_web_dialog_delegate_base.h" | 5 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/memory/scoped_nsobject.h" | 9 #include "base/memory/scoped_nsobject.h" |
10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" | 10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 virtual WebDialogDelegate* GetWebDialogDelegate() OVERRIDE { | 40 virtual WebDialogDelegate* GetWebDialogDelegate() OVERRIDE { |
41 return impl_->GetWebDialogDelegate(); | 41 return impl_->GetWebDialogDelegate(); |
42 } | 42 } |
43 virtual void OnDialogCloseFromWebUI() OVERRIDE { | 43 virtual void OnDialogCloseFromWebUI() OVERRIDE { |
44 return impl_->OnDialogCloseFromWebUI(); | 44 return impl_->OnDialogCloseFromWebUI(); |
45 } | 45 } |
46 virtual void ReleaseWebContentsOnDialogClose() OVERRIDE { | 46 virtual void ReleaseWebContentsOnDialogClose() OVERRIDE { |
47 return impl_->ReleaseWebContentsOnDialogClose(); | 47 return impl_->ReleaseWebContentsOnDialogClose(); |
48 } | 48 } |
49 virtual ConstrainedWindow* GetWindow() OVERRIDE { | 49 virtual WebContentsModalDialog* GetWindow() OVERRIDE { |
50 return impl_->GetWindow(); | 50 return impl_->GetWindow(); |
51 } | 51 } |
52 virtual WebContents* GetWebContents() OVERRIDE { | 52 virtual WebContents* GetWebContents() OVERRIDE { |
53 return impl_->GetWebContents(); | 53 return impl_->GetWebContents(); |
54 } | 54 } |
55 | 55 |
56 // ConstrainedWindowMacDelegate interface | 56 // ConstrainedWindowMacDelegate interface |
57 virtual void OnConstrainedWindowClosed( | 57 virtual void OnConstrainedWindowClosed( |
58 ConstrainedWindowMac* window) OVERRIDE { | 58 ConstrainedWindowMac* window) OVERRIDE { |
59 if (!impl_->closed_via_webui()) | 59 if (!impl_->closed_via_webui()) |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 content::BrowserContext* browser_context, | 99 content::BrowserContext* browser_context, |
100 WebDialogDelegate* delegate, | 100 WebDialogDelegate* delegate, |
101 WebDialogWebContentsDelegate* tab_delegate, | 101 WebDialogWebContentsDelegate* tab_delegate, |
102 content::WebContents* web_contents) { | 102 content::WebContents* web_contents) { |
103 // Deleted when the dialog closes. | 103 // Deleted when the dialog closes. |
104 ConstrainedWebDialogDelegateMac* constrained_delegate = | 104 ConstrainedWebDialogDelegateMac* constrained_delegate = |
105 new ConstrainedWebDialogDelegateMac( | 105 new ConstrainedWebDialogDelegateMac( |
106 browser_context, delegate, tab_delegate, web_contents); | 106 browser_context, delegate, tab_delegate, web_contents); |
107 return constrained_delegate; | 107 return constrained_delegate; |
108 } | 108 } |
OLD | NEW |