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

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

Issue 2092743002: Revert of Make ChromeVox Next a setting in options page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/chromevox_state.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/chromevox_state.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/chromevox_state.js
index 372f8b5f5ce98a247a4220ab0099227e548c8d46..58208c3e4a67cd98c85c6e20b8db944234f4c90b 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/chromevox_state.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/chromevox_state.js
@@ -39,17 +39,6 @@
*/
ChromeVoxState.instance;
-/**
- * Holds the un-composite tts object.
- * @type {Object}
- */
-ChromeVoxState.backgroundTts;
-
-/**
- * @type {boolean}
- */
- ChromeVoxState.isReadingContinuously;
-
ChromeVoxState.prototype = {
/** @type {ChromeVoxMode} */
get mode() {
@@ -63,6 +52,20 @@
getMode: function() {
return ChromeVoxMode.NEXT;
},
+
+ /**
+ * Sets the current ChromeVox mode.
+ * @param {ChromeVoxMode} mode
+ * @param {boolean=} opt_injectClassic Injects ChromeVox classic into tabs;
+ * defaults to false.
+ */
+ setMode: goog.abstractMethod,
+
+ /**
+ * Refreshes the current mode based on a node.
+ * @param {!chrome.automation.AutomationNode} url
+ */
+ refreshMode: goog.abstractMethod,
/** @type {cursors.Range} */
get currentRange() {

Powered by Google App Engine
This is Rietveld 408576698