Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen_handler.cc

Issue 2700303002: cros: Unify oobe View/Actor naming to just View. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 30 matching lines...) Expand all
41 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance(); 41 ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
42 media::SoundsManager* manager = media::SoundsManager::Get(); 42 media::SoundsManager* manager = media::SoundsManager::Get();
43 manager->Initialize(SOUND_OBJECT_DELETE, 43 manager->Initialize(SOUND_OBJECT_DELETE,
44 bundle.GetRawDataResource(IDR_SOUND_OBJECT_DELETE_WAV)); 44 bundle.GetRawDataResource(IDR_SOUND_OBJECT_DELETE_WAV));
45 manager->Initialize(SOUND_CAMERA_SNAP, 45 manager->Initialize(SOUND_CAMERA_SNAP,
46 bundle.GetRawDataResource(IDR_SOUND_CAMERA_SNAP_WAV)); 46 bundle.GetRawDataResource(IDR_SOUND_CAMERA_SNAP_WAV));
47 } 47 }
48 48
49 SupervisedUserCreationScreenHandler::~SupervisedUserCreationScreenHandler() { 49 SupervisedUserCreationScreenHandler::~SupervisedUserCreationScreenHandler() {
50 if (delegate_) { 50 if (delegate_) {
51 delegate_->OnActorDestroyed(this); 51 delegate_->OnViewDestroyed(this);
52 } 52 }
53 } 53 }
54 54
55 void SupervisedUserCreationScreenHandler::DeclareLocalizedValues( 55 void SupervisedUserCreationScreenHandler::DeclareLocalizedValues(
56 ::login::LocalizedValuesBuilder* builder) { 56 ::login::LocalizedValuesBuilder* builder) {
57 builder->Add( 57 builder->Add(
58 "supervisedUserCreationFlowRetryButtonTitle", 58 "supervisedUserCreationFlowRetryButtonTitle",
59 IDS_CREATE_SUPERVISED_USER_CREATION_ERROR_RETRY_BUTTON_TITLE); 59 IDS_CREATE_SUPERVISED_USER_CREATION_ERROR_RETRY_BUTTON_TITLE);
60 builder->Add( 60 builder->Add(
61 "supervisedUserCreationFlowCancelButtonTitle", 61 "supervisedUserCreationFlowCancelButtonTitle",
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) { 467 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) {
468 CallJS("setCameraPresent", present); 468 CallJS("setCameraPresent", present);
469 } 469 }
470 470
471 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers( 471 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers(
472 const base::ListValue* users) { 472 const base::ListValue* users) {
473 CallJS("setExistingSupervisedUsers", *users); 473 CallJS("setExistingSupervisedUsers", *users);
474 } 474 }
475 475
476 } // namespace chromeos 476 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698