| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/browser_window_cocoa.h" | 5 #include "chrome/browser/cocoa/browser_window_cocoa.h" |
| 6 | 6 |
| 7 #include "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
| 8 #include "base/gfx/rect.h" | 8 #include "base/gfx/rect.h" |
| 9 #include "base/keyboard_codes.h" | 9 #include "base/keyboard_codes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 void BrowserWindowCocoa::ShowSelectProfileDialog() { | 326 void BrowserWindowCocoa::ShowSelectProfileDialog() { |
| 327 NOTIMPLEMENTED(); | 327 NOTIMPLEMENTED(); |
| 328 } | 328 } |
| 329 | 329 |
| 330 void BrowserWindowCocoa::ShowNewProfileDialog() { | 330 void BrowserWindowCocoa::ShowNewProfileDialog() { |
| 331 NOTIMPLEMENTED(); | 331 NOTIMPLEMENTED(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 void BrowserWindowCocoa::ShowRepostFormWarningDialog( | 334 void BrowserWindowCocoa::ShowRepostFormWarningDialog( |
| 335 TabContents* tab_contents) { | 335 TabContents* tab_contents) { |
| 336 new RepostFormWarningMac(GetNativeHandle(), &tab_contents->controller()); | 336 new RepostFormWarningMac(GetNativeHandle(), tab_contents); |
| 337 } | 337 } |
| 338 | 338 |
| 339 void BrowserWindowCocoa::ShowContentSettingsWindow( | 339 void BrowserWindowCocoa::ShowContentSettingsWindow( |
| 340 ContentSettingsType settings_type, | 340 ContentSettingsType settings_type, |
| 341 Profile* profile) { | 341 Profile* profile) { |
| 342 [ContentSettingsDialogController showContentSettingsForType:settings_type | 342 [ContentSettingsDialogController showContentSettingsForType:settings_type |
| 343 profile:profile]; | 343 profile:profile]; |
| 344 } | 344 } |
| 345 | 345 |
| 346 void BrowserWindowCocoa::ShowProfileErrorDialog(int message_id) { | 346 void BrowserWindowCocoa::ShowProfileErrorDialog(int message_id) { |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 void BrowserWindowCocoa::DestroyBrowser() { | 558 void BrowserWindowCocoa::DestroyBrowser() { |
| 559 [controller_ destroyBrowser]; | 559 [controller_ destroyBrowser]; |
| 560 | 560 |
| 561 // at this point the controller is dead (autoreleased), so | 561 // at this point the controller is dead (autoreleased), so |
| 562 // make sure we don't try to reference it any more. | 562 // make sure we don't try to reference it any more. |
| 563 } | 563 } |
| 564 | 564 |
| 565 NSWindow* BrowserWindowCocoa::window() const { | 565 NSWindow* BrowserWindowCocoa::window() const { |
| 566 return [controller_ window]; | 566 return [controller_ window]; |
| 567 } | 567 } |
| OLD | NEW |