Chromium Code Reviews| 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 }; | |
|
sky
2015/11/25 00:30:07
nit: no ;
anthonyvd
2015/11/25 18:49:31
Done.
| |
| 18 | |
| 19 class SigninViewController : public content::WebContentsDelegate { | |
| 20 public: | |
| 21 SigninViewController() : modal_signin_widget_(nullptr) {} | |
| 22 static views::WebView* CreateGaiaWebView(WebContentsDelegate* delegate, | |
|
sky
2015/11/25 00:30:07
somewhitespacewouldbenice.
And some comments too.
anthonyvd
2015/11/25 18:49:31
Done.
| |
| 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. | |
|
sky
2015/11/25 00:30:07
Should this be closed if the destructor is hit and
anthonyvd
2015/11/25 18:49:31
Done.
| |
| 31 }; | |
|
sky
2015/11/25 00:30:07
DISALLOW...
anthonyvd
2015/11/25 18:49:31
Done.
| |
| 32 | |
| 33 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_ | |
| OLD | NEW |