OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 7 #include "base/bind.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/mac/mac_util.h" | 10 #include "base/mac/mac_util.h" |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) | 540 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) |
541 [BrowserWindowUtils handleKeyboardEvent:event.os_event inWindow:window()]; | 541 [BrowserWindowUtils handleKeyboardEvent:event.os_event inWindow:window()]; |
542 } | 542 } |
543 | 543 |
544 void BrowserWindowCocoa::ShowCreateWebAppShortcutsDialog( | 544 void BrowserWindowCocoa::ShowCreateWebAppShortcutsDialog( |
545 TabContentsWrapper* tab_contents) { | 545 TabContentsWrapper* tab_contents) { |
546 NOTIMPLEMENTED(); | 546 NOTIMPLEMENTED(); |
547 } | 547 } |
548 | 548 |
549 void BrowserWindowCocoa::ShowCreateChromeAppShortcutsDialog( | 549 void BrowserWindowCocoa::ShowCreateChromeAppShortcutsDialog( |
550 Profile* profile, const Extension* app) { | 550 Profile* profile, const extensions::Extension* app) { |
551 NOTIMPLEMENTED(); | 551 NOTIMPLEMENTED(); |
552 } | 552 } |
553 | 553 |
554 void BrowserWindowCocoa::Cut() { | 554 void BrowserWindowCocoa::Cut() { |
555 [NSApp sendAction:@selector(cut:) to:nil from:nil]; | 555 [NSApp sendAction:@selector(cut:) to:nil from:nil]; |
556 } | 556 } |
557 | 557 |
558 void BrowserWindowCocoa::Copy() { | 558 void BrowserWindowCocoa::Copy() { |
559 [NSApp sendAction:@selector(copy:) to:nil from:nil]; | 559 [NSApp sendAction:@selector(copy:) to:nil from:nil]; |
560 } | 560 } |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 AvatarMenuBubbleController* menu = | 661 AvatarMenuBubbleController* menu = |
662 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ | 662 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
663 anchoredAt:point]; | 663 anchoredAt:point]; |
664 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; | 664 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; |
665 [menu showWindow:nil]; | 665 [menu showWindow:nil]; |
666 } | 666 } |
667 | 667 |
668 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { | 668 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { |
669 [[controller_ avatarButtonController] showAvatarBubble]; | 669 [[controller_ avatarButtonController] showAvatarBubble]; |
670 } | 670 } |
OLD | NEW |