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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 // Returns current WebUI. | 64 // Returns current WebUI. |
65 content::WebUI* GetWebUI(); | 65 content::WebUI* GetWebUI(); |
66 | 66 |
67 // Returns current WebContents. | 67 // Returns current WebContents. |
68 content::WebContents* GetWebContents(); | 68 content::WebContents* GetWebContents(); |
69 | 69 |
70 // Opens proxy settings dialog. | 70 // Opens proxy settings dialog. |
71 void OpenProxySettings(); | 71 void OpenProxySettings(); |
72 | 72 |
| 73 // Called when WebUI is being shown after being initilized hidden. |
| 74 void OnPostponedShow(); |
| 75 |
| 76 void set_is_hidden(bool hidden) { is_hidden_ = hidden; } |
| 77 |
73 // Toggles status area visibility. | 78 // Toggles status area visibility. |
74 void SetStatusAreaVisible(bool visible); | 79 void SetStatusAreaVisible(bool visible); |
75 | 80 |
76 protected: | 81 protected: |
77 // Let non-login derived classes suppress emission of this signal. | 82 // Let non-login derived classes suppress emission of this signal. |
78 void set_should_emit_login_prompt_visible(bool emit) { | 83 void set_should_emit_login_prompt_visible(bool emit) { |
79 should_emit_login_prompt_visible_ = emit; | 84 should_emit_login_prompt_visible_ = emit; |
80 } | 85 } |
81 | 86 |
82 // Overridden from views::View: | 87 // Overridden from views::View: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 138 |
134 // Converts keyboard events on the WebContents to accelerators. | 139 // Converts keyboard events on the WebContents to accelerators. |
135 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 140 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
136 | 141 |
137 // Maps installed accelerators to OOBE webui accelerator identifiers. | 142 // Maps installed accelerators to OOBE webui accelerator identifiers. |
138 AccelMap accel_map_; | 143 AccelMap accel_map_; |
139 | 144 |
140 // Whether the host window is frozen. | 145 // Whether the host window is frozen. |
141 bool host_window_frozen_; | 146 bool host_window_frozen_; |
142 | 147 |
| 148 // True when WebUI is being initialized hidden. |
| 149 bool is_hidden_; |
| 150 |
| 151 // True when NOTIFICATION_LOGIN_WEBUI_VISIBLE notification has fired. |
| 152 bool login_visible_notification_fired_; |
| 153 |
| 154 // True is login-prompt-visible event has been already handled. |
| 155 bool login_prompt_visible_handled_; |
| 156 |
143 // Should we emit the login-prompt-visible signal when the login page is | 157 // Should we emit the login-prompt-visible signal when the login page is |
144 // displayed? | 158 // displayed? |
145 bool should_emit_login_prompt_visible_; | 159 bool should_emit_login_prompt_visible_; |
146 | 160 |
147 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); | 161 DISALLOW_COPY_AND_ASSIGN(WebUILoginView); |
148 }; | 162 }; |
149 | 163 |
150 } // namespace chromeos | 164 } // namespace chromeos |
151 | 165 |
152 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ | 166 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEBUI_LOGIN_VIEW_H_ |
OLD | NEW |