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_WEBUI_LOGIN_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h" | 13 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h" |
14 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" | 14 #include "chrome/browser/ui/chrome_web_modal_dialog_manager_delegate.h" |
| 15 #include "components/web_modal/popup_manager.h" |
15 #include "components/web_modal/web_contents_modal_dialog_host.h" | 16 #include "components/web_modal/web_contents_modal_dialog_host.h" |
16 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
18 #include "content/public/browser/web_contents_delegate.h" | 19 #include "content/public/browser/web_contents_delegate.h" |
19 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
20 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 21 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
21 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
22 #include "ui/views/widget/widget_delegate.h" | 23 #include "ui/views/widget/widget_delegate.h" |
23 | 24 |
24 class GURL; | 25 class GURL; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 bool should_emit_login_prompt_visible_; | 187 bool should_emit_login_prompt_visible_; |
187 | 188 |
188 // True to forward keyboard event. | 189 // True to forward keyboard event. |
189 bool forward_keyboard_event_; | 190 bool forward_keyboard_event_; |
190 | 191 |
191 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 192 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
192 | 193 |
193 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; | 194 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; |
194 ObserverList<FrameObserver> frame_observer_list_; | 195 ObserverList<FrameObserver> frame_observer_list_; |
195 | 196 |
| 197 // Manage popups appearing over the login window. |
| 198 // TODO(gbillock): See if we can get rid of this. Perhaps in favor of |
| 199 // in-content styled popups or something? There oughtta be a way... |
| 200 scoped_ptr<web_modal::PopupManager> popup_manager_; |
| 201 |
196 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 202 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
197 }; | 203 }; |
198 | 204 |
199 } // namespace chromeos | 205 } // namespace chromeos |
200 | 206 |
201 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ | 207 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ |
OLD | NEW |