Add a Dictation button UI
When experimental-accessibility-features is enabled, a button appears as
a status area widget. Its highlighted appearance is tied to dictation
being active, giving a visual indication of dictation listening in
addition to another way to activate the feature.
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ie2eedb8b5aa6a2252754b10da1ebc5ab052b3938
Reviewed-on: https://chromium-review.googlesource.com/1014391
Commit-Queue: Zach Helfinstein <[email protected]>
Reviewed-by: Mitsuru Oshima (OOO 4/30 - 5/9) <[email protected]>
Reviewed-by: David Tseng <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#555472}
diff --git a/ash/shell_observer.h b/ash/shell_observer.h
index 1139e64..a1be2d5 100644
--- a/ash/shell_observer.h
+++ b/ash/shell_observer.h
@@ -65,6 +65,12 @@
// Called after split view mode has ended.
virtual void OnSplitViewModeEnded() {}
+ // Called when dictation is activated.
+ virtual void OnDictationStarted() {}
+
+ // Called when dicatation is ended.
+ virtual void OnDictationEnded() {}
+
// Called when keyboard is activated/deactivated in |root_window|.
virtual void OnVirtualKeyboardStateChanged(bool activated,
aura::Window* root_window) {}