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

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

Issue 7831051: content: Move collected cookies constrained window to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile failures for everyone\! Created 9 years, 3 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) 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/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 DownloadShelf* BrowserWindowCocoa::GetDownloadShelf() { 387 DownloadShelf* BrowserWindowCocoa::GetDownloadShelf() {
388 DownloadShelfController* shelfController = [controller_ downloadShelf]; 388 DownloadShelfController* shelfController = [controller_ downloadShelf];
389 return [shelfController bridge]; 389 return [shelfController bridge];
390 } 390 }
391 391
392 void BrowserWindowCocoa::ShowRepostFormWarningDialog( 392 void BrowserWindowCocoa::ShowRepostFormWarningDialog(
393 TabContents* tab_contents) { 393 TabContents* tab_contents) {
394 RepostFormWarningMac::Create(GetNativeHandle(), tab_contents); 394 RepostFormWarningMac::Create(GetNativeHandle(), tab_contents);
395 } 395 }
396 396
397 void BrowserWindowCocoa::ShowCollectedCookiesDialog(TabContents* tab_contents) { 397 void BrowserWindowCocoa::ShowCollectedCookiesDialog(
398 TabContentsWrapper* wrapper) {
398 // Deletes itself on close. 399 // Deletes itself on close.
399 new CollectedCookiesMac(GetNativeHandle(), tab_contents); 400 new CollectedCookiesMac(GetNativeHandle(), wrapper);
400 } 401 }
401 402
402 void BrowserWindowCocoa::ShowThemeInstallBubble() { 403 void BrowserWindowCocoa::ShowThemeInstallBubble() {
403 ThemeInstallBubbleView::Show(window()); 404 ThemeInstallBubbleView::Show(window());
404 } 405 }
405 406
406 // We allow closing the window here since the real quit decision on Mac is made 407 // We allow closing the window here since the real quit decision on Mac is made
407 // in [AppController quit:]. 408 // in [AppController quit:].
408 void BrowserWindowCocoa::ConfirmBrowserCloseWithPendingDownloads() { 409 void BrowserWindowCocoa::ConfirmBrowserCloseWithPendingDownloads() {
409 // Call InProgressDownloadResponse asynchronously to avoid a crash when the 410 // Call InProgressDownloadResponse asynchronously to avoid a crash when the
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 579
579 NSWindow* BrowserWindowCocoa::window() const { 580 NSWindow* BrowserWindowCocoa::window() const {
580 return [controller_ window]; 581 return [controller_ window];
581 } 582 }
582 583
583 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { 584 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) {
584 if (tab_contents == browser_->GetSelectedTabContents()) { 585 if (tab_contents == browser_->GetSelectedTabContents()) {
585 [controller_ updateSidebarForContents:tab_contents]; 586 [controller_ updateSidebarForContents:tab_contents];
586 } 587 }
587 } 588 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/content_settings/collected_cookies_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698