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

Unified Diff: chrome/browser/ui/views/extensions/web_auth_flow_window_views.h

Issue 10178020: Start implementing an auth flow for platform apps to be able to do auth (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: chrome/browser/ui/views/extensions/web_auth_flow_window_views.h
===================================================================
--- chrome/browser/ui/views/extensions/web_auth_flow_window_views.h (revision 0)
+++ chrome/browser/ui/views/extensions/web_auth_flow_window_views.h (revision 0)
@@ -0,0 +1,49 @@
+// Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_EXTENSIONS_WEB_AUTH_FLOW_WINDOW_VIEWS_H_
+#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_WEB_AUTH_FLOW_WINDOW_VIEWS_H_
+#pragma once
+
+#include "chrome/browser/ui/extensions/web_auth_flow_window.h"
+#include "ui/gfx/rect.h"
Mihai Parparita -not on Chrome 2012/05/14 20:59:39 This is unused.
+#include "ui/views/widget/widget_delegate.h"
+
+namespace content {
+class BrowserContext;
+class WebContents;
+}
+
+namespace views {
+class View;
+class WebView;
+class Widget;
+}
+
+class WebAuthFlowWindowViews : public WebAuthFlowWindow,
+ public views::WidgetDelegateView {
+ public:
+ explicit WebAuthFlowWindowViews(
+ Delegate* delegate,
+ content::BrowserContext* browser_context,
+ content::WebContents* contents);
+
+ // WidgetDelegate implementation.
+ virtual views::View* GetContentsView() OVERRIDE;
+ virtual views::View* GetInitiallyFocusedView() OVERRIDE;
+ virtual void DeleteDelegate() OVERRIDE;
+
+ // WebAuthFlowWindow implementation.
+ virtual void Show() OVERRIDE;
+
+ private:
+ virtual ~WebAuthFlowWindowViews();
+
+ views::WebView* web_view_;
+ views::Widget* widget_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebAuthFlowWindowViews);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_WEB_AUTH_FLOW_WINDOW_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698