OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Creates the web view that contains the signin flow in |mode| using | 36 // Creates the web view that contains the signin flow in |mode| using |
37 // |profile| as the web content's profile, then sets |delegate| as the created | 37 // |profile| as the web content's profile, then sets |delegate| as the created |
38 // web content's delegate. | 38 // web content's delegate. |
39 static views::WebView* CreateGaiaWebView( | 39 static views::WebView* CreateGaiaWebView( |
40 content::WebContentsDelegate* delegate, | 40 content::WebContentsDelegate* delegate, |
41 profiles::BubbleViewMode mode, | 41 profiles::BubbleViewMode mode, |
42 Profile* profile, | 42 Profile* profile, |
43 signin_metrics::AccessPoint access_point); | 43 signin_metrics::AccessPoint access_point); |
44 | 44 |
| 45 static views::WebView* CreateSyncConfirmationWebView(Profile* profile); |
| 46 |
45 // Shows the signin flow as a tab modal dialog attached to |browser|'s active | 47 // Shows the signin flow as a tab modal dialog attached to |browser|'s active |
46 // web contents. | 48 // web contents. |
47 // |access_point| indicates the access point used to open the Gaia sign in | 49 // |access_point| indicates the access point used to open the Gaia sign in |
48 // page. | 50 // page. |
49 void ShowModalSignin(profiles::BubbleViewMode mode, | 51 void ShowModalSignin(profiles::BubbleViewMode mode, |
50 Browser* browser, | 52 Browser* browser, |
51 signin_metrics::AccessPoint access_point); | 53 signin_metrics::AccessPoint access_point); |
52 | 54 |
| 55 void ShowModalSyncConfirmationDialog(Browser* browser); |
| 56 |
53 // Closes the tab-modal signin flow previously shown using this | 57 // Closes the tab-modal signin flow previously shown using this |
54 // SigninViewController, if one exists. Does nothing otherwise. | 58 // SigninViewController, if one exists. Does nothing otherwise. |
55 void CloseModalSignin(); | 59 void CloseModalSignin(); |
56 | 60 |
57 // Notifies this object that it's |modal_signin_delegate_| member has become | 61 // Notifies this object that it's |modal_signin_delegate_| member has become |
58 // invalid. | 62 // invalid. |
59 void ResetModalSigninDelegate(); | 63 void ResetModalSigninDelegate(); |
60 | 64 |
61 private: | 65 private: |
62 ModalSigninDelegate* modal_signin_delegate_; | 66 ModalSigninDelegate* modal_signin_delegate_; |
63 | 67 |
64 DISALLOW_COPY_AND_ASSIGN(SigninViewController); | 68 DISALLOW_COPY_AND_ASSIGN(SigninViewController); |
65 }; | 69 }; |
66 | 70 |
67 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ | 71 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ |
OLD | NEW |