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

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

Issue 4932001: Makes the current page dim out when transitioning to instant preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.h ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 } 570 }
571 571
572 void BrowserWindowCocoa::ToggleTabStripMode() { 572 void BrowserWindowCocoa::ToggleTabStripMode() {
573 [controller_ toggleTabStripDisplayMode]; 573 [controller_ toggleTabStripDisplayMode];
574 } 574 }
575 575
576 void BrowserWindowCocoa::OpenTabpose() { 576 void BrowserWindowCocoa::OpenTabpose() {
577 [controller_ openTabpose]; 577 [controller_ openTabpose];
578 } 578 }
579 579
580 void BrowserWindowCocoa::PrepareForInstant() {
581 // TODO: implement fade as done on windows.
582 }
583
580 void BrowserWindowCocoa::ShowInstant(TabContents* preview_contents) { 584 void BrowserWindowCocoa::ShowInstant(TabContents* preview_contents) {
581 [controller_ showInstant:preview_contents]; 585 [controller_ showInstant:preview_contents];
582 } 586 }
583 587
584 void BrowserWindowCocoa::HideInstant() { 588 void BrowserWindowCocoa::HideInstant() {
585 [controller_ hideInstant]; 589 [controller_ hideInstant];
586 } 590 }
587 591
588 gfx::Rect BrowserWindowCocoa::GetInstantBounds() { 592 gfx::Rect BrowserWindowCocoa::GetInstantBounds() {
589 // Flip coordinates based on the primary screen. 593 // Flip coordinates based on the primary screen.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 627
624 NSWindow* BrowserWindowCocoa::window() const { 628 NSWindow* BrowserWindowCocoa::window() const {
625 return [controller_ window]; 629 return [controller_ window];
626 } 630 }
627 631
628 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { 632 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) {
629 if (tab_contents == browser_->tabstrip_model()->GetSelectedTabContents()) { 633 if (tab_contents == browser_->tabstrip_model()->GetSelectedTabContents()) {
630 [controller_ updateSidebarForContents:tab_contents]; 634 [controller_ updateSidebarForContents:tab_contents];
631 } 635 }
632 } 636 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.h ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698