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

Side by Side Diff: components/keyboard_lock/active_key_event_filter.h

Issue 2879033002: Keyboard Lock Host implementation
Patch Set: Remove useless files Created 3 years, 4 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 | « components/keyboard_lock/OWNERS ('k') | components/keyboard_lock/active_key_event_filter.cc » ('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 2017 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 COMPONENTS_KEYBOARD_LOCK_ACTIVE_KEY_EVENT_FILTER_H_
6 #define COMPONENTS_KEYBOARD_LOCK_ACTIVE_KEY_EVENT_FILTER_H_
7
8 #include "components/keyboard_lock/key_event_filter.h"
9
10 namespace keyboard_lock {
11
12 class ActiveKeyEventFilterTracker;
13
14 // A KeyEventFilter implementation to forward the key events to the active
15 // KeyEventFilter in |tracker|.
16 class ActiveKeyEventFilter final : public KeyEventFilter {
17 public:
18 // |tracker| must outlive |this|.
19 ActiveKeyEventFilter(const ActiveKeyEventFilterTracker* tracker);
20 ~ActiveKeyEventFilter() override;
21
22 private:
23 // KeyEventFilter implementations.
24 bool OnKeyDown(ui::KeyboardCode code, int flags) override;
25 bool OnKeyUp(ui::KeyboardCode code, int flags) override;
26
27 const ActiveKeyEventFilterTracker* const tracker_;
28 };
29
30 } // namespace keyboard_lock
31
32 #endif // COMPONENTS_KEYBOARD_LOCK_ACTIVE_KEY_EVENT_FILTER_H_
OLDNEW
« no previous file with comments | « components/keyboard_lock/OWNERS ('k') | components/keyboard_lock/active_key_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698