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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 } | 424 } |
425 #endif // defined(WEBUI_TASK_MANAGER) | 425 #endif // defined(WEBUI_TASK_MANAGER) |
426 } | 426 } |
427 | 427 |
428 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, | 428 void BrowserWindowCocoa::ShowBookmarkBubble(const GURL& url, |
429 bool already_bookmarked) { | 429 bool already_bookmarked) { |
430 [controller_ showBookmarkBubbleForURL:url | 430 [controller_ showBookmarkBubbleForURL:url |
431 alreadyBookmarked:(already_bookmarked ? YES : NO)]; | 431 alreadyBookmarked:(already_bookmarked ? YES : NO)]; |
432 } | 432 } |
433 | 433 |
| 434 void BrowserWindowCocoa::ShowChromeToMobileBubble() { |
| 435 NOTIMPLEMENTED(); |
| 436 } |
| 437 |
434 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { | 438 bool BrowserWindowCocoa::IsDownloadShelfVisible() const { |
435 return [controller_ isDownloadShelfVisible] != NO; | 439 return [controller_ isDownloadShelfVisible] != NO; |
436 } | 440 } |
437 | 441 |
438 DownloadShelf* BrowserWindowCocoa::GetDownloadShelf() { | 442 DownloadShelf* BrowserWindowCocoa::GetDownloadShelf() { |
439 DownloadShelfController* shelfController = [controller_ downloadShelf]; | 443 DownloadShelfController* shelfController = [controller_ downloadShelf]; |
440 return [shelfController bridge]; | 444 return [shelfController bridge]; |
441 } | 445 } |
442 | 446 |
443 // We allow closing the window here since the real quit decision on Mac is made | 447 // 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... |
627 AvatarMenuBubbleController* menu = | 631 AvatarMenuBubbleController* menu = |
628 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ | 632 [[AvatarMenuBubbleController alloc] initWithBrowser:browser_ |
629 anchoredAt:point]; | 633 anchoredAt:point]; |
630 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; | 634 [[menu bubble] setAlignment:info_bubble::kAlignEdgeToAnchorEdge]; |
631 [menu showWindow:nil]; | 635 [menu showWindow:nil]; |
632 } | 636 } |
633 | 637 |
634 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { | 638 void BrowserWindowCocoa::ShowAvatarBubbleFromAvatarButton() { |
635 [[controller_ avatarButtonController] showAvatarBubble]; | 639 [[controller_ avatarButtonController] showAvatarBubble]; |
636 } | 640 } |
OLD | NEW |