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

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

Issue 10796049: Move WebDialogWebContentsDelegate to ui/web_dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" 10 #include "chrome/browser/ui/cocoa/constrained_window_mac.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents.h"
12 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h"
13 #include "content/public/browser/web_contents.h" 12 #include "content/public/browser/web_contents.h"
14 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
15 #include "ui/web_dialogs/web_dialog_delegate.h" 14 #include "ui/web_dialogs/web_dialog_delegate.h"
16 #include "ui/web_dialogs/web_dialog_ui.h" 15 #include "ui/web_dialogs/web_dialog_ui.h"
16 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
17 17
18 using content::WebContents; 18 using content::WebContents;
19 using ui::ConstrainedWebDialogDelegate;
19 using ui::WebDialogDelegate; 20 using ui::WebDialogDelegate;
20 using ui::ConstrainedWebDialogDelegate; 21 using ui::WebDialogWebContentsDelegate;
21 22
22 class ConstrainedWebDialogDelegateMac : 23 class ConstrainedWebDialogDelegateMac :
23 public ConstrainedWindowMacDelegateCustomSheet, 24 public ConstrainedWindowMacDelegateCustomSheet,
24 public ConstrainedWebDialogDelegate { 25 public ConstrainedWebDialogDelegate {
25 26
26 public: 27 public:
27 ConstrainedWebDialogDelegateMac( 28 ConstrainedWebDialogDelegateMac(
28 Profile* profile, 29 Profile* profile,
29 WebDialogDelegate* delegate, 30 WebDialogDelegate* delegate,
30 WebDialogWebContentsDelegate* tab_delegate); 31 WebDialogWebContentsDelegate* tab_delegate);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 return self; 142 return self;
142 } 143 }
143 144
144 - (void)sheetDidEnd:(NSWindow*)sheet 145 - (void)sheetDidEnd:(NSWindow*)sheet
145 returnCode:(int)returnCode 146 returnCode:(int)returnCode
146 contextInfo:(void *)contextInfo { 147 contextInfo:(void *)contextInfo {
147 [sheet orderOut:self]; 148 [sheet orderOut:self];
148 } 149 }
149 150
150 @end 151 @end
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | chrome/browser/ui/cocoa/web_dialog_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698