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

Side by Side Diff: ash/mus/accessibility_delegate_mus.cc

Issue 2154523002: Move AccessibilityDelegate ownership to ash::WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setmediadelegate
Patch Set: fix mash_unittests Created 4 years, 5 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 | « ash/mus/accessibility_delegate_mus.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ash/mus/accessibility_delegate_mus.h"
6
7 #include "services/shell/public/cpp/connector.h"
8
9 namespace ash {
10
11 AccessibilityDelegateMus::AccessibilityDelegateMus(shell::Connector* connector)
12 : connector_(connector) {}
13
14 AccessibilityDelegateMus::~AccessibilityDelegateMus() {}
15
16 ui::mojom::AccessibilityManager*
17 AccessibilityDelegateMus::GetAccessibilityManager() {
18 if (!accessibility_manager_ptr_.is_bound())
19 connector_->ConnectToInterface("mojo:ui", &accessibility_manager_ptr_);
20 return accessibility_manager_ptr_.get();
21 }
22
23 void AccessibilityDelegateMus::ToggleHighContrast() {
24 DefaultAccessibilityDelegate::ToggleHighContrast();
25 GetAccessibilityManager()->SetHighContrastMode(IsHighContrastEnabled());
26 }
27
28 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/accessibility_delegate_mus.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698