| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/gfx/rect.h" | 5 #include "base/gfx/rect.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/sys_string_conversions.h" | 7 #include "base/sys_string_conversions.h" |
| 8 #include "chrome/browser/bookmarks/bookmark_utils.h" | 8 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 9 #include "chrome/browser/cocoa/browser_window_cocoa.h" | 9 #include "chrome/browser/cocoa/browser_window_cocoa.h" |
| 10 #import "chrome/browser/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/cocoa/browser_window_controller.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 } | 238 } |
| 239 | 239 |
| 240 void BrowserWindowCocoa::ShowSelectProfileDialog() { | 240 void BrowserWindowCocoa::ShowSelectProfileDialog() { |
| 241 NOTIMPLEMENTED(); | 241 NOTIMPLEMENTED(); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void BrowserWindowCocoa::ShowNewProfileDialog() { | 244 void BrowserWindowCocoa::ShowNewProfileDialog() { |
| 245 NOTIMPLEMENTED(); | 245 NOTIMPLEMENTED(); |
| 246 } | 246 } |
| 247 | 247 |
| 248 // We allow closing the window here since the real quit decision on Mac is made |
| 249 // in [AppController quit:]. |
| 248 void BrowserWindowCocoa::ConfirmBrowserCloseWithPendingDownloads() { | 250 void BrowserWindowCocoa::ConfirmBrowserCloseWithPendingDownloads() { |
| 249 NOTIMPLEMENTED(); | 251 browser_->InProgressDownloadResponse(true); |
| 250 browser_->InProgressDownloadResponse(false); | |
| 251 } | 252 } |
| 252 | 253 |
| 253 void BrowserWindowCocoa::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, | 254 void BrowserWindowCocoa::ShowHTMLDialog(HtmlDialogUIDelegate* delegate, |
| 254 gfx::NativeWindow parent_window) { | 255 gfx::NativeWindow parent_window) { |
| 255 NOTIMPLEMENTED(); | 256 NOTIMPLEMENTED(); |
| 256 } | 257 } |
| 257 | 258 |
| 258 void BrowserWindowCocoa::UserChangedTheme() { | 259 void BrowserWindowCocoa::UserChangedTheme() { |
| 259 [controller_ userChangedTheme]; | 260 [controller_ userChangedTheme]; |
| 260 } | 261 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 289 break; | 290 break; |
| 290 } | 291 } |
| 291 } | 292 } |
| 292 | 293 |
| 293 void BrowserWindowCocoa::DestroyBrowser() { | 294 void BrowserWindowCocoa::DestroyBrowser() { |
| 294 [controller_ destroyBrowser]; | 295 [controller_ destroyBrowser]; |
| 295 | 296 |
| 296 // at this point the controller is dead (autoreleased), so | 297 // at this point the controller is dead (autoreleased), so |
| 297 // make sure we don't try to reference it any more. | 298 // make sure we don't try to reference it any more. |
| 298 } | 299 } |
| OLD | NEW |