OLD | NEW |
| (Empty) |
1 // Copyright 2013 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 UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ | |
6 #define UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "ui/views/view.h" | |
12 | |
13 namespace content { | |
14 class WebContents; | |
15 } | |
16 | |
17 namespace views { | |
18 class WebView; | |
19 } | |
20 | |
21 namespace app_list { | |
22 | |
23 class SigninDelegate; | |
24 | |
25 // The SigninView is shown in the app list when the user needs to sign in. | |
26 // It just shows a webview, which is prepared for signin by the signin delegate. | |
27 class SigninView : public views::View { | |
28 public: | |
29 SigninView(SigninDelegate* delegate); | |
30 virtual ~SigninView(); | |
31 | |
32 // Show the signin UI and begins the signin process. | |
33 void BeginSignin(); | |
34 | |
35 private: | |
36 scoped_ptr<content::WebContents> web_contents_; | |
37 views::WebView* web_view_; | |
38 | |
39 SigninDelegate* delegate_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(SigninView); | |
42 }; | |
43 | |
44 } // namespace app_list | |
45 | |
46 #endif // UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ | |
OLD | NEW |