Commit 7b856d04 authored by David Tseng's avatar David Tseng Committed by Commit Bot

Remove unused field in Select to Speak

Change-Id: I39b0b7e4ec10430f2162390db923cd58b909f0e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2042034Reviewed-by: default avatarKatie Dektar <katie@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#739235}
parent 8678f216
......@@ -54,10 +54,6 @@ class SelectToSpeak {
/** @private {number|undefined} */
this.intervalRef_;
// TODO(katie): Maybe remove/replace.
/** @private {boolean|undefined} */
this.trackingMouse_;
chrome.automation.getDesktop(function(desktop) {
this.desktop_ = desktop;
......@@ -792,15 +788,6 @@ class SelectToSpeak {
*/
onStateChanged_(state) {
if (this.state_ != state) {
if (this.state_ == SelectToSpeakState.SELECTING &&
state == SelectToSpeakState.INACTIVE && this.trackingMouse_) {
// If we are tracking the mouse actively, then we have requested tts
// to stop speaking just before mouse tracking began, so we
// shouldn't transition into the inactive state now: The call to stop
// speaking created an async 'cancel' event from the TTS engine that
// is now resulting in an attempt to set the state inactive.
return;
}
if (state == SelectToSpeakState.INACTIVE) {
this.clearFocusRingAndNode_();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment