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_HOOK_SHARE_WRAPPER_H_ |
| 6 #define COMPONENTS_KEYBOARD_LOCK_KEY_HOOK_SHARE_WRAPPER_H_ |
| 7 |
| 8 #include "components/keyboard_lock/key_hook.h" |
| 9 |
| 10 namespace keyboard_lock { |
| 11 |
| 12 class KeyHookShareWrapper final : public KeyHook { |
| 13 public: |
| 14 KeyHookShareWrapper(KeyHook* key_hook); |
| 15 ~KeyHookShareWrapper() override; |
| 16 |
| 17 private: |
| 18 // KeyHook implementations |
| 19 void RegisterKey(const std::vector<ui::KeyboardCode>& codes, |
| 20 base::Callback<void(bool)> on_result) override; |
| 21 void UnregisterKey(const std::vector<ui::KeyboardCode>& codes, |
| 22 base::Callback<void(bool)> on_result) override; |
| 23 |
| 24 KeyHook* const key_hook_; |
| 25 }; |
| 26 |
| 27 } // namespace keyboard_lock |
| 28 |
| 29 #endif // COMPONENTS_KEYBOARD_LOCK_KEY_HOOK_SHARE_WRAPPER_H_ |
OLD | NEW |