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

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

Issue 1487283005: Implement the new Sync Confirmation dialog on Linux and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adress feedback Created 5 years 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
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 #import "base/mac/sdk_forward_declarations.h" 10 #import "base/mac/sdk_forward_declarations.h"
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 if ([anchor isHiddenOrHasHiddenAncestor]) 846 if ([anchor isHiddenOrHasHiddenAncestor])
847 anchor = [[controller_ toolbarController] wrenchButton]; 847 anchor = [[controller_ toolbarController] wrenchButton];
848 [controller showAvatarBubbleAnchoredAt:anchor 848 [controller showAvatarBubbleAnchoredAt:anchor
849 withMode:mode 849 withMode:mode
850 withServiceType:manage_accounts_params.service_type]; 850 withServiceType:manage_accounts_params.service_type];
851 } 851 }
852 852
853 void BrowserWindowCocoa::ShowModalSigninWindow(AvatarBubbleMode mode) { 853 void BrowserWindowCocoa::ShowModalSigninWindow(AvatarBubbleMode mode) {
854 NOTREACHED(); 854 NOTREACHED();
855 } 855 }
856
856 void BrowserWindowCocoa::CloseModalSigninWindow() { 857 void BrowserWindowCocoa::CloseModalSigninWindow() {
857 NOTREACHED(); 858 NOTREACHED();
858 } 859 }
859 860
861 void BrowserWindowCocoa::ShowModalSyncConfirmationWindow() {
862 NOTREACHED();
863 }
864
860 int 865 int
861 BrowserWindowCocoa::GetRenderViewHeightInsetWithDetachedBookmarkBar() { 866 BrowserWindowCocoa::GetRenderViewHeightInsetWithDetachedBookmarkBar() {
862 if (browser_->bookmark_bar_state() != BookmarkBar::DETACHED) 867 if (browser_->bookmark_bar_state() != BookmarkBar::DETACHED)
863 return 0; 868 return 0;
864 return 40; 869 return 40;
865 } 870 }
866 871
867 void BrowserWindowCocoa::ExecuteExtensionCommand( 872 void BrowserWindowCocoa::ExecuteExtensionCommand(
868 const extensions::Extension* extension, 873 const extensions::Extension* extension,
869 const extensions::Command& command) { 874 const extensions::Command& command) {
(...skipping 15 matching lines...) Expand all
885 void BrowserWindowCocoa::UnhideDownloadShelf() { 890 void BrowserWindowCocoa::UnhideDownloadShelf() {
886 GetDownloadShelf()->Unhide(); 891 GetDownloadShelf()->Unhide();
887 } 892 }
888 893
889 void BrowserWindowCocoa::HideDownloadShelf() { 894 void BrowserWindowCocoa::HideDownloadShelf() {
890 GetDownloadShelf()->Hide(); 895 GetDownloadShelf()->Hide();
891 StatusBubble* statusBubble = GetStatusBubble(); 896 StatusBubble* statusBubble = GetStatusBubble();
892 if (statusBubble) 897 if (statusBubble)
893 statusBubble->Hide(); 898 statusBubble->Hide();
894 } 899 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698