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

Side by Side Diff: chrome/browser/resources/help/help_page.js

Issue 2081873002: Incorporate comments in Dbus code and add Eol icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate comments from UI review: Changed vector icons and UI strings. Created 4 years, 5 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 cr.define('help', function() { 5 cr.define('help', function() {
6 var Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * Encapsulated handling of the About page. Called 'help' internally to avoid 10 * Encapsulated handling of the About page. Called 'help' internally to avoid
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 eolMessage_: null, 77 eolMessage_: null,
78 78
79 /** @override */ 79 /** @override */
80 initializePage: function() { 80 initializePage: function() {
81 Page.prototype.initializePage.call(this); 81 Page.prototype.initializePage.call(this);
82 82
83 $('product-license').innerHTML = loadTimeData.getString('productLicense'); 83 $('product-license').innerHTML = loadTimeData.getString('productLicense');
84 if (cr.isChromeOS) { 84 if (cr.isChromeOS) {
85 $('product-os-license').innerHTML = 85 $('product-os-license').innerHTML =
86 loadTimeData.getString('productOsLicense'); 86 loadTimeData.getString('productOsLicense');
87 $('eol-learnMore').innerHTML = loadTimeData.getString('eolLearnMore');
87 } 88 }
88 89
89 var productTOS = $('product-tos'); 90 var productTOS = $('product-tos');
90 if (productTOS) 91 if (productTOS)
91 productTOS.innerHTML = loadTimeData.getString('productTOS'); 92 productTOS.innerHTML = loadTimeData.getString('productTOS');
92 93
93 $('get-help').onclick = function() { 94 $('get-help').onclick = function() {
94 chrome.send('openHelpPage'); 95 chrome.send('openHelpPage');
95 }; 96 };
96 <if expr="_google_chrome"> 97 <if expr="_google_chrome">
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 this.setUpdateImage_('failed'); 392 this.setUpdateImage_('failed');
392 $('update-status-message').innerHTML = message; 393 $('update-status-message').innerHTML = message;
393 } else if (status == 'disabled_by_admin') { 394 } else if (status == 'disabled_by_admin') {
394 // This is the general behavior for non-chromeos. 395 // This is the general behavior for non-chromeos.
395 this.setUpdateImage_('disabled-by-admin'); 396 this.setUpdateImage_('disabled-by-admin');
396 $('update-status-message').innerHTML = message; 397 $('update-status-message').innerHTML = message;
397 } 398 }
398 399
399 // Show EndofLife Strings if applicable 400 // Show EndofLife Strings if applicable
400 if (eolStatus == 'device_supported') { 401 if (eolStatus == 'device_supported') {
401 $('eol-message').hidden = true; 402 $('eol-status-container').hidden = true;
402 } else if (eolStatus == 'device_endoflife') { 403 } else if (eolStatus == 'device_endoflife') {
403 $('eol-message').innerHTML = eolMessage; 404 $('eol-message').innerHTML = eolMessage;
404 $('eol-message').hidden = false; 405 $('eol-status-container').hidden = false;
405 } 406 }
406 407
407 408
408 if (cr.isChromeOS) { 409 if (cr.isChromeOS) {
409 $('change-channel').disabled = !this.canChangeChannel_ || 410 $('change-channel').disabled = !this.canChangeChannel_ ||
410 status == 'nearly_updated'; 411 status == 'nearly_updated';
411 $('channel-change-disallowed-icon').hidden = this.canChangeChannel_; 412 $('channel-change-disallowed-icon').hidden = this.canChangeChannel_;
412 } 413 }
413 414
414 // Following invariant must be established at the end of this function: 415 // Following invariant must be established at the end of this function:
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 HelpPage.updateEolMessage = function(eolStatus, eolMessage) { 774 HelpPage.updateEolMessage = function(eolStatus, eolMessage) {
774 assert(cr.isChromeOS); 775 assert(cr.isChromeOS);
775 HelpPage.getInstance().updateEolMessage_(eolStatus, eolMessage); 776 HelpPage.getInstance().updateEolMessage_(eolStatus, eolMessage);
776 }; 777 };
777 778
778 // Export 779 // Export
779 return { 780 return {
780 HelpPage: HelpPage 781 HelpPage: HelpPage
781 }; 782 };
782 }); 783 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698