OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_EXTENSIONS_WEB_AUTH_FLOW_WINDOW_VIEWS_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_WEB_AUTH_FLOW_WINDOW_VIEWS_H_ | |
7 | |
8 #include "chrome/browser/ui/extensions/web_auth_flow_window.h" | |
9 #include "ui/gfx/rect.h" | |
10 #include "ui/views/widget/widget_delegate.h" | |
11 | |
12 namespace content { | |
13 class BrowserContext; | |
14 class WebContents; | |
15 } | |
16 | |
17 namespace views { | |
18 class View; | |
19 class WebView; | |
20 class Widget; | |
21 } | |
22 | |
23 class WebAuthFlowWindowViews : public WebAuthFlowWindow, | |
24 public views::WidgetDelegateView { | |
25 public: | |
26 WebAuthFlowWindowViews( | |
27 Delegate* delegate, | |
28 content::BrowserContext* browser_context, | |
29 content::WebContents* contents); | |
30 | |
31 // WidgetDelegate implementation. | |
32 virtual views::View* GetContentsView() OVERRIDE; | |
33 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | |
34 virtual void DeleteDelegate() OVERRIDE; | |
35 | |
36 // WebAuthFlowWindow implementation. | |
37 virtual void Show() OVERRIDE; | |
38 | |
39 private: | |
40 virtual ~WebAuthFlowWindowViews(); | |
41 | |
42 views::WebView* web_view_; | |
43 views::Widget* widget_; | |
44 | |
45 DISALLOW_COPY_AND_ASSIGN(WebAuthFlowWindowViews); | |
46 }; | |
47 | |
48 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_WEB_AUTH_FLOW_WINDOW_VIEWS_H_ | |
OLD | NEW |