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 #import "base/mac/sdk_forward_declarations.h" | 10 #import "base/mac/sdk_forward_declarations.h" |
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 const signin::ManageAccountsParams& manage_accounts_params) { | 826 const signin::ManageAccountsParams& manage_accounts_params) { |
827 AvatarBaseController* controller = [controller_ avatarButtonController]; | 827 AvatarBaseController* controller = [controller_ avatarButtonController]; |
828 NSView* anchor = [controller buttonView]; | 828 NSView* anchor = [controller buttonView]; |
829 if ([anchor isHiddenOrHasHiddenAncestor]) | 829 if ([anchor isHiddenOrHasHiddenAncestor]) |
830 anchor = [[controller_ toolbarController] wrenchButton]; | 830 anchor = [[controller_ toolbarController] wrenchButton]; |
831 [controller showAvatarBubbleAnchoredAt:anchor | 831 [controller showAvatarBubbleAnchoredAt:anchor |
832 withMode:mode | 832 withMode:mode |
833 withServiceType:manage_accounts_params.service_type]; | 833 withServiceType:manage_accounts_params.service_type]; |
834 } | 834 } |
835 | 835 |
| 836 void BrowserWindowCocoa::ShowModalSigninWindow(AvatarBubbleMode mode) { |
| 837 NOTREACHED(); |
| 838 } |
| 839 void BrowserWindowCocoa::CloseModalSigninWindow() { |
| 840 NOTREACHED(); |
| 841 } |
| 842 |
836 int | 843 int |
837 BrowserWindowCocoa::GetRenderViewHeightInsetWithDetachedBookmarkBar() { | 844 BrowserWindowCocoa::GetRenderViewHeightInsetWithDetachedBookmarkBar() { |
838 if (browser_->bookmark_bar_state() != BookmarkBar::DETACHED) | 845 if (browser_->bookmark_bar_state() != BookmarkBar::DETACHED) |
839 return 0; | 846 return 0; |
840 return 40; | 847 return 40; |
841 } | 848 } |
842 | 849 |
843 void BrowserWindowCocoa::ExecuteExtensionCommand( | 850 void BrowserWindowCocoa::ExecuteExtensionCommand( |
844 const extensions::Extension* extension, | 851 const extensions::Extension* extension, |
845 const extensions::Command& command) { | 852 const extensions::Command& command) { |
(...skipping 15 matching lines...) Expand all Loading... |
861 void BrowserWindowCocoa::UnhideDownloadShelf() { | 868 void BrowserWindowCocoa::UnhideDownloadShelf() { |
862 GetDownloadShelf()->Unhide(); | 869 GetDownloadShelf()->Unhide(); |
863 } | 870 } |
864 | 871 |
865 void BrowserWindowCocoa::HideDownloadShelf() { | 872 void BrowserWindowCocoa::HideDownloadShelf() { |
866 GetDownloadShelf()->Hide(); | 873 GetDownloadShelf()->Hide(); |
867 StatusBubble* statusBubble = GetStatusBubble(); | 874 StatusBubble* statusBubble = GetStatusBubble(); |
868 if (statusBubble) | 875 if (statusBubble) |
869 statusBubble->Hide(); | 876 statusBubble->Hide(); |
870 } | 877 } |
OLD | NEW |