| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 558 |
| 559 void BrowserWindowCocoa::ToggleTabStripMode() { | 559 void BrowserWindowCocoa::ToggleTabStripMode() { |
| 560 [controller_ toggleTabStripDisplayMode]; | 560 [controller_ toggleTabStripDisplayMode]; |
| 561 } | 561 } |
| 562 | 562 |
| 563 void BrowserWindowCocoa::OpenTabpose() { | 563 void BrowserWindowCocoa::OpenTabpose() { |
| 564 [controller_ openTabpose]; | 564 [controller_ openTabpose]; |
| 565 } | 565 } |
| 566 | 566 |
| 567 void BrowserWindowCocoa::ShowInstant(TabContents* preview_contents) { | 567 void BrowserWindowCocoa::ShowInstant(TabContents* preview_contents) { |
| 568 // TODO: implement me | 568 [controller_ showInstant:preview_contents]; |
| 569 NOTIMPLEMENTED(); | |
| 570 } | 569 } |
| 571 | 570 |
| 572 void BrowserWindowCocoa::HideInstant() { | 571 void BrowserWindowCocoa::HideInstant() { |
| 573 // TODO: implement me | 572 [controller_ hideInstant]; |
| 574 NOTIMPLEMENTED(); | |
| 575 } | 573 } |
| 576 | 574 |
| 577 gfx::Rect BrowserWindowCocoa::GetInstantBounds() { | 575 gfx::Rect BrowserWindowCocoa::GetInstantBounds() { |
| 578 // TODO: implement me | 576 // TODO: implement me |
| 579 NOTIMPLEMENTED(); | 577 NOTIMPLEMENTED(); |
| 580 return gfx::Rect(); | 578 return gfx::Rect(); |
| 581 } | 579 } |
| 582 | 580 |
| 583 void BrowserWindowCocoa::Observe(NotificationType type, | 581 void BrowserWindowCocoa::Observe(NotificationType type, |
| 584 const NotificationSource& source, | 582 const NotificationSource& source, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 608 | 606 |
| 609 NSWindow* BrowserWindowCocoa::window() const { | 607 NSWindow* BrowserWindowCocoa::window() const { |
| 610 return [controller_ window]; | 608 return [controller_ window]; |
| 611 } | 609 } |
| 612 | 610 |
| 613 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { | 611 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { |
| 614 if (tab_contents == browser_->tabstrip_model()->GetSelectedTabContents()) { | 612 if (tab_contents == browser_->tabstrip_model()->GetSelectedTabContents()) { |
| 615 [controller_ updateSidebarForContents:tab_contents]; | 613 [controller_ updateSidebarForContents:tab_contents]; |
| 616 } | 614 } |
| 617 } | 615 } |
| OLD | NEW |