OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // for cases when extension should be loaded in the background and it | 264 // for cases when extension should be loaded in the background and it |
265 // shouldn't grab the focus. |offline| is true when offline version of the | 265 // shouldn't grab the focus. |offline| is true when offline version of the |
266 // extension should be used. | 266 // extension should be used. |
267 void LoadAuthExtension(bool force, bool silent_load, bool offline); | 267 void LoadAuthExtension(bool force, bool silent_load, bool offline); |
268 | 268 |
269 // Updates authentication extension. Called when device settings that affect | 269 // Updates authentication extension. Called when device settings that affect |
270 // sign-in (allow BWSI and allow whitelist) are changed. | 270 // sign-in (allow BWSI and allow whitelist) are changed. |
271 void UpdateAuthExtension(); | 271 void UpdateAuthExtension(); |
272 void UpdateAddButtonStatus(); | 272 void UpdateAddButtonStatus(); |
273 | 273 |
| 274 // Fill |params| that are passed to JS.. |
| 275 void UpdateAuthParams(DictionaryValue* params); |
| 276 |
274 // Restore input focus to current user pod. | 277 // Restore input focus to current user pod. |
275 void RefocusCurrentPod(); | 278 void RefocusCurrentPod(); |
276 | 279 |
277 // WebUI message handlers. | 280 // WebUI message handlers. |
278 void HandleCompleteAuthentication(const std::string& email, | 281 void HandleCompleteAuthentication(const std::string& email, |
279 const std::string& password, | 282 const std::string& password, |
280 const std::string& auth_code); | 283 const std::string& auth_code); |
281 void HandleCompleteLogin(const std::string& typed_email, | 284 void HandleCompleteLogin(const std::string& typed_email, |
282 const std::string& password); | 285 const std::string& password); |
283 void HandleGetUsers(); | 286 void HandleGetUsers(); |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 449 |
447 // Testing helper, specifies new value for gaia url. | 450 // Testing helper, specifies new value for gaia url. |
448 GURL gaia_url_for_test_; | 451 GURL gaia_url_for_test_; |
449 | 452 |
450 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 453 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
451 }; | 454 }; |
452 | 455 |
453 } // namespace chromeos | 456 } // namespace chromeos |
454 | 457 |
455 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 458 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |