Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_cocoa.mm

Issue 10699057: Move application creation and extension install prompt showing off Browser and onto ExtensionTabHel… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 *is_keyboard_shortcut = true; 523 *is_keyboard_shortcut = true;
524 return false; 524 return false;
525 } 525 }
526 526
527 void BrowserWindowCocoa::HandleKeyboardEvent( 527 void BrowserWindowCocoa::HandleKeyboardEvent(
528 const NativeWebKeyboardEvent& event) { 528 const NativeWebKeyboardEvent& event) {
529 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) 529 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event])
530 [BrowserWindowUtils handleKeyboardEvent:event.os_event inWindow:window()]; 530 [BrowserWindowUtils handleKeyboardEvent:event.os_event inWindow:window()];
531 } 531 }
532 532
533 void BrowserWindowCocoa::ShowCreateWebAppShortcutsDialog(
534 TabContents* tab_contents) {
535 NOTIMPLEMENTED();
536 }
537
538 void BrowserWindowCocoa::ShowCreateChromeAppShortcutsDialog( 533 void BrowserWindowCocoa::ShowCreateChromeAppShortcutsDialog(
539 Profile* profile, const extensions::Extension* app) { 534 Profile* profile, const extensions::Extension* app) {
540 NOTIMPLEMENTED(); 535 NOTIMPLEMENTED();
541 } 536 }
542 537
543 void BrowserWindowCocoa::Cut() { 538 void BrowserWindowCocoa::Cut() {
544 [NSApp sendAction:@selector(cut:) to:nil from:nil]; 539 [NSApp sendAction:@selector(cut:) to:nil from:nil];
545 } 540 }
546 541
547 void BrowserWindowCocoa::Copy() { 542 void BrowserWindowCocoa::Copy() {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 AvatarMenuBubbleController* menu = 645 AvatarMenuBubbleController* menu =
651 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ 646 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_
652 anchoredAt:point]; 647 anchoredAt:point];
653 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; 648 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge];
654 [menu showWindow:nil]; 649 [menu showWindow:nil];
655 } 650 }
656 651
657 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { 652 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() {
658 [[controller_ avatarButtonController] showAvatarBubble]; 653 [[controller_ avatarButtonController] showAvatarBubble];
659 } 654 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698