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