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

Unified Diff: ui/app_list/views/signin_view.h

Issue 12095027: [win] Add signin support for the app launcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cros test Created 7 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/search_box_view.cc ('k') | ui/app_list/views/signin_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/app_list/views/search_box_view.cc ('k') | ui/app_list/views/signin_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698