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

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

Issue 2348423002: [Signin Error Dialog] (3/3) Added the triggering code (Closed)
Patch Set: Add comment. Created 4 years, 3 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_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_DELEGATE_H_
7 7
8 #include "chrome/browser/ui/profile_chooser_constants.h" 8 #include "chrome/browser/ui/profile_chooser_constants.h"
9 #include "content/public/browser/web_contents_delegate.h" 9 #include "content/public/browser/web_contents_delegate.h"
10 10
(...skipping 16 matching lines...) Expand all
27 static SigninViewControllerDelegate* CreateModalSigninDelegate( 27 static SigninViewControllerDelegate* CreateModalSigninDelegate(
28 SigninViewController* signin_view_controller, 28 SigninViewController* signin_view_controller,
29 profiles::BubbleViewMode mode, 29 profiles::BubbleViewMode mode,
30 Browser* browser, 30 Browser* browser,
31 signin_metrics::AccessPoint access_point); 31 signin_metrics::AccessPoint access_point);
32 32
33 static SigninViewControllerDelegate* CreateSyncConfirmationDelegate( 33 static SigninViewControllerDelegate* CreateSyncConfirmationDelegate(
34 SigninViewController* signin_view_controller, 34 SigninViewController* signin_view_controller,
35 Browser* browser); 35 Browser* browser);
36 36
37 static SigninViewControllerDelegate* CreateSigninErrorDelegate(
sky 2016/09/21 16:14:39 Please document lifetime here.
anthonyvd 2016/09/22 16:52:01 Done.
38 SigninViewController* signin_view_controller,
39 Browser* browser);
40
37 void CloseModalSignin(); 41 void CloseModalSignin();
38 42
39 // Either navigates back in the signin flow if the history state allows it or 43 // Either navigates back in the signin flow if the history state allows it or
40 // closes the flow otherwise. 44 // closes the flow otherwise.
41 void PerformNavigation(); 45 void PerformNavigation();
42 46
43 // This will be called by the base class to request a resize of the native 47 // This will be called by the base class to request a resize of the native
44 // view hosting the content to |height|. |height| is the total height of the 48 // view hosting the content to |height|. |height| is the total height of the
45 // content, in pixels. 49 // content, in pixels.
46 virtual void ResizeNativeView(int height) = 0; 50 virtual void ResizeNativeView(int height) = 0;
(...skipping 24 matching lines...) Expand all
71 75
72 private: 76 private:
73 bool CanGoBack(content::WebContents* web_ui_web_contents) const; 77 bool CanGoBack(content::WebContents* web_ui_web_contents) const;
74 78
75 SigninViewController* signin_view_controller_; // Not owned. 79 SigninViewController* signin_view_controller_; // Not owned.
76 content::WebContents* web_contents_; // Not owned. 80 content::WebContents* web_contents_; // Not owned.
77 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegate); 81 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegate);
78 }; 82 };
79 83
80 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_DELEGATE_H_ 84 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698