| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |