| 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 #include "chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen
_handler.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen
_handler.h" |
| 6 | 6 |
| 7 #include "ash/audio/sounds.h" | 7 #include "ash/audio/sounds.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
| 11 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_flow
.h" | 11 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_flow
.h" |
| 12 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" | 12 #include "chrome/browser/chromeos/login/users/chrome_user_manager.h" |
| 13 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" | 13 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
| 14 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" | 14 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" |
| 15 #include "chrome/browser/chromeos/settings/cros_settings.h" | 15 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "chrome/grit/generated_resources.h" |
| 18 #include "chromeos/audio/chromeos_sounds.h" | 19 #include "chromeos/audio/chromeos_sounds.h" |
| 19 #include "components/user_manager/user_manager.h" | 20 #include "components/user_manager/user_manager.h" |
| 20 #include "components/user_manager/user_type.h" | 21 #include "components/user_manager/user_type.h" |
| 21 #include "google_apis/gaia/gaia_auth_util.h" | 22 #include "google_apis/gaia/gaia_auth_util.h" |
| 22 #include "grit/browser_resources.h" | 23 #include "grit/browser_resources.h" |
| 23 #include "grit/generated_resources.h" | |
| 24 #include "net/base/data_url.h" | 24 #include "net/base/data_url.h" |
| 25 #include "net/base/escape.h" | 25 #include "net/base/escape.h" |
| 26 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
| 27 #include "ui/base/resource/resource_bundle.h" | 27 #include "ui/base/resource/resource_bundle.h" |
| 28 | 28 |
| 29 const char kJsScreenPath[] = "login.SupervisedUserCreationScreen"; | 29 const char kJsScreenPath[] = "login.SupervisedUserCreationScreen"; |
| 30 | 30 |
| 31 namespace chromeos { | 31 namespace chromeos { |
| 32 | 32 |
| 33 SupervisedUserCreationScreenHandler::SupervisedUserCreationScreenHandler() | 33 SupervisedUserCreationScreenHandler::SupervisedUserCreationScreenHandler() |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) { | 454 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) { |
| 455 CallJS("setCameraPresent", present); | 455 CallJS("setCameraPresent", present); |
| 456 } | 456 } |
| 457 | 457 |
| 458 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers( | 458 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers( |
| 459 const base::ListValue* users) { | 459 const base::ListValue* users) { |
| 460 CallJS("setExistingSupervisedUsers", *users); | 460 CallJS("setExistingSupervisedUsers", *users); |
| 461 } | 461 } |
| 462 | 462 |
| 463 } // namespace chromeos | 463 } // namespace chromeos |
| OLD | NEW |