OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//ui/ozone/ozone.gni") | 7 import("//ui/ozone/ozone.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 ] | 64 ] |
65 | 65 |
66 public_deps = [ | 66 public_deps = [ |
67 ":dom_keycode_converter", | 67 ":dom_keycode_converter", |
68 "//base", | 68 "//base", |
69 "//ui/events/platform", | 69 "//ui/events/platform", |
70 "//ui/gfx", | 70 "//ui/gfx", |
71 "//ui/gfx/geometry", | 71 "//ui/gfx/geometry", |
72 ] | 72 ] |
73 | 73 |
74 # TODO(kylechar): move keycodes/ files into own component and x/ files into | 74 if (use_x11) { |
75 # ui/events/x component | 75 public_deps += [ "//ui/events/keycodes:x" ] |
76 if (use_x11 || ozone_platform_x11) { | |
77 configs += [ "//build/config/linux:x11" ] | |
78 | |
79 sources += [ | |
80 "keycodes/keyboard_code_conversion_x.cc", | |
81 "keycodes/keyboard_code_conversion_x.h", | |
82 "x/keysym_to_unicode.cc", | |
83 "x/keysym_to_unicode.h", | |
84 ] | |
85 | |
86 deps += [ "//ui/gfx/x" ] | |
87 } | |
88 | |
89 if (use_x11 || ozone_platform_x11 || use_xkbcommon) { | |
90 sources += [ | |
91 "keycodes/keyboard_code_conversion_xkb.cc", | |
92 "keycodes/keyboard_code_conversion_xkb.h", | |
93 "keycodes/scoped_xkb.h", | |
94 "keycodes/xkb_keysym.h", | |
95 ] | |
96 } | 76 } |
97 | 77 |
98 if (!is_ios) { | 78 if (!is_ios) { |
99 deps += [ "//ipc:param_traits" ] | 79 deps += [ "//ipc:param_traits" ] |
100 } | 80 } |
101 } | 81 } |
102 | 82 |
103 component("events") { | 83 component("events") { |
104 sources = [ | 84 sources = [ |
105 "cocoa/cocoa_event_utils.h", | 85 "cocoa/cocoa_event_utils.h", |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 | 134 |
155 if (use_x11) { | 135 if (use_x11) { |
156 sources += [ "x/events_x.cc" ] | 136 sources += [ "x/events_x.cc" ] |
157 configs += [ | 137 configs += [ |
158 "//build/config/linux:glib", | 138 "//build/config/linux:glib", |
159 "//build/config/linux:x11", | 139 "//build/config/linux:x11", |
160 ] | 140 ] |
161 deps += [ | 141 deps += [ |
162 "//ui/events/devices", | 142 "//ui/events/devices", |
163 "//ui/events/devices/x11", | 143 "//ui/events/devices/x11", |
| 144 "//ui/events/x", |
164 "//ui/gfx/x", | 145 "//ui/gfx/x", |
165 ] | 146 ] |
166 } | 147 } |
167 | 148 |
168 if (use_x11 || ozone_platform_x11) { | |
169 deps += [ "//ui/events/x" ] | |
170 } | |
171 | |
172 if (!is_chromeos && is_linux) { | 149 if (!is_chromeos && is_linux) { |
173 sources += [ | 150 sources += [ |
174 "linux/text_edit_command_auralinux.cc", | 151 "linux/text_edit_command_auralinux.cc", |
175 "linux/text_edit_command_auralinux.h", | 152 "linux/text_edit_command_auralinux.h", |
176 "linux/text_edit_key_bindings_delegate_auralinux.cc", | 153 "linux/text_edit_key_bindings_delegate_auralinux.cc", |
177 "linux/text_edit_key_bindings_delegate_auralinux.h", | 154 "linux/text_edit_key_bindings_delegate_auralinux.h", |
178 ] | 155 ] |
179 } | 156 } |
180 | 157 |
181 if (use_ozone || (is_android && use_aura)) { | 158 if (use_ozone || (is_android && use_aura)) { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 generate_jar_jni("motionevent_jni_headers") { | 449 generate_jar_jni("motionevent_jni_headers") { |
473 jni_package = "ui" | 450 jni_package = "ui" |
474 classes = [ "android/view/MotionEvent.class" ] | 451 classes = [ "android/view/MotionEvent.class" ] |
475 } | 452 } |
476 | 453 |
477 generate_jar_jni("keyevent_jni_headers") { | 454 generate_jar_jni("keyevent_jni_headers") { |
478 jni_package = "ui" | 455 jni_package = "ui" |
479 classes = [ "android/view/KeyEvent.class" ] | 456 classes = [ "android/view/KeyEvent.class" ] |
480 } | 457 } |
481 } | 458 } |
OLD | NEW |