Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm

Issue 11633052: Rename platform-independent ConstrainedWindow types to WebContentsModalDialog types (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use gtk_widget_get_toplevel for GetNativeWindow Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698