OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #include "chrome/browser/ui/profile_chooser_constants.h" |
| 9 #include "content/public/browser/web_contents_delegate.h" |
| 10 |
| 11 class Browser; |
| 12 class Profile; |
| 13 |
| 14 namespace views { |
| 15 class WebView; |
| 16 class Widget; |
| 17 }; |
| 18 |
| 19 class SigninViewController : public content::WebContentsDelegate { |
| 20 public: |
| 21 SigninViewController() : modal_signin_widget_(nullptr) {} |
| 22 static views::WebView* CreateGaiaWebView(WebContentsDelegate* delegate, |
| 23 profiles::BubbleViewMode mode, |
| 24 Profile* profile); |
| 25 void ShowModalSignin(profiles::BubbleViewMode mode, Browser* browser); |
| 26 void CloseModalSignin(); |
| 27 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode); |
| 28 |
| 29 private: |
| 30 views::Widget* modal_signin_widget_; // Not owned. |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ |
OLD | NEW |