Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 | 104 |
| 105 // Overridden from content::WebContentsDelegate. | 105 // Overridden from content::WebContentsDelegate. |
| 106 virtual bool HandleContextMenu( | 106 virtual bool HandleContextMenu( |
| 107 const content::ContextMenuParams& params) OVERRIDE; | 107 const content::ContextMenuParams& params) OVERRIDE; |
| 108 virtual void HandleKeyboardEvent( | 108 virtual void HandleKeyboardEvent( |
| 109 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 109 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 110 virtual bool IsPopupOrPanel( | 110 virtual bool IsPopupOrPanel( |
| 111 const content::WebContents* source) const OVERRIDE; | 111 const content::WebContents* source) const OVERRIDE; |
| 112 virtual bool TakeFocus(bool reverse) OVERRIDE; | 112 virtual bool TakeFocus(bool reverse) OVERRIDE; |
| 113 | 113 |
| 114 // Performs series of action when login prompt is considered | |
|
Daniel Erat
2012/06/02 14:20:59
nit: s/action/actions/
Nikita (slow)
2012/06/04 09:18:25
Done.
| |
| 115 // to be ready and visible. | |
| 116 // 1. Emits LoginPromptVisible signal if needed | |
| 117 // 2. Notifies OOBE/sign classes. | |
| 118 void OnLoginPromptVisible(); | |
| 119 | |
| 114 // Called when focus is returned from status area. | 120 // Called when focus is returned from status area. |
| 115 // |reverse| is true when focus is traversed backwards (using Shift-Tab). | 121 // |reverse| is true when focus is traversed backwards (using Shift-Tab). |
| 116 void ReturnFocus(bool reverse); | 122 void ReturnFocus(bool reverse); |
| 117 | 123 |
| 118 content::NotificationRegistrar registrar_; | 124 content::NotificationRegistrar registrar_; |
| 119 | 125 |
| 120 // TabContentsWrapper for the WebView. | 126 // TabContentsWrapper for the WebView. |
| 121 // TODO: this is needed for password manager, should be refactored/replaced | 127 // TODO: this is needed for password manager, should be refactored/replaced |
| 122 // so that this code can move to src/ash. | 128 // so that this code can move to src/ash. |
| 123 scoped_ptr<TabContentsWrapper> wrapper_; | 129 scoped_ptr<TabContentsWrapper> wrapper_; |
| 124 | 130 |
| 125 // Login window which shows the view. | 131 // Login window which shows the view. |
| 126 views::Widget* login_window_; | 132 views::Widget* login_window_; |
| 127 | 133 |
| 128 // Converts keyboard events on the WebContents to accelerators. | 134 // Converts keyboard events on the WebContents to accelerators. |
| 129 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 135 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| 130 | 136 |
| 131 // Maps installed accelerators to OOBE webui accelerator identifiers. | 137 // Maps installed accelerators to OOBE webui accelerator identifiers. |
| 132 AccelMap accel_map_; | 138 AccelMap accel_map_; |
| 133 | 139 |
| 134 // Watches webui_login_'s WebContents rendering. | 140 // Watches webui_login_'s WebContents rendering. |
| 135 scoped_ptr<TabRenderWatcher> tab_watcher_; | 141 scoped_ptr<TabRenderWatcher> tab_watcher_; |
| 136 | 142 |
| 137 // Whether the host window is frozen. | 143 // Whether the host window is frozen. |
| 138 bool host_window_frozen_; | 144 bool host_window_frozen_; |
| 139 | 145 |
| 140 // Has the login page told us that it's ready? This is triggered by either | |
| 141 // all of the user images or the GAIA prompt being loaded, whichever comes | |
| 142 // first. | |
| 143 bool login_page_is_loaded_; | |
| 144 | |
| 145 // Should we emit the login-prompt-visible signal when the login page is | 146 // Should we emit the login-prompt-visible signal when the login page is |
| 146 // displayed? | 147 // displayed? |
| 147 bool should_emit_login_prompt_visible_; | 148 bool should_emit_login_prompt_visible_; |
| 148 | 149 |
| 149 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 150 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
| 150 }; | 151 }; |
| 151 | 152 |
| 152 } // namespace chromeos | 153 } // namespace chromeos |
| 153 | 154 |
| 154 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 155 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
| OLD | NEW |