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

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

Issue 2871583004: Rename --enable-default-media-session to --enable-audio-focus. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include <memory> 10 #include <memory>
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/flag_descriptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698