Hide ChromeVox Panel in full-screen mode.

Makes the ChromeVox Panel track when entering and leaving full-screen mode
and hides the panel when in full-screen mode, unless the panel is active.

To activate the ChromeVox Panel using the keyboard:
1. Enable spoken feedback with Ctrl+Alt+Z
2. Place focus inside a webpage
3. Press Search+Shift+Q+Q (press Q twice while holding down those keys)
   to enable the ChromeVox Next beta
4. Now pressing Search+Period will open the ChromeVox menus and Esc will
   close them. Those still function when in full-screen mode.

BUG=587033

Review URL: https://codereview.chromium.org/1841393002

Cr-Commit-Position: refs/heads/master@{#384295}
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
index d46a28f1..4dee8cc 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -1209,6 +1209,12 @@
   session_state_observer_.reset();
 }
 
+void AccessibilityManager::OnFullscreenStateChanged(bool is_fullscreen,
+                                                    aura::Window* root_window) {
+  if (chromevox_panel_)
+    chromevox_panel_->UpdateWidgetBounds();
+}
+
 void AccessibilityManager::SetProfileForTest(Profile* profile) {
   SetProfile(profile);
 }