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

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

Issue 10800096: views: Remove the implementation of about chrome dialog. (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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // know what to do. 407 // know what to do.
408 void BrowserWindowCocoa::ToggleBookmarkBar() { 408 void BrowserWindowCocoa::ToggleBookmarkBar() {
409 bookmark_utils::ToggleWhenVisible(browser_->profile()); 409 bookmark_utils::ToggleWhenVisible(browser_->profile());
410 } 410 }
411 411
412 void BrowserWindowCocoa::AddFindBar( 412 void BrowserWindowCocoa::AddFindBar(
413 FindBarCocoaController* find_bar_cocoa_controller) { 413 FindBarCocoaController* find_bar_cocoa_controller) {
414 [controller_ addFindBar:find_bar_cocoa_controller]; 414 [controller_ addFindBar:find_bar_cocoa_controller];
415 } 415 }
416 416
417 void BrowserWindowCocoa::ShowAboutChromeDialog() {
418 // Go through AppController's implementation to bring up the branded panel.
419 [[NSApp delegate] orderFrontStandardAboutPanel:nil];
420 }
421
422 void BrowserWindowCocoa::ShowUpdateChromeDialog() { 417 void BrowserWindowCocoa::ShowUpdateChromeDialog() {
423 restart_browser::RequestRestart(window()); 418 restart_browser::RequestRestart(window());
424 } 419 }
425 420
426 void BrowserWindowCocoa::ShowTaskManager() { 421 void BrowserWindowCocoa::ShowTaskManager() {
427 TaskManagerMac::Show(false); 422 TaskManagerMac::Show(false);
428 } 423 }
429 424
430 void BrowserWindowCocoa::ShowBackgroundPages() { 425 void BrowserWindowCocoa::ShowBackgroundPages() {
431 TaskManagerMac::Show(true); 426 TaskManagerMac::Show(true);
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 AvatarMenuBubbleController* menu = 641 AvatarMenuBubbleController* menu =
647 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ 642 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_
648 anchoredAt:point]; 643 anchoredAt:point];
649 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; 644 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge];
650 [menu showWindow:nil]; 645 [menu showWindow:nil];
651 } 646 }
652 647
653 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { 648 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() {
654 [[controller_ avatarButtonController] showAvatarBubble]; 649 [[controller_ avatarButtonController] showAvatarBubble];
655 } 650 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698