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

Unified Diff: chrome/browser/chromeos/accessibility/speech_monitor.h

Issue 2698273002: Select-to-speak: Stop speech when tapping Search or Control (Closed)
Patch Set: Trigger on tap and release of Search or Control Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/accessibility/speech_monitor.h
diff --git a/chrome/browser/chromeos/accessibility/speech_monitor.h b/chrome/browser/chromeos/accessibility/speech_monitor.h
index 2c8522f937a0d81c8c0897c5304711e55d52f2ff..86c42627738fdbf2a2a2a07af7f1d56cf03b342a 100644
--- a/chrome/browser/chromeos/accessibility/speech_monitor.h
+++ b/chrome/browser/chromeos/accessibility/speech_monitor.h
@@ -30,6 +30,10 @@ class SpeechMonitor : public TtsPlatformImpl {
bool SkipChromeVoxEnabledMessage();
bool SkipChromeVoxMessage(const std::string& message);
+ // Returns true if StopSpeaking() was called on TtsController.
+ bool DidStop();
+
+ private:
// TtsPlatformImpl implementation.
bool PlatformImplAvailable() override;
bool Speak(int utterance_id,
@@ -48,9 +52,9 @@ class SpeechMonitor : public TtsPlatformImpl {
void WillSpeakUtteranceWithVoice(const Utterance* utterance,
const VoiceData& voice_data) override;
- private:
scoped_refptr<content::MessageLoopRunner> loop_runner_;
std::deque<std::string> utterance_queue_;
+ bool did_stop_ = false;
DISALLOW_COPY_AND_ASSIGN(SpeechMonitor);
};

Powered by Google App Engine
This is Rietveld 408576698