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/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 void BrowserWindowCocoa::AddFindBar( | 252 void BrowserWindowCocoa::AddFindBar( |
253 FindBarCocoaController* find_bar_cocoa_controller) { | 253 FindBarCocoaController* find_bar_cocoa_controller) { |
254 return [controller_ addFindBar:find_bar_cocoa_controller]; | 254 return [controller_ addFindBar:find_bar_cocoa_controller]; |
255 } | 255 } |
256 | 256 |
257 views::Window* BrowserWindowCocoa::ShowAboutChromeDialog() { | 257 views::Window* BrowserWindowCocoa::ShowAboutChromeDialog() { |
258 NOTIMPLEMENTED(); | 258 NOTIMPLEMENTED(); |
259 return NULL; | 259 return NULL; |
260 } | 260 } |
261 | 261 |
| 262 void BrowserWindowCocoa::ShowUpdateChromeDialog() { |
| 263 NOTIMPLEMENTED(); |
| 264 } |
| 265 |
262 void BrowserWindowCocoa::ShowTaskManager() { | 266 void BrowserWindowCocoa::ShowTaskManager() { |
263 TaskManagerMac::Show(); | 267 TaskManagerMac::Show(); |
264 } | 268 } |
265 | 269 |
266 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, | 270 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, |
267 bool already_bookmarked) { | 271 bool already_bookmarked) { |
268 [controller_ showBookmarkBubbleForURL:url | 272 [controller_ showBookmarkBubbleForURL:url |
269 alreadyBookmarked:(already_bookmarked ? YES : NO)]; | 273 alreadyBookmarked:(already_bookmarked ? YES : NO)]; |
270 } | 274 } |
271 | 275 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 void BrowserWindowCocoa::DestroyBrowser() { | 548 void BrowserWindowCocoa::DestroyBrowser() { |
545 [controller_ destroyBrowser]; | 549 [controller_ destroyBrowser]; |
546 | 550 |
547 // at this point the controller is dead (autoreleased), so | 551 // at this point the controller is dead (autoreleased), so |
548 // make sure we don't try to reference it any more. | 552 // make sure we don't try to reference it any more. |
549 } | 553 } |
550 | 554 |
551 NSWindow* BrowserWindowCocoa::window() const { | 555 NSWindow* BrowserWindowCocoa::window() const { |
552 return [controller_ window]; | 556 return [controller_ window]; |
553 } | 557 } |
OLD | NEW |