OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/cocoa/browser_window_cocoa.h" | 5 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 views::Window* BrowserWindowCocoa::ShowAboutChromeDialog() { | 303 views::Window* BrowserWindowCocoa::ShowAboutChromeDialog() { |
304 NOTIMPLEMENTED(); | 304 NOTIMPLEMENTED(); |
305 return NULL; | 305 return NULL; |
306 } | 306 } |
307 | 307 |
308 void BrowserWindowCocoa::ShowUpdateChromeDialog() { | 308 void BrowserWindowCocoa::ShowUpdateChromeDialog() { |
309 restart_browser::RequestRestart(nil); | 309 restart_browser::RequestRestart(nil); |
310 } | 310 } |
311 | 311 |
312 void BrowserWindowCocoa::ShowTaskManager() { | 312 void BrowserWindowCocoa::ShowTaskManager() { |
313 TaskManagerMac::Show(); | 313 TaskManagerMac::Show(false); |
| 314 } |
| 315 |
| 316 void BrowserWindowCocoa::ShowBackgroundPages() { |
| 317 TaskManagerMac::Show(true); |
314 } | 318 } |
315 | 319 |
316 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, | 320 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, |
317 bool already_bookmarked) { | 321 bool already_bookmarked) { |
318 [controller_ showBookmarkBubbleForURL:url | 322 [controller_ showBookmarkBubbleForURL:url |
319 alreadyBookmarked:(already_bookmarked ? YES : NO)]; | 323 alreadyBookmarked:(already_bookmarked ? YES : NO)]; |
320 } | 324 } |
321 | 325 |
322 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { | 326 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { |
323 return [controller_ isDownloadShelfVisible] != NO; | 327 return [controller_ isDownloadShelfVisible] != NO; |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 | 639 |
636 NSWindow* BrowserWindowCocoa::window() const { | 640 NSWindow* BrowserWindowCocoa::window() const { |
637 return [controller_ window]; | 641 return [controller_ window]; |
638 } | 642 } |
639 | 643 |
640 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { | 644 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { |
641 if (tab_contents == browser_->GetSelectedTabContents()) { | 645 if (tab_contents == browser_->GetSelectedTabContents()) { |
642 [controller_ updateSidebarForContents:tab_contents]; | 646 [controller_ updateSidebarForContents:tab_contents]; |
643 } | 647 } |
644 } | 648 } |
OLD | NEW |