| OLD | NEW |
| 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 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1464 | 1464 |
| 1465 if (!chromevox_panel_) { | 1465 if (!chromevox_panel_) { |
| 1466 chromevox_panel_ = new ChromeVoxPanel( | 1466 chromevox_panel_ = new ChromeVoxPanel( |
| 1467 profile_, | 1467 profile_, |
| 1468 session_manager::SessionManager::Get()->IsUserSessionBlocked()); | 1468 session_manager::SessionManager::Get()->IsUserSessionBlocked()); |
| 1469 chromevox_panel_widget_observer_.reset( | 1469 chromevox_panel_widget_observer_.reset( |
| 1470 new ChromeVoxPanelWidgetObserver(chromevox_panel_->GetWidget(), this)); | 1470 new ChromeVoxPanelWidgetObserver(chromevox_panel_->GetWidget(), this)); |
| 1471 } | 1471 } |
| 1472 | 1472 |
| 1473 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 1473 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1474 switches::kEnableDefaultMediaSession)) { | 1474 switches::kEnableAudioFocus)) { |
| 1475 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 1475 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 1476 switches::kEnableDefaultMediaSession); | 1476 switches::kEnableAudioFocus); |
| 1477 } | 1477 } |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 void AccessibilityManager::PostUnloadChromeVox() { | 1480 void AccessibilityManager::PostUnloadChromeVox() { |
| 1481 // Do any teardown work needed immediately after ChromeVox actually unloads. | 1481 // Do any teardown work needed immediately after ChromeVox actually unloads. |
| 1482 PlayEarcon(SOUND_SPOKEN_FEEDBACK_DISABLED, PlaySoundOption::ALWAYS); | 1482 PlayEarcon(SOUND_SPOKEN_FEEDBACK_DISABLED, PlaySoundOption::ALWAYS); |
| 1483 // Clear the accessibility focus ring. | 1483 // Clear the accessibility focus ring. |
| 1484 AccessibilityFocusRingController::GetInstance()->SetFocusRing( | 1484 AccessibilityFocusRingController::GetInstance()->SetFocusRing( |
| 1485 std::vector<gfx::Rect>(), | 1485 std::vector<gfx::Rect>(), |
| 1486 AccessibilityFocusRingController::PERSIST_FOCUS_RING); | 1486 AccessibilityFocusRingController::PERSIST_FOCUS_RING); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1536 content::BrowserContext* context) { | 1536 content::BrowserContext* context) { |
| 1537 keyboard_listener_extension_id_ = id; | 1537 keyboard_listener_extension_id_ = id; |
| 1538 | 1538 |
| 1539 extensions::ExtensionRegistry* registry = | 1539 extensions::ExtensionRegistry* registry = |
| 1540 extensions::ExtensionRegistry::Get(context); | 1540 extensions::ExtensionRegistry::Get(context); |
| 1541 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) | 1541 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) |
| 1542 extension_registry_observer_.Add(registry); | 1542 extension_registry_observer_.Add(registry); |
| 1543 } | 1543 } |
| 1544 | 1544 |
| 1545 } // namespace chromeos | 1545 } // namespace chromeos |
| OLD | NEW |