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 #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 Loading... |
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 Loading... |
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 |
OLD | NEW |