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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/host.js

Issue 924083004: Shorten Closure template notation from Array.<*> to Array<*> in cvox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 /** 5 /**
6 * @fileoverview Chrome-specific implementation of methods that differ 6 * @fileoverview Chrome-specific implementation of methods that differ
7 * depending on the host platform. 7 * depending on the host platform.
8 * 8 *
9 */ 9 */
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 cvox.ChromeVox.version = prefs['version']; 63 cvox.ChromeVox.version = prefs['version'];
64 64
65 cvox.ChromeVox.earcons.enabled = 65 cvox.ChromeVox.earcons.enabled =
66 /** @type {boolean} */(JSON.parse(prefs['earcons'])); 66 /** @type {boolean} */(JSON.parse(prefs['earcons']));
67 67
68 cvox.ChromeVox.typingEcho = 68 cvox.ChromeVox.typingEcho =
69 /** @type {number} */(JSON.parse(prefs['typingEcho'])); 69 /** @type {number} */(JSON.parse(prefs['typingEcho']));
70 70
71 if (prefs['position']) { 71 if (prefs['position']) {
72 cvox.ChromeVox.position = 72 cvox.ChromeVox.position =
73 /** @type {Object.<string, {x:number, y:number}>} */ ( 73 /** @type {Object<string, {x:number, y:number}>} */ (
74 JSON.parse(prefs['position'])); 74 JSON.parse(prefs['position']));
75 } 75 }
76 76
77 if (prefs['granularity'] != 'undefined') { 77 if (prefs['granularity'] != 'undefined') {
78 cvox.ChromeVox.navigationManager.setGranularity( 78 cvox.ChromeVox.navigationManager.setGranularity(
79 /** @type {number} */ (JSON.parse(prefs['granularity']))); 79 /** @type {number} */ (JSON.parse(prefs['granularity'])));
80 } 80 }
81 81
82 self.activateOrDeactivateChromeVox(prefs['active'] == 'true'); 82 self.activateOrDeactivateChromeVox(prefs['active'] == 'true');
83 self.activateOrDeactivateStickyMode(prefs['sticky'] == 'true'); 83 self.activateOrDeactivateStickyMode(prefs['sticky'] == 'true');
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 * @param {boolean} sticky Whether sticky mode should be active. 191 * @param {boolean} sticky Whether sticky mode should be active.
192 */ 192 */
193 cvox.ChromeHost.prototype.activateOrDeactivateStickyMode = function(sticky) { 193 cvox.ChromeHost.prototype.activateOrDeactivateStickyMode = function(sticky) {
194 cvox.ChromeVox.isStickyPrefOn = sticky; 194 cvox.ChromeVox.isStickyPrefOn = sticky;
195 }; 195 };
196 196
197 /** 197 /**
198 * The host constructor for Chrome. 198 * The host constructor for Chrome.
199 */ 199 */
200 cvox.HostFactory.hostConstructor = cvox.ChromeHost; 200 cvox.HostFactory.hostConstructor = cvox.ChromeHost;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698