OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 SigninViewController* signin_view_controller, | 39 SigninViewController* signin_view_controller, |
40 Browser* browser); | 40 Browser* browser); |
41 | 41 |
42 // Returns a platform-specific SigninViewControllerDelegate instance that | 42 // Returns a platform-specific SigninViewControllerDelegate instance that |
43 // displays the modal sign in error dialog. The returned object should delete | 43 // displays the modal sign in error dialog. The returned object should delete |
44 // itself when the window it's managing is closed. | 44 // itself when the window it's managing is closed. |
45 static SigninViewControllerDelegate* CreateSigninErrorDelegate( | 45 static SigninViewControllerDelegate* CreateSigninErrorDelegate( |
46 SigninViewController* signin_view_controller, | 46 SigninViewController* signin_view_controller, |
47 Browser* browser); | 47 Browser* browser); |
48 | 48 |
| 49 // Closes the modal sign-in dialog. |
49 void CloseModalSignin(); | 50 void CloseModalSignin(); |
50 | 51 |
51 // Either navigates back in the signin flow if the history state allows it or | 52 // Either navigates back in the signin flow if the history state allows it or |
52 // closes the flow otherwise. | 53 // closes the flow otherwise. |
53 void PerformNavigation(); | 54 void PerformNavigation(); |
54 | 55 |
55 // This will be called by the base class to request a resize of the native | 56 // This will be called by the base class to request a resize of the native |
56 // view hosting the content to |height|. |height| is the total height of the | 57 // view hosting the content to |height|. |height| is the total height of the |
57 // content, in pixels. | 58 // content, in pixels. |
58 virtual void ResizeNativeView(int height) = 0; | 59 virtual void ResizeNativeView(int height) = 0; |
(...skipping 24 matching lines...) Expand all Loading... |
83 | 84 |
84 private: | 85 private: |
85 bool CanGoBack(content::WebContents* web_ui_web_contents) const; | 86 bool CanGoBack(content::WebContents* web_ui_web_contents) const; |
86 | 87 |
87 SigninViewController* signin_view_controller_; // Not owned. | 88 SigninViewController* signin_view_controller_; // Not owned. |
88 content::WebContents* web_contents_; // Not owned. | 89 content::WebContents* web_contents_; // Not owned. |
89 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegate); |
90 }; | 91 }; |
91 | 92 |
92 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_DELEGATE_H_ | 93 #endif // CHROME_BROWSER_UI_SIGNIN_VIEW_CONTROLLER_DELEGATE_H_ |
OLD | NEW |