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.cc

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
« no previous file with comments | « chrome/browser/chromeos/accessibility/speech_monitor.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/speech_monitor.cc
diff --git a/chrome/browser/chromeos/accessibility/speech_monitor.cc b/chrome/browser/chromeos/accessibility/speech_monitor.cc
index 9d83fa54fff7ae41a703d5d56c8a90df40c0827e..ff89f83228e0cea85d39ef2afc6473e8e80107ad 100644
--- a/chrome/browser/chromeos/accessibility/speech_monitor.cc
+++ b/chrome/browser/chromeos/accessibility/speech_monitor.cc
@@ -36,6 +36,10 @@ bool SpeechMonitor::SkipChromeVoxEnabledMessage() {
return SkipChromeVoxMessage(kChromeVoxEnabledMessage);
}
+bool SpeechMonitor::DidStop() {
+ return did_stop_;
+}
+
bool SpeechMonitor::SkipChromeVoxMessage(const std::string& message) {
while (true) {
if (utterance_queue_.empty()) {
@@ -70,6 +74,7 @@ bool SpeechMonitor::Speak(
}
bool SpeechMonitor::StopSpeaking() {
+ did_stop_ = true;
return true;
}
« no previous file with comments | « chrome/browser/chromeos/accessibility/speech_monitor.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698