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 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 builder->Add("signingIn", IDS_LOGIN_POD_SIGNING_IN); | 358 builder->Add("signingIn", IDS_LOGIN_POD_SIGNING_IN); |
359 builder->Add("podMenuButtonAccessibleName", | 359 builder->Add("podMenuButtonAccessibleName", |
360 IDS_LOGIN_POD_MENU_BUTTON_ACCESSIBLE_NAME); | 360 IDS_LOGIN_POD_MENU_BUTTON_ACCESSIBLE_NAME); |
361 builder->Add("podMenuRemoveItemAccessibleName", | 361 builder->Add("podMenuRemoveItemAccessibleName", |
362 IDS_LOGIN_POD_MENU_REMOVE_ITEM_ACCESSIBLE_NAME); | 362 IDS_LOGIN_POD_MENU_REMOVE_ITEM_ACCESSIBLE_NAME); |
363 builder->Add("passwordFieldAccessibleName", | 363 builder->Add("passwordFieldAccessibleName", |
364 IDS_LOGIN_POD_PASSWORD_FIELD_ACCESSIBLE_NAME); | 364 IDS_LOGIN_POD_PASSWORD_FIELD_ACCESSIBLE_NAME); |
365 builder->Add("signedIn", IDS_SCREEN_LOCK_ACTIVE_USER); | 365 builder->Add("signedIn", IDS_SCREEN_LOCK_ACTIVE_USER); |
366 builder->Add("signinButton", IDS_LOGIN_BUTTON); | 366 builder->Add("signinButton", IDS_LOGIN_BUTTON); |
367 builder->Add("launchAppButton", IDS_LAUNCH_APP_BUTTON); | 367 builder->Add("launchAppButton", IDS_LAUNCH_APP_BUTTON); |
| 368 builder->Add("restart", IDS_RESTART_BUTTON); |
368 builder->Add("shutDown", IDS_SHUTDOWN_BUTTON); | 369 builder->Add("shutDown", IDS_SHUTDOWN_BUTTON); |
369 builder->Add("addUser", IDS_ADD_USER_BUTTON); | 370 builder->Add("addUser", IDS_ADD_USER_BUTTON); |
370 builder->Add("browseAsGuest", IDS_GO_INCOGNITO_BUTTON); | 371 builder->Add("browseAsGuest", IDS_GO_INCOGNITO_BUTTON); |
371 builder->Add("cancel", IDS_CANCEL); | 372 builder->Add("cancel", IDS_CANCEL); |
372 builder->Add("signOutUser", IDS_SCREEN_LOCK_SIGN_OUT); | 373 builder->Add("signOutUser", IDS_SCREEN_LOCK_SIGN_OUT); |
373 builder->Add("offlineLogin", IDS_OFFLINE_LOGIN_HTML); | 374 builder->Add("offlineLogin", IDS_OFFLINE_LOGIN_HTML); |
374 builder->Add("ownerUserPattern", IDS_LOGIN_POD_OWNER_USER); | 375 builder->Add("ownerUserPattern", IDS_LOGIN_POD_OWNER_USER); |
375 builder->Add("removeUser", IDS_LOGIN_POD_REMOVE_USER); | 376 builder->Add("removeUser", IDS_LOGIN_POD_REMOVE_USER); |
376 builder->Add("errorTpmFailureTitle", IDS_LOGIN_ERROR_TPM_FAILURE_TITLE); | 377 builder->Add("errorTpmFailureTitle", IDS_LOGIN_ERROR_TPM_FAILURE_TITLE); |
377 builder->Add("errorTpmFailureReboot", IDS_LOGIN_ERROR_TPM_FAILURE_REBOOT); | 378 builder->Add("errorTpmFailureReboot", IDS_LOGIN_ERROR_TPM_FAILURE_REBOOT); |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 return gaia_screen_handler_->frame_error(); | 1382 return gaia_screen_handler_->frame_error(); |
1382 } | 1383 } |
1383 | 1384 |
1384 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { | 1385 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { |
1385 caps_lock_enabled_ = enabled; | 1386 caps_lock_enabled_ = enabled; |
1386 if (page_is_ready()) | 1387 if (page_is_ready()) |
1387 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); | 1388 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); |
1388 } | 1389 } |
1389 | 1390 |
1390 } // namespace chromeos | 1391 } // namespace chromeos |
OLD | NEW |