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

Side by Side Diff: ash/accelerators/spoken_feedback_toggler.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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
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/common/accessibility_delegate.h" 10 #include "ash/accessibility_delegate.h"
11 #include "ash/common/accessibility_types.h" 11 #include "ash/accessibility_types.h"
12 #include "ash/common/wm_shell.h" 12 #include "ash/wm_shell.h"
13 #include "ui/events/event.h" 13 #include "ui/events/event.h"
14 14
15 namespace ash { 15 namespace ash {
16 namespace { 16 namespace {
17 bool speech_feedback_toggler_enabled = false; 17 bool speech_feedback_toggler_enabled = false;
18 } 18 }
19 19
20 // static 20 // static
21 bool SpokenFeedbackToggler::IsEnabled() { 21 bool SpokenFeedbackToggler::IsEnabled() {
22 return speech_feedback_toggler_enabled; 22 return speech_feedback_toggler_enabled;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 void SpokenFeedbackToggler::OnKeyUnhold(const ui::KeyEvent* event) { 61 void SpokenFeedbackToggler::OnKeyUnhold(const ui::KeyEvent* event) {
62 toggled_ = false; 62 toggled_ = false;
63 } 63 }
64 64
65 SpokenFeedbackToggler::SpokenFeedbackToggler() : toggled_(false) {} 65 SpokenFeedbackToggler::SpokenFeedbackToggler() : toggled_(false) {}
66 66
67 SpokenFeedbackToggler::~SpokenFeedbackToggler() {} 67 SpokenFeedbackToggler::~SpokenFeedbackToggler() {}
68 68
69 } // namespace ash 69 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/magnifier_key_scroller.cc ('k') | ash/accelerators/spoken_feedback_toggler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698