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

Side by Side Diff: components/supervised_user_error_page/resources/supervised_user_block_interstitial.js

Issue 2479413004: Supervised User interstitial: Update strings to be more child-friendly (Closed)
Patch Set: final? Created 4 years, 1 month 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 function sendCommand(cmd) { 5 function sendCommand(cmd) {
6 window.domAutomationController.setAutomationId(1); 6 window.domAutomationController.setAutomationId(1);
7 window.domAutomationController.send(cmd); 7 window.domAutomationController.send(cmd);
8 } 8 }
9 9
10 function makeImageSet(url1x, url2x) { 10 function makeImageSet(url1x, url2x) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 $('feedback').hidden = true; 79 $('feedback').hidden = true;
80 } 80 }
81 } 81 }
82 82
83 /** 83 /**
84 * Updates the interstitial to show that the request failed or was sent. 84 * Updates the interstitial to show that the request failed or was sent.
85 * @param {boolean} isSuccessful Whether the request was successful or not. 85 * @param {boolean} isSuccessful Whether the request was successful or not.
86 */ 86 */
87 function setRequestStatus(isSuccessful) { 87 function setRequestStatus(isSuccessful) {
88 console.log('setRequestStatus(' + isSuccessful +')'); 88 console.log('setRequestStatus(' + isSuccessful +')');
89 $('block-page-header').hidden = true;
89 $('block-page-message').hidden = true; 90 $('block-page-message').hidden = true;
90 if (isSuccessful) { 91 if (isSuccessful) {
91 $('request-failed-message').hidden = true; 92 $('request-failed-message').hidden = true;
92 $('request-sent-message').hidden = false; 93 $('request-sent-message').hidden = false;
93 $('show-details-link').hidden = true; 94 $('show-details-link').hidden = true;
94 $('hide-details-link').hidden = true; 95 $('hide-details-link').hidden = true;
95 $('details').hidden = true; 96 $('details').hidden = true;
96 $('back-button').hidden = !window.domAutomationController; 97 $('back-button').hidden = !window.domAutomationController;
97 $('request-access-button').hidden = true; 98 $('request-access-button').hidden = true;
98 } else { 99 } else {
99 $('request-failed-message').hidden = false; 100 $('request-failed-message').hidden = false;
100 $('request-access-button').hidden = false; 101 $('request-access-button').hidden = false;
101 } 102 }
102 } 103 }
103 104
104 document.addEventListener('DOMContentLoaded', initialize); 105 document.addEventListener('DOMContentLoaded', initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698