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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/chromevox_state.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 An interface for querying and modifying the global 6 * @fileoverview An interface for querying and modifying the global
7 * ChromeVox state, to avoid direct dependencies on the Background 7 * ChromeVox state, to avoid direct dependencies on the Background
8 * object and to facilitate mocking for tests. 8 * object and to facilitate mocking for tests.
9 */ 9 */
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ChromeVoxState.instance; 56 ChromeVoxState.instance;
57 57
58 /** 58 /**
59 * Holds the un-composite tts object. 59 * Holds the un-composite tts object.
60 * @type {Object} 60 * @type {Object}
61 */ 61 */
62 ChromeVoxState.backgroundTts; 62 ChromeVoxState.backgroundTts;
63 63
64 /** 64 /**
65 * @type {boolean} 65 * @type {boolean}
66 */ 66 */
67 ChromeVoxState.isReadingContinuously; 67 ChromeVoxState.isReadingContinuously;
68 68
69 ChromeVoxState.prototype = { 69 ChromeVoxState.prototype = {
70 /** @type {ChromeVoxMode} */ 70 /** @type {ChromeVoxMode} */
71 get mode() { 71 get mode() {
72 return this.getMode(); 72 return this.getMode();
73 }, 73 },
74 74
75 /** 75 /**
76 * @return {ChromeVoxMode} The current mode. 76 * @return {ChromeVoxMode} The current mode.
77 * @protected 77 * @protected
(...skipping 23 matching lines...) Expand all
101 101
102 /** @type {!Array<ChromeVoxStateObserver>} */ 102 /** @type {!Array<ChromeVoxStateObserver>} */
103 ChromeVoxState.observers = []; 103 ChromeVoxState.observers = [];
104 104
105 /** 105 /**
106 * @param {ChromeVoxStateObserver} observer 106 * @param {ChromeVoxStateObserver} observer
107 */ 107 */
108 ChromeVoxState.addObserver = function(observer) { 108 ChromeVoxState.addObserver = function(observer) {
109 this.observers.push(observer); 109 this.observers.push(observer);
110 }; 110 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698