| OLD | NEW |
| 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 } | 549 } |
| 550 | 550 |
| 551 void BrowserWindowCocoa::ToggleTabStripMode() { | 551 void BrowserWindowCocoa::ToggleTabStripMode() { |
| 552 [controller_ toggleTabStripDisplayMode]; | 552 [controller_ toggleTabStripDisplayMode]; |
| 553 } | 553 } |
| 554 | 554 |
| 555 void BrowserWindowCocoa::OpenTabpose() { | 555 void BrowserWindowCocoa::OpenTabpose() { |
| 556 [controller_ openTabpose]; | 556 [controller_ openTabpose]; |
| 557 } | 557 } |
| 558 | 558 |
| 559 void BrowserWindowCocoa::SetPresentationMode(bool presentation_mode) { |
| 560 [controller_ setPresentationMode:presentation_mode]; |
| 561 } |
| 562 |
| 563 bool BrowserWindowCocoa::InPresentationMode() { |
| 564 return [controller_ inPresentationMode]; |
| 565 } |
| 566 |
| 559 void BrowserWindowCocoa::PrepareForInstant() { | 567 void BrowserWindowCocoa::PrepareForInstant() { |
| 560 // TODO: implement fade as done on windows. | 568 // TODO: implement fade as done on windows. |
| 561 } | 569 } |
| 562 | 570 |
| 563 void BrowserWindowCocoa::ShowInstant(TabContentsWrapper* preview) { | 571 void BrowserWindowCocoa::ShowInstant(TabContentsWrapper* preview) { |
| 564 [controller_ showInstant:preview->tab_contents()]; | 572 [controller_ showInstant:preview->tab_contents()]; |
| 565 } | 573 } |
| 566 | 574 |
| 567 void BrowserWindowCocoa::HideInstant(bool instant_is_active) { | 575 void BrowserWindowCocoa::HideInstant(bool instant_is_active) { |
| 568 [controller_ hideInstant]; | 576 [controller_ hideInstant]; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 | 621 |
| 614 NSWindow* BrowserWindowCocoa::window() const { | 622 NSWindow* BrowserWindowCocoa::window() const { |
| 615 return [controller_ window]; | 623 return [controller_ window]; |
| 616 } | 624 } |
| 617 | 625 |
| 618 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { | 626 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { |
| 619 if (tab_contents == browser_->GetSelectedTabContents()) { | 627 if (tab_contents == browser_->GetSelectedTabContents()) { |
| 620 [controller_ updateSidebarForContents:tab_contents]; | 628 [controller_ updateSidebarForContents:tab_contents]; |
| 621 } | 629 } |
| 622 } | 630 } |
| OLD | NEW |