Chromium Code Reviews| Index: components/keyboard_lock/key_event_interceptor_installer.h |
| diff --git a/components/keyboard_lock/key_event_interceptor_installer.h b/components/keyboard_lock/key_event_interceptor_installer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..928c6512673929e60efa2999928c3ed88ebc2d33 |
| --- /dev/null |
| +++ b/components/keyboard_lock/key_event_interceptor_installer.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_KEYBOARD_LOCK_KEY_EVENT_INTERCEPTOR_INSTALLER_H_ |
| +#define COMPONENTS_KEYBOARD_LOCK_KEY_EVENT_INTERCEPTOR_INSTALLER_H_ |
| + |
| +#include "components/keyboard_lock/key_event_interceptor.h" |
| + |
| +namespace keyboard_lock { |
| + |
| +class KeyboardLockHost; |
| + |
| +// Installs itself as the default implementation of KeyEventInterceptor in |
| +// KeyboardLockHost. |
| +class KeyEventInterceptorInstaller : public KeyEventInterceptor { |
| + public: |
| + ~KeyEventInterceptorInstaller() override; |
| + |
| + protected: |
| + KeyEventInterceptorInstaller(KeyboardLockHost* host); |
|
dtapuska
2017/04/18 13:43:17
Do you need a DISALLOW_COPY ?
Hzj_jie
2017/04/19 00:46:26
Done.
|
| +}; |
| + |
| +} // namespace keyboard_lock |
| + |
| +#endif // COMPONENTS_KEYBOARD_LOCK_KEY_EVENT_INTERCEPTOR_INSTALLER_H_ |