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

Unified Diff: components/keyboard_lock/keyboard_lock_host.cc

Issue 2815023002: [System-Keyboard-Lock] Add KeyboardLockHost and KeyEventInterceptor (Closed)
Patch Set: Use NativeKeycode instead of ui::KeyboardCode Created 3 years, 6 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/keyboard_lock_host.cc
diff --git a/components/keyboard_lock/keyboard_lock_host.cc b/components/keyboard_lock/keyboard_lock_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b7a02256712b0c0212cb61206c0708811f38bf26
--- /dev/null
+++ b/components/keyboard_lock/keyboard_lock_host.cc
@@ -0,0 +1,22 @@
+// 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.
+
+#include "components/keyboard_lock/keyboard_lock_host.h"
+
+#include <utility>
+
+#include "base/logging.h"
+#include "base/single_thread_task_runner.h"
+
+namespace keyboard_lock {
+
+KeyboardLockHost::KeyboardLockHost(
+ scoped_refptr<base::SingleThreadTaskRunner> runner)
+ : runner_(std::move(runner)) {
+ DCHECK(runner_);
+}
+
+KeyboardLockHost::~KeyboardLockHost() = default;
+
+} // namespace keyboard_lock
« no previous file with comments | « components/keyboard_lock/keyboard_lock_host.h ('k') | components/keyboard_lock/keyboard_lock_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698