Index: ui/app_list/views/signin_view.h |
diff --git a/ui/app_list/views/signin_view.h b/ui/app_list/views/signin_view.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..beab25bc7289120be6e8b3f5681f603c06fc3d0b |
--- /dev/null |
+++ b/ui/app_list/views/signin_view.h |
@@ -0,0 +1,46 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ |
+#define UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/views/view.h" |
+ |
+namespace content { |
+class WebContents; |
+} |
+ |
+namespace views { |
+class WebView; |
+} |
+ |
+namespace app_list { |
+ |
+class SigninDelegate; |
+ |
+// The SigninView is shown in the app list when the user needs to sign in. |
+// It just shows a webview, which is prepared for signin by the signin delegate. |
+class SigninView : public views::View { |
+ public: |
+ SigninView(SigninDelegate* delegate); |
+ virtual ~SigninView(); |
+ |
+ // Show the signin UI and begins the signin process. |
+ void BeginSignin(); |
+ |
+ private: |
+ scoped_ptr<content::WebContents> web_contents_; |
+ views::WebView* web_view_; |
+ |
+ SigninDelegate* delegate_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SigninView); |
+}; |
+ |
+} // namespace app_list |
+ |
+#endif // UI_APP_LIST_VIEWS_SIGNIN_VIEW_H_ |