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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « components/BUILD.gn ('k') | components/keyboard_lock/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 import("//build/config/ui.gni")
6 import("//ui/ozone/ozone.gni")
7
8 source_set("key_event_filter") {
9 sources = [
10 "key_event_filter.h",
11 "platform_key_event_filter.h",
12 "platform_key_event_filter.cc",
13 ]
14
15 deps = [
16 "//base",
17 "//ui/events:event_constants",
18 "//ui/events",
19 "//ui/events/platform",
20 ]
21 }
22
23 source_set("definition") {
24 sources = [
25 "active_key_event_filter_tracker.h",
26 "key_hook.h",
27 "key_hook_activator.h",
28 "key_hook_activator_collection.h",
29 "key_hook_thread_wrapper.h",
30 "keyboard_lock_host.h",
31 ]
32
33 deps = [
34 ":key_event_filter",
35 "//base",
36 "//ui/events:event_constants",
37 ]
38 }
39
40 static_library("keyboard_lock") {
41 sources = [
42 "active_key_event_filter_registrar.cc",
43 "active_key_event_filter_registrar.h",
44 "active_key_event_filter_tracker.cc",
45 "active_key_event_filter.cc",
46 "active_key_event_filter.h",
47 "key_event_filter_share_wrapper.cc",
48 "key_event_filter_share_wrapper.h",
49 "key_event_filter_thread_proxy.cc",
50 "key_event_filter_thread_proxy.h",
51 "key_hook_share_wrapper.cc",
52 "key_hook_share_wrapper.h",
53 "key_hook_activator_collection.cc",
54 "key_hook_activator_thread_proxy.cc",
55 "key_hook_activator_thread_proxy.h",
56 "key_hook_state_keeper.cc",
57 "key_hook_state_keeper.h",
58 "key_hook_thread_wrapper.cc",
59 "keyboard_lock_host.cc",
60 "keyboard_lock_host.h",
61 "page_observer.cc",
62 "page_observer.h",
63 "platform_key_hook.h",
64 "register_once_key_hook.cc",
65 "register_once_key_hook.h",
66 "sync_key_hook.cc",
67 "sync_key_hook.h",
68 "widget_key_event_filter.cc",
69 "widget_key_event_filter.h",
70 ]
71
72 deps = [
73 ":definition",
74 ":key_event_filter",
75 "//base",
76 "//chrome/browser",
77 "//chrome/browser/ui",
78 "//content/public/browser",
79 "//ui/events:dom_keycode_converter",
80 "//ui/events/platform",
81 ]
82
83 if (use_x11 || ozone_platform_x11) {
84 sources += [
85 "keyboard_lock_host_x11.cc",
86 "platform_key_hook_x11.cc",
87 ]
88
89 deps += [
90 "//ui/base/x",
91 "//ui/events/platform/x11",
92 "//ui/gfx/x",
93 ]
94 } else if (is_win) {
95 sources += [
96 "keyboard_lock_host_win.cc",
97 "platform_key_hook_win.cc",
98 ]
99 } else {
100 sources += [
101 "keyboard_lock_host_null.cc",
102 "platform_key_hook_null.cc",
103 ]
104 }
105
106 public_deps = [
107 ":definition",
108 ":key_event_filter",
109 ]
110 }
111
112 source_set("unit_tests") {
113 testonly = true
114 sources = [
115 "keyboard_lock_host_unittest.cc",
116 "key_hook_state_keeper_unittest.cc",
117 ]
118
119 deps = [
120 ":keyboard_lock",
121 "//base",
122 "//testing/gtest",
123 ]
124 }
OLDNEW
« 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