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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 withMode:mode | 855 withMode:mode |
856 withServiceType:manage_accounts_params.service_type | 856 withServiceType:manage_accounts_params.service_type |
857 fromAccessPoint:access_point]; | 857 fromAccessPoint:access_point]; |
858 } | 858 } |
859 | 859 |
860 void BrowserWindowCocoa::ShowModalSigninWindow( | 860 void BrowserWindowCocoa::ShowModalSigninWindow( |
861 AvatarBubbleMode mode, | 861 AvatarBubbleMode mode, |
862 signin_metrics::AccessPoint access_point) { | 862 signin_metrics::AccessPoint access_point) { |
863 NOTREACHED(); | 863 NOTREACHED(); |
864 } | 864 } |
| 865 |
865 void BrowserWindowCocoa::CloseModalSigninWindow() { | 866 void BrowserWindowCocoa::CloseModalSigninWindow() { |
866 NOTREACHED(); | 867 NOTREACHED(); |
867 } | 868 } |
868 | 869 |
| 870 void BrowserWindowCocoa::ShowModalSyncConfirmationWindow() { |
| 871 NOTREACHED(); |
| 872 } |
| 873 |
869 int | 874 int |
870 BrowserWindowCocoa::GetRenderViewHeightInsetWithDetachedBookmarkBar() { | 875 BrowserWindowCocoa::GetRenderViewHeightInsetWithDetachedBookmarkBar() { |
871 if (browser_->bookmark_bar_state() != BookmarkBar::DETACHED) | 876 if (browser_->bookmark_bar_state() != BookmarkBar::DETACHED) |
872 return 0; | 877 return 0; |
873 return 40; | 878 return 40; |
874 } | 879 } |
875 | 880 |
876 void BrowserWindowCocoa::ExecuteExtensionCommand( | 881 void BrowserWindowCocoa::ExecuteExtensionCommand( |
877 const extensions::Extension* extension, | 882 const extensions::Extension* extension, |
878 const extensions::Command& command) { | 883 const extensions::Command& command) { |
(...skipping 15 matching lines...) Expand all Loading... |
894 void BrowserWindowCocoa::UnhideDownloadShelf() { | 899 void BrowserWindowCocoa::UnhideDownloadShelf() { |
895 GetDownloadShelf()->Unhide(); | 900 GetDownloadShelf()->Unhide(); |
896 } | 901 } |
897 | 902 |
898 void BrowserWindowCocoa::HideDownloadShelf() { | 903 void BrowserWindowCocoa::HideDownloadShelf() { |
899 GetDownloadShelf()->Hide(); | 904 GetDownloadShelf()->Hide(); |
900 StatusBubble* statusBubble = GetStatusBubble(); | 905 StatusBubble* statusBubble = GetStatusBubble(); |
901 if (statusBubble) | 906 if (statusBubble) |
902 statusBubble->Hide(); | 907 statusBubble->Hide(); |
903 } | 908 } |
OLD | NEW |