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

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

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
12 #include "chrome/browser/ui/webui/web_dialog_delegate.h"
13 #include "chrome/browser/ui/webui/web_dialog_ui.h"
14 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" 12 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h"
15 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
16 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 #include "ui/web_dialogs/web_dialog_delegate.h"
16 #include "ui/web_dialogs/web_dialog_ui.h"
17 17
18 using content::WebContents; 18 using content::WebContents;
19 using ui::WebDialogDelegate;
20 using ui::ConstrainedWebDialogDelegate;
21 using ui::ConstrainedWebDialogUI;
19 22
20 class ConstrainedWebDialogDelegateMac : 23 class ConstrainedWebDialogDelegateMac :
21 public ConstrainedWindowMacDelegateCustomSheet, 24 public ConstrainedWindowMacDelegateCustomSheet,
22 public ConstrainedWebDialogDelegate { 25 public ConstrainedWebDialogDelegate {
23 26
24 public: 27 public:
25 ConstrainedWebDialogDelegateMac( 28 ConstrainedWebDialogDelegateMac(
26 Profile* profile, 29 Profile* profile,
27 WebDialogDelegate* delegate, 30 WebDialogDelegate* delegate,
28 WebDialogWebContentsDelegate* tab_delegate); 31 WebDialogWebContentsDelegate* tab_delegate);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 return self; 144 return self;
142 } 145 }
143 146
144 - (void)sheetDidEnd:(NSWindow*)sheet 147 - (void)sheetDidEnd:(NSWindow*)sheet
145 returnCode:(int)returnCode 148 returnCode:(int)returnCode
146 contextInfo:(void *)contextInfo { 149 contextInfo:(void *)contextInfo {
147 [sheet orderOut:self]; 150 [sheet orderOut:self];
148 } 151 }
149 152
150 @end 153 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698