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

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

Issue 797413002: MacViews: Compile more Views source files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for sky and rebase Created 6 years 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
« no previous file with comments | « chrome/browser/ui/browser_dialogs.h ('k') | chrome/browser/ui/views/chrome_web_dialog_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import "chrome/browser/ui/cocoa/web_dialog_window_controller.h" 5 #import "chrome/browser/ui/cocoa/web_dialog_window_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #import "chrome/browser/ui/browser_dialogs.h" 10 #import "chrome/browser/ui/browser_dialogs.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // BrowserCommandExecutor protocol. 89 // BrowserCommandExecutor protocol.
90 @interface WebDialogWindowController (InternalAPI) <BrowserCommandExecutor> 90 @interface WebDialogWindowController (InternalAPI) <BrowserCommandExecutor>
91 91
92 // BrowserCommandExecutor methods. 92 // BrowserCommandExecutor methods.
93 - (void)executeCommand:(int)command; 93 - (void)executeCommand:(int)command;
94 94
95 @end 95 @end
96 96
97 namespace chrome { 97 namespace chrome {
98 98
99 gfx::NativeWindow ShowWebDialog(gfx::NativeWindow parent, 99 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent,
100 content::BrowserContext* context, 100 content::BrowserContext* context,
101 WebDialogDelegate* delegate) { 101 WebDialogDelegate* delegate) {
102 return [WebDialogWindowController showWebDialog:delegate 102 return [WebDialogWindowController showWebDialog:delegate
103 context:context]; 103 context:context];
104 } 104 }
105 105
106 } // namespace chrome 106 } // namespace chrome
107 107
108 WebDialogWindowDelegateBridge::WebDialogWindowDelegateBridge( 108 WebDialogWindowDelegateBridge::WebDialogWindowDelegateBridge(
109 WebDialogWindowController* controller, 109 WebDialogWindowController* controller,
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender 359 // TODO(akalin): Figure out why implementing (void)cancel:(id)sender
360 // to do the above doesn't work. 360 // to do the above doesn't work.
361 } 361 }
362 362
363 - (void)windowWillClose:(NSNotification*)notification { 363 - (void)windowWillClose:(NSNotification*)notification {
364 delegate_->WindowControllerClosed(); 364 delegate_->WindowControllerClosed();
365 [self autorelease]; 365 [self autorelease];
366 } 366 }
367 367
368 @end 368 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_dialogs.h ('k') | chrome/browser/ui/views/chrome_web_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698