OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 public views::WidgetRemovalsObserver { | 58 public views::WidgetRemovalsObserver { |
59 public: | 59 public: |
60 explicit LoginDisplayHostImpl(const gfx::Rect& background_bounds); | 60 explicit LoginDisplayHostImpl(const gfx::Rect& background_bounds); |
61 virtual ~LoginDisplayHostImpl(); | 61 virtual ~LoginDisplayHostImpl(); |
62 | 62 |
63 // Returns the default LoginDisplayHost instance if it has been created. | 63 // Returns the default LoginDisplayHost instance if it has been created. |
64 static LoginDisplayHost* default_host() { | 64 static LoginDisplayHost* default_host() { |
65 return default_host_; | 65 return default_host_; |
66 } | 66 } |
67 | 67 |
68 // Gets the Gaia auth iframe within a WebContents. | |
69 static content::RenderFrameHost* GetGaiaAuthIframe( | |
70 content::WebContents* web_contents); | |
71 | |
72 // LoginDisplayHost implementation: | 68 // LoginDisplayHost implementation: |
73 virtual LoginDisplay* CreateLoginDisplay( | 69 virtual LoginDisplay* CreateLoginDisplay( |
74 LoginDisplay::Delegate* delegate) OVERRIDE; | 70 LoginDisplay::Delegate* delegate) OVERRIDE; |
75 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 71 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
76 virtual WebUILoginView* GetWebUILoginView() const OVERRIDE; | 72 virtual WebUILoginView* GetWebUILoginView() const OVERRIDE; |
77 virtual void BeforeSessionStart() OVERRIDE; | 73 virtual void BeforeSessionStart() OVERRIDE; |
78 virtual void Finalize() OVERRIDE; | 74 virtual void Finalize() OVERRIDE; |
79 virtual void OnCompleteLogin() OVERRIDE; | 75 virtual void OnCompleteLogin() OVERRIDE; |
80 virtual void OpenProxySettings() OVERRIDE; | 76 virtual void OpenProxySettings() OVERRIDE; |
81 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; | 77 virtual void SetStatusAreaVisible(bool visible) OVERRIDE; |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 318 |
323 // The bounds of the virtual keyboard. | 319 // The bounds of the virtual keyboard. |
324 gfx::Rect keyboard_bounds_; | 320 gfx::Rect keyboard_bounds_; |
325 | 321 |
326 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); | 322 DISALLOW_COPY_AND_ASSIGN(LoginDisplayHostImpl); |
327 }; | 323 }; |
328 | 324 |
329 } // namespace chromeos | 325 } // namespace chromeos |
330 | 326 |
331 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ | 327 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_DISPLAY_HOST_IMPL_H_ |
OLD | NEW |