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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // displayed? | 180 // displayed? |
180 bool should_emit_login_prompt_visible_; | 181 bool should_emit_login_prompt_visible_; |
181 | 182 |
182 // True to forward keyboard event. | 183 // True to forward keyboard event. |
183 bool forward_keyboard_event_; | 184 bool forward_keyboard_event_; |
184 | 185 |
185 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 186 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
186 | 187 |
187 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; | 188 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; |
188 | 189 |
| 190 // Manage popups appearing over the login window. |
| 191 // TODO(gbillock): See if we can get rid of this. Perhaps in favor of |
| 192 // in-content styled popups or something? There oughtta be a way... |
| 193 scoped_ptr<web_modal::PopupManager> popup_manager_; |
| 194 |
189 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 195 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
190 }; | 196 }; |
191 | 197 |
192 } // namespace chromeos | 198 } // namespace chromeos |
193 | 199 |
194 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ | 200 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_WEBUI_LOGIN_VIEW_H_ |
OLD | NEW |