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

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

Issue 2255413002: [Signin Error Dialog] (3/3) Added the triggering code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Broke down the CL Created 4 years, 4 months 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SIGNIN_VIEW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/profile_chooser_constants.h" 9 #include "chrome/browser/ui/profile_chooser_constants.h"
10 10
(...skipping 16 matching lines...) Expand all
27 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode); 27 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode);
28 28
29 // Shows the signin flow as a tab modal dialog attached to |browser|'s active 29 // Shows the signin flow as a tab modal dialog attached to |browser|'s active
30 // web contents. 30 // web contents.
31 // |access_point| indicates the access point used to open the Gaia sign in 31 // |access_point| indicates the access point used to open the Gaia sign in
32 // page. 32 // page.
33 void ShowModalSignin(profiles::BubbleViewMode mode, 33 void ShowModalSignin(profiles::BubbleViewMode mode,
34 Browser* browser, 34 Browser* browser,
35 signin_metrics::AccessPoint access_point); 35 signin_metrics::AccessPoint access_point);
36 void ShowModalSyncConfirmationDialog(Browser* browser); 36 void ShowModalSyncConfirmationDialog(Browser* browser);
37 void ShowModalSigninErrorDialog(Browser* browser);
37 38
38 // Closes the tab-modal signin flow previously shown using this 39 // Closes the tab-modal signin flow previously shown using this
39 // SigninViewController, if one exists. Does nothing otherwise. 40 // SigninViewController, if one exists. Does nothing otherwise.
40 void CloseModalSignin(); 41 void CloseModalSignin();
41 42
42 // Sets the height of the modal signin dialog. 43 // Sets the height of the modal signin dialog.
43 void SetModalSigninHeight(int height); 44 void SetModalSigninHeight(int height);
44 45
45 // Notifies this object that it's |signin_view_controller_delegate_| 46 // Notifies this object that it's |signin_view_controller_delegate_|
46 // member has become invalid. 47 // member has become invalid.
47 void ResetModalSigninDelegate(); 48 void ResetModalSigninDelegate();
48 49
49 SigninViewControllerDelegate* delegate() { 50 SigninViewControllerDelegate* delegate() {
50 return signin_view_controller_delegate_; 51 return signin_view_controller_delegate_;
51 } 52 }
52 53
53 private: 54 private:
54 SigninViewControllerDelegate* signin_view_controller_delegate_; 55 SigninViewControllerDelegate* signin_view_controller_delegate_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(SigninViewController); 57 DISALLOW_COPY_AND_ASSIGN(SigninViewController);
57 }; 58 };
58 59
59 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_ 60 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm ('k') | chrome/browser/ui/signin_view_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698