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

Side by Side Diff: chrome/browser/ui/views/profiles/signin_view_controller.h

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: Add some tests. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "chrome/browser/ui/profile_chooser_constants.h" 10 #include "chrome/browser/ui/profile_chooser_constants.h"
(...skipping 19 matching lines...) Expand all
30 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode); 30 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode);
31 31
32 // Creates the web view that contains the signin flow in |mode| using 32 // Creates the web view that contains the signin flow in |mode| using
33 // |profile| as the web content's profile, then sets |delegate| as the created 33 // |profile| as the web content's profile, then sets |delegate| as the created
34 // web content's delegate. 34 // web content's delegate.
35 static views::WebView* CreateGaiaWebView( 35 static views::WebView* CreateGaiaWebView(
36 content::WebContentsDelegate* delegate, 36 content::WebContentsDelegate* delegate,
37 profiles::BubbleViewMode mode, 37 profiles::BubbleViewMode mode,
38 Profile* profile); 38 Profile* profile);
39 39
40 static views::WebView* CreateSyncConfirmationWebView(Profile* profile);
41
40 // Shows the signin flow as a tab modal dialog attached to |browser|'s active 42 // Shows the signin flow as a tab modal dialog attached to |browser|'s active
41 // web contents. 43 // web contents.
42 void ShowModalSignin(profiles::BubbleViewMode mode, Browser* browser); 44 void ShowModalSignin(profiles::BubbleViewMode mode, Browser* browser);
43 45
44 // Closes the tab-modal signin flow previously shown using this 46 // Closes the tab-modal signin flow previously shown using this
45 // SigninViewController, if one exists. Does nothing otherwise. 47 // SigninViewController, if one exists. Does nothing otherwise.
46 void CloseModalSignin(); 48 void CloseModalSignin();
47 49
50 void ShowModalSyncConfirmationDialog(Browser* browser);
51
48 // Notifies this object that it's |modal_signin_delegate_| member has become 52 // Notifies this object that it's |modal_signin_delegate_| member has become
49 // invalid. 53 // invalid.
50 void ResetModalSigninDelegate(); 54 void ResetModalSigninDelegate();
51 55
52 private: 56 private:
53 ModalSigninDelegate* modal_signin_delegate_; 57 ModalSigninDelegate* modal_signin_delegate_;
54 58
55 DISALLOW_COPY_AND_ASSIGN(SigninViewController); 59 DISALLOW_COPY_AND_ASSIGN(SigninViewController);
56 }; 60 };
57 61
58 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ 62 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698