OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/accelerators/spoken_feedback_toggler.h" | 5 #include "ash/accelerators/spoken_feedback_toggler.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/accelerators/key_hold_detector.h" | 9 #include "ash/accelerators/key_hold_detector.h" |
10 #include "ash/accessibility_delegate.h" | 10 #include "ash/common/accessibility_delegate.h" |
11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
12 #include "ui/events/event.h" | 12 #include "ui/events/event.h" |
13 | 13 |
14 namespace ash { | 14 namespace ash { |
15 namespace { | 15 namespace { |
16 bool speech_feedback_toggler_enabled = false; | 16 bool speech_feedback_toggler_enabled = false; |
17 } | 17 } |
18 | 18 |
19 // static | 19 // static |
20 bool SpokenFeedbackToggler::IsEnabled() { | 20 bool SpokenFeedbackToggler::IsEnabled() { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 void SpokenFeedbackToggler::OnKeyUnhold(const ui::KeyEvent* event) { | 60 void SpokenFeedbackToggler::OnKeyUnhold(const ui::KeyEvent* event) { |
61 toggled_ = false; | 61 toggled_ = false; |
62 } | 62 } |
63 | 63 |
64 SpokenFeedbackToggler::SpokenFeedbackToggler() : toggled_(false) {} | 64 SpokenFeedbackToggler::SpokenFeedbackToggler() : toggled_(false) {} |
65 | 65 |
66 SpokenFeedbackToggler::~SpokenFeedbackToggler() {} | 66 SpokenFeedbackToggler::~SpokenFeedbackToggler() {} |
67 | 67 |
68 } // namespace ash | 68 } // namespace ash |
OLD | NEW |