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

Unified Diff: components/keyboard_lock/key_event_interceptor_installer.h

Issue 2815023002: [System-Keyboard-Lock] Add KeyboardLockHost and KeyEventInterceptor (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698