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

Unified Diff: components/keyboard_lock/BUILD.gn

Issue 2879033002: Keyboard Lock Host implementation
Patch Set: Remove useless files Created 3 years, 4 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
« no previous file with comments | « components/BUILD.gn ('k') | components/keyboard_lock/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/keyboard_lock/BUILD.gn
diff --git a/components/keyboard_lock/BUILD.gn b/components/keyboard_lock/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a126ffb775bad83171871f0064f25644836112d8
--- /dev/null
+++ b/components/keyboard_lock/BUILD.gn
@@ -0,0 +1,124 @@
+# 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.
+
+import("//build/config/ui.gni")
+import("//ui/ozone/ozone.gni")
+
+source_set("key_event_filter") {
+ sources = [
+ "key_event_filter.h",
+ "platform_key_event_filter.h",
+ "platform_key_event_filter.cc",
+ ]
+
+ deps = [
+ "//base",
+ "//ui/events:event_constants",
+ "//ui/events",
+ "//ui/events/platform",
+ ]
+}
+
+source_set("definition") {
+ sources = [
+ "active_key_event_filter_tracker.h",
+ "key_hook.h",
+ "key_hook_activator.h",
+ "key_hook_activator_collection.h",
+ "key_hook_thread_wrapper.h",
+ "keyboard_lock_host.h",
+ ]
+
+ deps = [
+ ":key_event_filter",
+ "//base",
+ "//ui/events:event_constants",
+ ]
+}
+
+static_library("keyboard_lock") {
+ sources = [
+ "active_key_event_filter_registrar.cc",
+ "active_key_event_filter_registrar.h",
+ "active_key_event_filter_tracker.cc",
+ "active_key_event_filter.cc",
+ "active_key_event_filter.h",
+ "key_event_filter_share_wrapper.cc",
+ "key_event_filter_share_wrapper.h",
+ "key_event_filter_thread_proxy.cc",
+ "key_event_filter_thread_proxy.h",
+ "key_hook_share_wrapper.cc",
+ "key_hook_share_wrapper.h",
+ "key_hook_activator_collection.cc",
+ "key_hook_activator_thread_proxy.cc",
+ "key_hook_activator_thread_proxy.h",
+ "key_hook_state_keeper.cc",
+ "key_hook_state_keeper.h",
+ "key_hook_thread_wrapper.cc",
+ "keyboard_lock_host.cc",
+ "keyboard_lock_host.h",
+ "page_observer.cc",
+ "page_observer.h",
+ "platform_key_hook.h",
+ "register_once_key_hook.cc",
+ "register_once_key_hook.h",
+ "sync_key_hook.cc",
+ "sync_key_hook.h",
+ "widget_key_event_filter.cc",
+ "widget_key_event_filter.h",
+ ]
+
+ deps = [
+ ":definition",
+ ":key_event_filter",
+ "//base",
+ "//chrome/browser",
+ "//chrome/browser/ui",
+ "//content/public/browser",
+ "//ui/events:dom_keycode_converter",
+ "//ui/events/platform",
+ ]
+
+ if (use_x11 || ozone_platform_x11) {
+ sources += [
+ "keyboard_lock_host_x11.cc",
+ "platform_key_hook_x11.cc",
+ ]
+
+ deps += [
+ "//ui/base/x",
+ "//ui/events/platform/x11",
+ "//ui/gfx/x",
+ ]
+ } else if (is_win) {
+ sources += [
+ "keyboard_lock_host_win.cc",
+ "platform_key_hook_win.cc",
+ ]
+ } else {
+ sources += [
+ "keyboard_lock_host_null.cc",
+ "platform_key_hook_null.cc",
+ ]
+ }
+
+ public_deps = [
+ ":definition",
+ ":key_event_filter",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "keyboard_lock_host_unittest.cc",
+ "key_hook_state_keeper_unittest.cc",
+ ]
+
+ deps = [
+ ":keyboard_lock",
+ "//base",
+ "//testing/gtest",
+ ]
+}
« no previous file with comments | « components/BUILD.gn ('k') | components/keyboard_lock/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698