OLD | NEW |
(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_KEY_EVENT_FILTER_SHARE_WRAPPER_H_ |
| 6 #define COMPONENTS_KEYBOARD_LOCK_KEY_EVENT_FILTER_SHARE_WRAPPER_H_ |
| 7 |
| 8 #include "components/keyboard_lock/key_event_filter.h" |
| 9 |
| 10 namespace keyboard_lock { |
| 11 |
| 12 class KeyEventFilterShareWrapper final : public KeyEventFilter { |
| 13 public: |
| 14 KeyEventFilterShareWrapper(KeyEventFilter* filter); |
| 15 ~KeyEventFilterShareWrapper() override; |
| 16 |
| 17 private: |
| 18 // KeyEventFilter implementations |
| 19 bool OnKeyDown(ui::KeyboardCode code, int flags) override; |
| 20 bool OnKeyUp(ui::KeyboardCode code, int flags) override; |
| 21 |
| 22 KeyEventFilter* const filter_; |
| 23 }; |
| 24 |
| 25 } // namespace keyboard_lock |
| 26 |
| 27 #endif // COMPONENTS_KEYBOARD_LOCK_KEY_EVENT_FILTER_SHARE_WRAPPER_H_ |
OLD | NEW |