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_ |