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/keyboard_codes.h" | 8 #include "base/keyboard_codes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 257 } |
258 | 258 |
259 void BrowserWindowCocoa::ShowAboutChromeDialog() { | 259 void BrowserWindowCocoa::ShowAboutChromeDialog() { |
260 NOTIMPLEMENTED(); | 260 NOTIMPLEMENTED(); |
261 } | 261 } |
262 | 262 |
263 void BrowserWindowCocoa::ShowTaskManager() { | 263 void BrowserWindowCocoa::ShowTaskManager() { |
264 TaskManagerMac::Show(); | 264 TaskManagerMac::Show(); |
265 } | 265 } |
266 | 266 |
267 void BrowserWindowCocoa::ShowBookmarkManager() { | |
268 // TODO(viettrungluu): Remove function when no callers remain. crbug.com/38908 | |
269 NOTIMPLEMENTED(); | |
270 } | |
271 | |
272 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, | 267 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, |
273 bool already_bookmarked) { | 268 bool already_bookmarked) { |
274 [controller_ showBookmarkBubbleForURL:url | 269 [controller_ showBookmarkBubbleForURL:url |
275 alreadyBookmarked:(already_bookmarked ? YES : NO)]; | 270 alreadyBookmarked:(already_bookmarked ? YES : NO)]; |
276 } | 271 } |
277 | 272 |
278 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { | 273 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { |
279 return [controller_ isDownloadShelfVisible] != NO; | 274 return [controller_ isDownloadShelfVisible] != NO; |
280 } | 275 } |
281 | 276 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 void BrowserWindowCocoa::DestroyBrowser() { | 542 void BrowserWindowCocoa::DestroyBrowser() { |
548 [controller_ destroyBrowser]; | 543 [controller_ destroyBrowser]; |
549 | 544 |
550 // at this point the controller is dead (autoreleased), so | 545 // at this point the controller is dead (autoreleased), so |
551 // make sure we don't try to reference it any more. | 546 // make sure we don't try to reference it any more. |
552 } | 547 } |
553 | 548 |
554 NSWindow* BrowserWindowCocoa::window() const { | 549 NSWindow* BrowserWindowCocoa::window() const { |
555 return [controller_ window]; | 550 return [controller_ window]; |
556 } | 551 } |
OLD | NEW |