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

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

Issue 2154523002: Move AccessibilityDelegate ownership to ash::WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setmediadelegate
Patch Set: cleanup, fix test 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
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 #ifndef ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_
6 #define ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_
7
8 #include "ash/common/default_accessibility_delegate.h"
9 #include "base/macros.h"
10 #include "services/ui/public/interfaces/accessibility_manager.mojom.h"
11
12 namespace shell {
13 class Connector;
14 }
15
16 namespace ash {
17
18 class AccessibilityDelegateMus : public DefaultAccessibilityDelegate {
19 public:
20 explicit AccessibilityDelegateMus(shell::Connector* connector);
21 ~AccessibilityDelegateMus() override;
22
23 private:
24 ui::mojom::AccessibilityManager* GetAccessibilityManager();
25
26 // DefaultAccessibilityDelegate:
27 void ToggleHighContrast() override;
28
29 ui::mojom::AccessibilityManagerPtr accessibility_manager_ptr_;
30 shell::Connector* connector_;
31
32 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateMus);
33 };
34
35 } // namespace ash
36
37 #endif // ASH_MUS_ACCESSIBILITY_DELEGATE_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698