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

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

Issue 10837158: mac: Delete more 10.5-only code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: avi Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 src="../uber/uber_utils.js"> 5 <include src="../uber/uber_utils.js">
6 6
7 cr.define('help', function() { 7 cr.define('help', function() {
8 /** 8 /**
9 * Encapsulated handling of the help page. 9 * Encapsulated handling of the help page.
10 */ 10 */
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 $('promote').hidden = false; 147 $('promote').hidden = false;
148 } else if (state == 'disabled') { 148 } else if (state == 'disabled') {
149 $('promote').disabled = true; 149 $('promote').disabled = true;
150 $('promote').hidden = false; 150 $('promote').hidden = false;
151 } 151 }
152 }, 152 },
153 153
154 /** 154 /**
155 * @private 155 * @private
156 */ 156 */
157 setObsoleteOS_: function(obsolete) {
158 if (cr.isMac) {
159 var updateObsoleteOSContainer = $('update-obsolete-os-container');
160 if (updateObsoleteOSContainer) {
161 updateObsoleteOSContainer.hidden = !obsolete;
162 }
163 }
164 },
165
166 /**
167 * @private
168 */
169 setOSVersion_: function(version) { 157 setOSVersion_: function(version) {
170 if (!cr.isChromeOS) 158 if (!cr.isChromeOS)
171 console.error('OS version unsupported on non-CrOS'); 159 console.error('OS version unsupported on non-CrOS');
172 160
173 $('os-version').parentNode.hidden = (version == ''); 161 $('os-version').parentNode.hidden = (version == '');
174 $('os-version').textContent = version; 162 $('os-version').textContent = version;
175 }, 163 },
176 164
177 /** 165 /**
178 * @private 166 * @private
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 HelpPage: HelpPage 277 HelpPage: HelpPage
290 }; 278 };
291 }); 279 });
292 280
293 /** 281 /**
294 * onload listener to initialize the HelpPage. 282 * onload listener to initialize the HelpPage.
295 */ 283 */
296 window.onload = function() { 284 window.onload = function() {
297 help.HelpPage.getInstance().initialize(); 285 help.HelpPage.getInstance().initialize();
298 }; 286 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698