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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 11550010: Remove partial magnifier from settings page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 9
10 // 10 //
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 $('accessibility-spoken-feedback-check').onchange = function(event) { 398 $('accessibility-spoken-feedback-check').onchange = function(event) {
399 chrome.send('spokenFeedbackChange', 399 chrome.send('spokenFeedbackChange',
400 [$('accessibility-spoken-feedback-check').checked]); 400 [$('accessibility-spoken-feedback-check').checked]);
401 }; 401 };
402 402
403 $('accessibility-high-contrast-check').onchange = function(event) { 403 $('accessibility-high-contrast-check').onchange = function(event) {
404 chrome.send('highContrastChange', 404 chrome.send('highContrastChange',
405 [$('accessibility-high-contrast-check').checked]); 405 [$('accessibility-high-contrast-check').checked]);
406 }; 406 };
407 407
408 $('accessibility-screen-magnifier-type').onchange = function(event) { 408 $('accessibility-screen-magnifier-check').onchange = function(event) {
409 chrome.send('screenMagnifierChange', 409 var checked = $('accessibility-screen-magnifier-check').checked;
410 [$('accessibility-screen-magnifier-type').value]); 410 chrome.send('screenMagnifierChange', [checked ? 'full' : '']);
411 }; 411 };
412 } 412 }
413 413
414 // Display management section (CrOS only). 414 // Display management section (CrOS only).
415 if (cr.isChromeOS) { 415 if (cr.isChromeOS) {
416 $('display-options').onclick = function(event) { 416 $('display-options').onclick = function(event) {
417 OptionsPage.navigateToPage('display'); 417 OptionsPage.navigateToPage('display');
418 chrome.send('coreOptionsUserMetricsAction', 418 chrome.send('coreOptionsUserMetricsAction',
419 ['Options_Display']); 419 ['Options_Display']);
420 }; 420 };
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1179
1180 /** 1180 /**
1181 * Set the initial state of the high contrast checkbox. 1181 * Set the initial state of the high contrast checkbox.
1182 * @private 1182 * @private
1183 */ 1183 */
1184 setHighContrastCheckboxState_: function(checked) { 1184 setHighContrastCheckboxState_: function(checked) {
1185 $('accessibility-high-contrast-check').checked = checked; 1185 $('accessibility-high-contrast-check').checked = checked;
1186 }, 1186 },
1187 1187
1188 /** 1188 /**
1189 * Set the initial state of the screen magnifier dropdown. 1189 * Set the initial state of the screen magnifier dropdown.
Dan Beam 2012/12/12 21:24:11 * @param {string} type Explain the type here.
yoshiki 2012/12/13 02:40:26 Done.
1190 * @private 1190 * @private
1191 */ 1191 */
1192 setMagnifierTypeState_: function(type) { 1192 setMagnifierTypeState_: function(type) {
1193 $('accessibility-screen-magnifier-type').value = type; 1193 $('accessibility-screen-magnifier-check').checked = (type != '');
1194 }, 1194 },
1195 1195
1196 /** 1196 /**
1197 * Set the initial state of the virtual keyboard checkbox. 1197 * Set the initial state of the virtual keyboard checkbox.
1198 * @private 1198 * @private
1199 */ 1199 */
1200 setVirtualKeyboardCheckboxState_: function(checked) { 1200 setVirtualKeyboardCheckboxState_: function(checked) {
1201 // TODO(zork): Update UI 1201 // TODO(zork): Update UI
1202 }, 1202 },
1203 1203
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 BrowserOptions.getLoggedInUsername = function() { 1368 BrowserOptions.getLoggedInUsername = function() {
1369 return BrowserOptions.getInstance().username_; 1369 return BrowserOptions.getInstance().username_;
1370 }; 1370 };
1371 } 1371 }
1372 1372
1373 // Export 1373 // Export
1374 return { 1374 return {
1375 BrowserOptions: BrowserOptions 1375 BrowserOptions: BrowserOptions
1376 }; 1376 };
1377 }); 1377 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698