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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 1841393002: Hide ChromeVox Panel in full-screen mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shelf_on_login
Patch Set: No need to check window state Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 } 1202 }
1203 1203
1204 void AccessibilityManager::ActiveUserChanged(const AccountId& account_id) { 1204 void AccessibilityManager::ActiveUserChanged(const AccountId& account_id) {
1205 SetProfile(ProfileManager::GetActiveUserProfile()); 1205 SetProfile(ProfileManager::GetActiveUserProfile());
1206 } 1206 }
1207 1207
1208 void AccessibilityManager::OnAppTerminating() { 1208 void AccessibilityManager::OnAppTerminating() {
1209 session_state_observer_.reset(); 1209 session_state_observer_.reset();
1210 } 1210 }
1211 1211
1212 void AccessibilityManager::OnFullscreenStateChanged(bool is_fullscreen,
1213 aura::Window* root_window) {
1214 if (chromevox_panel_)
1215 chromevox_panel_->UpdateWidgetBounds();
1216 }
1217
1212 void AccessibilityManager::SetProfileForTest(Profile* profile) { 1218 void AccessibilityManager::SetProfileForTest(Profile* profile) {
1213 SetProfile(profile); 1219 SetProfile(profile);
1214 } 1220 }
1215 1221
1216 void AccessibilityManager::SetBrailleControllerForTest( 1222 void AccessibilityManager::SetBrailleControllerForTest(
1217 BrailleController* controller) { 1223 BrailleController* controller) {
1218 g_braille_controller_for_test = controller; 1224 g_braille_controller_for_test = controller;
1219 } 1225 }
1220 1226
1221 void AccessibilityManager::EnableSystemSounds(bool system_sounds_enabled) { 1227 void AccessibilityManager::EnableSystemSounds(bool system_sounds_enabled) {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 content::BrowserContext* context) { 1457 content::BrowserContext* context) {
1452 keyboard_listener_extension_id_ = id; 1458 keyboard_listener_extension_id_ = id;
1453 1459
1454 extensions::ExtensionRegistry* registry = 1460 extensions::ExtensionRegistry* registry =
1455 extensions::ExtensionRegistry::Get(context); 1461 extensions::ExtensionRegistry::Get(context);
1456 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) 1462 if (!extension_registry_observer_.IsObserving(registry) && !id.empty())
1457 extension_registry_observer_.Add(registry); 1463 extension_registry_observer_.Add(registry);
1458 } 1464 }
1459 1465
1460 } // namespace chromeos 1466 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_manager.h ('k') | chrome/browser/chromeos/accessibility/chromevox_panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698