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 531 matching lines...) Loading... |
542 if ([event_window handleExtraWindowKeyboardShortcut:event]) | 542 if ([event_window handleExtraWindowKeyboardShortcut:event]) |
543 return true; | 543 return true; |
544 | 544 |
545 if ([event_window handleDelayedWindowKeyboardShortcut:event]) | 545 if ([event_window handleDelayedWindowKeyboardShortcut:event]) |
546 return true; | 546 return true; |
547 } | 547 } |
548 | 548 |
549 return [event_window redispatchKeyEvent:event]; | 549 return [event_window redispatchKeyEvent:event]; |
550 } | 550 } |
551 | 551 |
552 void BrowserWindowCocoa::ShowCreateShortcutsDialog(TabContents* tab_contents) { | 552 void BrowserWindowCocoa::ShowCreateWebAppShortcutsDialog( |
| 553 TabContents* tab_contents) { |
553 NOTIMPLEMENTED(); | 554 NOTIMPLEMENTED(); |
554 } | 555 } |
555 | 556 |
| 557 void BrowserWindowCocoa::ShowCreateChromeAppShortcutsDialog( |
| 558 Profile* profile, const Extension* app) { |
| 559 NOTIMPLEMENTED(); |
| 560 } |
| 561 |
556 void BrowserWindowCocoa::Cut() { | 562 void BrowserWindowCocoa::Cut() { |
557 [NSApp sendAction:@selector(cut:) to:nil from:nil]; | 563 [NSApp sendAction:@selector(cut:) to:nil from:nil]; |
558 } | 564 } |
559 | 565 |
560 void BrowserWindowCocoa::Copy() { | 566 void BrowserWindowCocoa::Copy() { |
561 [NSApp sendAction:@selector(copy:) to:nil from:nil]; | 567 [NSApp sendAction:@selector(copy:) to:nil from:nil]; |
562 } | 568 } |
563 | 569 |
564 void BrowserWindowCocoa::Paste() { | 570 void BrowserWindowCocoa::Paste() { |
565 [NSApp sendAction:@selector(paste:) to:nil from:nil]; | 571 [NSApp sendAction:@selector(paste:) to:nil from:nil]; |
(...skipping 57 matching lines...) Loading... |
623 | 629 |
624 NSWindow* BrowserWindowCocoa::window() const { | 630 NSWindow* BrowserWindowCocoa::window() const { |
625 return [controller_ window]; | 631 return [controller_ window]; |
626 } | 632 } |
627 | 633 |
628 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { | 634 void BrowserWindowCocoa::UpdateSidebarForContents(TabContents* tab_contents) { |
629 if (tab_contents == browser_->GetSelectedTabContents()) { | 635 if (tab_contents == browser_->GetSelectedTabContents()) { |
630 [controller_ updateSidebarForContents:tab_contents]; | 636 [controller_ updateSidebarForContents:tab_contents]; |
631 } | 637 } |
632 } | 638 } |
OLD | NEW |