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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 WebAuthFlowWindowViews(
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/web_auth_flow_window.cc ('k') | chrome/browser/ui/views/extensions/web_auth_flow_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698