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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 434 } |
435 #endif // defined(WEBUI_TASK_MANAGER) | 435 #endif // defined(WEBUI_TASK_MANAGER) |
436 } | 436 } |
437 | 437 |
438 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, | 438 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, |
439 bool already_bookmarked) { | 439 bool already_bookmarked) { |
440 [controller_ showBookmarkBubbleForURL:url | 440 [controller_ showBookmarkBubbleForURL:url |
441 alreadyBookmarked:(already_bookmarked ? YES : NO)]; | 441 alreadyBookmarked:(already_bookmarked ? YES : NO)]; |
442 } | 442 } |
443 | 443 |
| 444 void BrowserWindowCocoa::ShowChromeToMobileBubble() { |
| 445 NOTIMPLEMENTED(); |
| 446 } |
| 447 |
444 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { | 448 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { |
445 return [controller_ isDownloadShelfVisible] != NO; | 449 return [controller_ isDownloadShelfVisible] != NO; |
446 } | 450 } |
447 | 451 |
448 DownloadShelf* BrowserWindowCocoa::GetDownloadShelf() { | 452 DownloadShelf* BrowserWindowCocoa::GetDownloadShelf() { |
449 DownloadShelfController* shelfController = [controller_ downloadShelf]; | 453 DownloadShelfController* shelfController = [controller_ downloadShelf]; |
450 return [shelfController bridge]; | 454 return [shelfController bridge]; |
451 } | 455 } |
452 | 456 |
453 // We allow closing the window here since the real quit decision on Mac is made | 457 // We allow closing the window here since the real quit decision on Mac is made |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 AvatarMenuBubbleController* menu = | 641 AvatarMenuBubbleController* menu = |
638 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ | 642 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
639 anchoredAt:point]; | 643 anchoredAt:point]; |
640 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; | 644 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; |
641 [menu showWindow:nil]; | 645 [menu showWindow:nil]; |
642 } | 646 } |
643 | 647 |
644 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { | 648 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { |
645 [[controller_ avatarButtonController] showAvatarBubble]; | 649 [[controller_ avatarButtonController] showAvatarBubble]; |
646 } | 650 } |
OLD | NEW |