OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_WEBUI_LOGIN_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const ui::Accelerator& accelerator) OVERRIDE; | 56 const ui::Accelerator& accelerator) OVERRIDE; |
57 virtual const char* GetClassName() const OVERRIDE; | 57 virtual const char* GetClassName() const OVERRIDE; |
58 | 58 |
59 // Overridden from ChromeWebModalDialogManagerDelegate: | 59 // Overridden from ChromeWebModalDialogManagerDelegate: |
60 virtual web_modal::WebContentsModalDialogHost* | 60 virtual web_modal::WebContentsModalDialogHost* |
61 GetWebContentsModalDialogHost() OVERRIDE; | 61 GetWebContentsModalDialogHost() OVERRIDE; |
62 | 62 |
63 // Overridden from web_modal::WebContentsModalDialogHost: | 63 // Overridden from web_modal::WebContentsModalDialogHost: |
64 virtual gfx::NativeView GetHostView() const OVERRIDE; | 64 virtual gfx::NativeView GetHostView() const OVERRIDE; |
65 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 65 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 66 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
66 virtual void AddObserver( | 67 virtual void AddObserver( |
67 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 68 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
68 virtual void RemoveObserver( | 69 virtual void RemoveObserver( |
69 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 70 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
70 | 71 |
71 // Gets the native window from the view widget. | 72 // Gets the native window from the view widget. |
72 gfx::NativeWindow GetNativeWindow() const; | 73 gfx::NativeWindow GetNativeWindow() const; |
73 | 74 |
74 // Loads given page. Should be called after Init() has been called. | 75 // Loads given page. Should be called after Init() has been called. |
75 void LoadURL(const GURL& url); | 76 void LoadURL(const GURL& url); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 167 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
167 | 168 |
168 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; | 169 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 171 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
171 }; | 172 }; |
172 | 173 |
173 } // namespace chromeos | 174 } // namespace chromeos |
174 | 175 |
175 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 176 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
OLD | NEW |