| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 446 |
| 447 void BrowserWindowCocoa::AddFindBar( | 447 void BrowserWindowCocoa::AddFindBar( |
| 448 FindBarCocoaController* find_bar_cocoa_controller) { | 448 FindBarCocoaController* find_bar_cocoa_controller) { |
| 449 [controller_ addFindBar:find_bar_cocoa_controller]; | 449 [controller_ addFindBar:find_bar_cocoa_controller]; |
| 450 } | 450 } |
| 451 | 451 |
| 452 void BrowserWindowCocoa::ShowUpdateChromeDialog() { | 452 void BrowserWindowCocoa::ShowUpdateChromeDialog() { |
| 453 restart_browser::RequestRestart(window()); | 453 restart_browser::RequestRestart(window()); |
| 454 } | 454 } |
| 455 | 455 |
| 456 void BrowserWindowCocoa::ShowTaskManager(chrome::HostDesktopType desktop_type) { | 456 void BrowserWindowCocoa::ShowTaskManager() { |
| 457 TaskManagerMac::Show(false); | 457 TaskManagerMac::Show(false); |
| 458 } | 458 } |
| 459 | 459 |
| 460 void BrowserWindowCocoa::ShowBackgroundPages( | 460 void BrowserWindowCocoa::ShowBackgroundPages() { |
| 461 chrome::HostDesktopType desktop_type) { | |
| 462 TaskManagerMac::Show(true); | 461 TaskManagerMac::Show(true); |
| 463 } | 462 } |
| 464 | 463 |
| 465 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, | 464 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, |
| 466 bool already_bookmarked) { | 465 bool already_bookmarked) { |
| 467 [controller_ showBookmarkBubbleForURL:url | 466 [controller_ showBookmarkBubbleForURL:url |
| 468 alreadyBookmarked:(already_bookmarked ? YES : NO)]; | 467 alreadyBookmarked:(already_bookmarked ? YES : NO)]; |
| 469 } | 468 } |
| 470 | 469 |
| 471 void BrowserWindowCocoa::ShowChromeToMobileBubble() { | 470 void BrowserWindowCocoa::ShowChromeToMobileBubble() { |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 PasswordGenerationBubbleController* controller = | 688 PasswordGenerationBubbleController* controller = |
| 690 [[PasswordGenerationBubbleController alloc] | 689 [[PasswordGenerationBubbleController alloc] |
| 691 initWithWindow:browser_->window()->GetNativeWindow() | 690 initWithWindow:browser_->window()->GetNativeWindow() |
| 692 anchoredAt:point | 691 anchoredAt:point |
| 693 renderViewHost:web_contents->GetRenderViewHost() | 692 renderViewHost:web_contents->GetRenderViewHost() |
| 694 passwordManager:PasswordManager::FromWebContents(web_contents) | 693 passwordManager:PasswordManager::FromWebContents(web_contents) |
| 695 usingGenerator:password_generator | 694 usingGenerator:password_generator |
| 696 forForm:form]; | 695 forForm:form]; |
| 697 [controller showWindow:nil]; | 696 [controller showWindow:nil]; |
| 698 } | 697 } |
| OLD | NEW |