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

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

Issue 1413533009: Make the new Gaia password separated signin flow modal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 5 years 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
(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 "base/macros.h"
9 #include "chrome/browser/ui/profile_chooser_constants.h"
10 #include "content/public/browser/web_contents_delegate.h"
11
12 class Browser;
13 class Profile;
14 class SigninViewControllerImpl;
15
16 namespace views {
17 class WebView;
18 }
19
20 class SigninViewController : public content::WebContentsDelegate {
21 public:
22 SigninViewController();
23 ~SigninViewController() override;
24
25 // Returns true if the signin flow should be shown as tab-modal for |mode|.
26 static bool ShouldShowModalSigninForMode(profiles::BubbleViewMode mode);
27
28 // Creates the web view that contains the signin flow in |mode| using
29 // |profile| as the web content's profile, then sets |delegate| as the created
30 // web content's delegate.
31 static views::WebView* CreateGaiaWebView(WebContentsDelegate* delegate,
32 profiles::BubbleViewMode mode,
33 Profile* profile);
34
35 // Shows the signin flow as a tab modal dialog attached to |browser|'s active
36 // web contents.
37 void ShowModalSignin(profiles::BubbleViewMode mode, Browser* browser);
38
39 // Closes the tab-modal signin flow previously shown using this
40 // SigninViewController, if one exists. Does nothing otherwise.
41 void CloseModalSignin();
42
43 private:
44 SigninViewControllerImpl* impl_;
45
46 DISALLOW_COPY_AND_ASSIGN(SigninViewController);
47 };
48
49 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698