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

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

Issue 1119423003: Refactors away method implementations in ui::EventTargeter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactors ui::EventTargeter (rebased) Created 5 years, 6 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 "ash/accelerators/key_hold_detector.h" 7 #include "ash/accelerators/key_hold_detector.h"
8 #include "ash/accessibility_delegate.h" 8 #include "ash/accessibility_delegate.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ui/events/event.h"
10 11
11 namespace ash { 12 namespace ash {
12 namespace { 13 namespace {
13 bool speech_feedback_toggler_enabled = false; 14 bool speech_feedback_toggler_enabled = false;
14 } 15 }
15 16
16 // static 17 // static
17 bool SpokenFeedbackToggler::IsEnabled() { 18 bool SpokenFeedbackToggler::IsEnabled() {
18 return speech_feedback_toggler_enabled; 19 return speech_feedback_toggler_enabled;
19 } 20 }
(...skipping 29 matching lines...) Expand all
49 50
50 void SpokenFeedbackToggler::OnKeyUnhold(const ui::KeyEvent* event) { 51 void SpokenFeedbackToggler::OnKeyUnhold(const ui::KeyEvent* event) {
51 toggled_ = false; 52 toggled_ = false;
52 } 53 }
53 54
54 SpokenFeedbackToggler::SpokenFeedbackToggler() : toggled_(false) {} 55 SpokenFeedbackToggler::SpokenFeedbackToggler() : toggled_(false) {}
55 56
56 SpokenFeedbackToggler::~SpokenFeedbackToggler() {} 57 SpokenFeedbackToggler::~SpokenFeedbackToggler() {}
57 58
58 } // namespace ash 59 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/magnifier_key_scroller_unittest.cc ('k') | ash/display/mouse_cursor_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698