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

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

Issue 1519883003: 1) Add basic configuration (network connection, language, keyboard layout, timezone) setup page. 2)… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/host_pairing_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/host_pairing_screen_handler.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 8 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
9 #include "components/login/localized_values_builder.h" 9 #include "components/login/localized_values_builder.h"
10 #include "grit/generated_resources.h" 10 #include "grit/generated_resources.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 builder->Add(prefix + "updatingText", IDS_PAIRING_HOST_UPDATING_TEXT); 67 builder->Add(prefix + "updatingText", IDS_PAIRING_HOST_UPDATING_TEXT);
68 builder->Add(prefix + "enrollTitle", IDS_PAIRING_ENROLL_TITLE); 68 builder->Add(prefix + "enrollTitle", IDS_PAIRING_ENROLL_TITLE);
69 builder->Add(prefix + "enrollingTitle", 69 builder->Add(prefix + "enrollingTitle",
70 IDS_PAIRING_ENROLLMENT_IN_PROGRESS); 70 IDS_PAIRING_ENROLLMENT_IN_PROGRESS);
71 builder->Add(prefix + "doneTitle", IDS_PAIRING_HOST_DONE_TITLE); 71 builder->Add(prefix + "doneTitle", IDS_PAIRING_HOST_DONE_TITLE);
72 builder->Add(prefix + "doneText", IDS_PAIRING_HOST_DONE_TEXT); 72 builder->Add(prefix + "doneText", IDS_PAIRING_HOST_DONE_TEXT);
73 builder->Add(prefix + "enrollmentErrorTitle", 73 builder->Add(prefix + "enrollmentErrorTitle",
74 IDS_PAIRING_ENROLLMENT_ERROR_TITLE); 74 IDS_PAIRING_ENROLLMENT_ERROR_TITLE);
75 builder->Add(prefix + "errorNeedsRestart", 75 builder->Add(prefix + "errorNeedsRestart",
76 IDS_PAIRING_HOST_EROLLMENT_ERROR_NEEDS_RESTART); 76 IDS_PAIRING_HOST_EROLLMENT_ERROR_NEEDS_RESTART);
77 builder->Add(prefix + "setupBasicConfigTitle",
78 IDS_HOST_SETUP_BASIC_CONFIGURATION_TITLE);
79 builder->Add(prefix + "setupNetworkErrorTitle",
80 IDS_HOST_SETUP_NETWORK_ERROR_TITLE);
77 } 81 }
78 82
79 void HostPairingScreenHandler::RegisterMessages() { 83 void HostPairingScreenHandler::RegisterMessages() {
80 AddPrefixedCallback(kCallbackContextReady, 84 AddPrefixedCallback(kCallbackContextReady,
81 &HostPairingScreenHandler::HandleContextReady); 85 &HostPairingScreenHandler::HandleContextReady);
82 } 86 }
83 87
84 void HostPairingScreenHandler::Show() { 88 void HostPairingScreenHandler::Show() {
85 if (!page_is_ready()) { 89 if (!page_is_ready()) {
86 show_on_init_ = true; 90 show_on_init_ = true;
(...skipping 14 matching lines...) Expand all
101 void HostPairingScreenHandler::OnContextChanged( 105 void HostPairingScreenHandler::OnContextChanged(
102 const base::DictionaryValue& diff) { 106 const base::DictionaryValue& diff) {
103 if (!js_context_ready_) { 107 if (!js_context_ready_) {
104 context_cache_.ApplyChanges(diff, NULL); 108 context_cache_.ApplyChanges(diff, NULL);
105 return; 109 return;
106 } 110 }
107 CallJS(kMethodContextChanged, diff); 111 CallJS(kMethodContextChanged, diff);
108 } 112 }
109 113
110 } // namespace chromeos 114 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698