Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 12712018: Fixing problem with incomplete browser windows showing up after task manager was used (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed again. Done. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 void BrowserWindowCocoa::AddFindBar( 464 void BrowserWindowCocoa::AddFindBar(
465 FindBarCocoaController* find_bar_cocoa_controller) { 465 FindBarCocoaController* find_bar_cocoa_controller) {
466 [controller_ addFindBar:find_bar_cocoa_controller]; 466 [controller_ addFindBar:find_bar_cocoa_controller];
467 } 467 }
468 468
469 void BrowserWindowCocoa::ShowUpdateChromeDialog() { 469 void BrowserWindowCocoa::ShowUpdateChromeDialog() {
470 restart_browser::RequestRestart(window()); 470 restart_browser::RequestRestart(window());
471 } 471 }
472 472
473 void BrowserWindowCocoa::ShowTaskManager() {
474 TaskManagerMac::Show(false);
475 }
476
477 void BrowserWindowCocoa::ShowBackgroundPages() {
478 TaskManagerMac::Show(true);
479 }
480
481 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, 473 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url,
482 bool already_bookmarked) { 474 bool already_bookmarked) {
483 [controller_ showBookmarkBubbleForURL:url 475 [controller_ showBookmarkBubbleForURL:url
484 alreadyBookmarked:(already_bookmarked ? YES : NO)]; 476 alreadyBookmarked:(already_bookmarked ? YES : NO)];
485 } 477 }
486 478
487 void BrowserWindowCocoa::ShowChromeToMobileBubble() { 479 void BrowserWindowCocoa::ShowChromeToMobileBubble() {
488 [controller_ showChromeToMobileBubble]; 480 [controller_ showChromeToMobileBubble];
489 } 481 }
490 482
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 PasswordGenerationBubbleController* controller = 704 PasswordGenerationBubbleController* controller =
713 [[PasswordGenerationBubbleController alloc] 705 [[PasswordGenerationBubbleController alloc]
714 initWithWindow:browser_->window()->GetNativeWindow() 706 initWithWindow:browser_->window()->GetNativeWindow()
715 anchoredAt:point 707 anchoredAt:point
716 renderViewHost:web_contents->GetRenderViewHost() 708 renderViewHost:web_contents->GetRenderViewHost()
717 passwordManager:PasswordManager::FromWebContents(web_contents) 709 passwordManager:PasswordManager::FromWebContents(web_contents)
718 usingGenerator:password_generator 710 usingGenerator:password_generator
719 forForm:form]; 711 forForm:form];
720 [controller showWindow:nil]; 712 [controller showWindow:nil];
721 } 713 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/task_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698