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

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

Issue 680393002: Alt text for About UI product label (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 * displayed, false otherwise. 570 * displayed, false otherwise.
571 * @private 571 * @private
572 */ 572 */
573 updateChannelChangerContainerVisibility_: function(visible) { 573 updateChannelChangerContainerVisibility_: function(visible) {
574 if (this.isNewChannelSwitcherUI_()) { 574 if (this.isNewChannelSwitcherUI_()) {
575 $('channel-changer').hidden = true; 575 $('channel-changer').hidden = true;
576 return; 576 return;
577 } 577 }
578 $('channel-changer').hidden = !visible; 578 $('channel-changer').hidden = !visible;
579 }, 579 },
580
581 /**
582 * Sets the product label's alt text.
583 * @param {string} text The text to use for the image.
584 * @private
585 */
586 setProductLabelText_: function(text) {
587 $('product-label').setAttribute('alt', text);
588 },
580 }; 589 };
581 590
582 HelpPage.setUpdateStatus = function(status, message) { 591 HelpPage.setUpdateStatus = function(status, message) {
583 HelpPage.getInstance().setUpdateStatus_(status, message); 592 HelpPage.getInstance().setUpdateStatus_(status, message);
584 }; 593 };
585 594
586 HelpPage.setProgress = function(progress) { 595 HelpPage.setProgress = function(progress) {
587 HelpPage.getInstance().setProgress_(progress); 596 HelpPage.getInstance().setProgress_(progress);
588 }; 597 };
589 598
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 }; 648 };
640 649
641 HelpPage.setChannel = function(channel, isPowerwashAllowed) { 650 HelpPage.setChannel = function(channel, isPowerwashAllowed) {
642 HelpPage.getInstance().setChannel_(channel, isPowerwashAllowed); 651 HelpPage.getInstance().setChannel_(channel, isPowerwashAllowed);
643 }; 652 };
644 653
645 HelpPage.setBuildDate = function(buildDate) { 654 HelpPage.setBuildDate = function(buildDate) {
646 HelpPage.getInstance().setBuildDate_(buildDate); 655 HelpPage.getInstance().setBuildDate_(buildDate);
647 }; 656 };
648 657
658 HelpPage.setProductLabelText = function(text) {
659 HelpPage.getInstance().setProductLabelText_(text);
660 };
661
649 // Export 662 // Export
650 return { 663 return {
651 HelpPage: HelpPage 664 HelpPage: HelpPage
652 }; 665 };
653 }); 666 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698