| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ] | 70 ] |
| 71 | 71 |
| 72 public_deps = [ | 72 public_deps = [ |
| 73 ":dom_keycode_converter", | 73 ":dom_keycode_converter", |
| 74 "//base", | 74 "//base", |
| 75 "//ui/events/platform", | 75 "//ui/events/platform", |
| 76 "//ui/gfx", | 76 "//ui/gfx", |
| 77 "//ui/gfx/geometry", | 77 "//ui/gfx/geometry", |
| 78 ] | 78 ] |
| 79 | 79 |
| 80 # TODO(kylechar): move keycodes/ files into own component and x/ files into | 80 if (use_x11) { |
| 81 # ui/events/x component | 81 public_deps += [ "//ui/events/keycodes:x11" ] |
| 82 if (use_x11 || ozone_platform_x11) { | |
| 83 configs += [ "//build/config/linux:x11" ] | |
| 84 | |
| 85 sources += [ | |
| 86 "keycodes/keyboard_code_conversion_x.cc", | |
| 87 "keycodes/keyboard_code_conversion_x.h", | |
| 88 "keycodes/keysym_to_unicode.cc", | |
| 89 "keycodes/keysym_to_unicode.h", | |
| 90 ] | |
| 91 | |
| 92 deps += [ "//ui/gfx/x" ] | |
| 93 } | |
| 94 | |
| 95 if (use_x11 || ozone_platform_x11 || use_xkbcommon) { | |
| 96 sources += [ | |
| 97 "keycodes/keyboard_code_conversion_xkb.cc", | |
| 98 "keycodes/keyboard_code_conversion_xkb.h", | |
| 99 "keycodes/scoped_xkb.h", | |
| 100 "keycodes/xkb_keysym.h", | |
| 101 ] | |
| 102 } | 82 } |
| 103 | 83 |
| 104 if (!is_ios) { | 84 if (!is_ios) { |
| 105 deps += [ "//ipc:param_traits" ] | 85 deps += [ "//ipc:param_traits" ] |
| 106 } | 86 } |
| 107 } | 87 } |
| 108 | 88 |
| 109 component("events") { | 89 component("events") { |
| 110 sources = [ | 90 sources = [ |
| 111 "cocoa/cocoa_event_utils.h", | 91 "cocoa/cocoa_event_utils.h", |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 139 |
| 160 if (use_x11) { | 140 if (use_x11) { |
| 161 sources += [ "x/events_x.cc" ] | 141 sources += [ "x/events_x.cc" ] |
| 162 configs += [ | 142 configs += [ |
| 163 "//build/config/linux:glib", | 143 "//build/config/linux:glib", |
| 164 "//build/config/linux:x11", | 144 "//build/config/linux:x11", |
| 165 ] | 145 ] |
| 166 deps += [ | 146 deps += [ |
| 167 "//ui/events/devices", | 147 "//ui/events/devices", |
| 168 "//ui/events/devices/x11", | 148 "//ui/events/devices/x11", |
| 149 "//ui/events/x", |
| 169 "//ui/gfx/x", | 150 "//ui/gfx/x", |
| 170 ] | 151 ] |
| 171 } | 152 } |
| 172 | 153 |
| 173 if (use_x11 || ozone_platform_x11) { | |
| 174 deps += [ "//ui/events/x" ] | |
| 175 } | |
| 176 | |
| 177 if (!is_chromeos && is_linux) { | 154 if (!is_chromeos && is_linux) { |
| 178 sources += [ | 155 sources += [ |
| 179 "linux/text_edit_command_auralinux.cc", | 156 "linux/text_edit_command_auralinux.cc", |
| 180 "linux/text_edit_command_auralinux.h", | 157 "linux/text_edit_command_auralinux.h", |
| 181 "linux/text_edit_key_bindings_delegate_auralinux.cc", | 158 "linux/text_edit_key_bindings_delegate_auralinux.cc", |
| 182 "linux/text_edit_key_bindings_delegate_auralinux.h", | 159 "linux/text_edit_key_bindings_delegate_auralinux.h", |
| 183 ] | 160 ] |
| 184 } | 161 } |
| 185 | 162 |
| 186 if (use_ozone || (is_android && use_aura)) { | 163 if (use_ozone || (is_android && use_aura)) { |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 generate_jar_jni("motionevent_jni_headers") { | 456 generate_jar_jni("motionevent_jni_headers") { |
| 480 jni_package = "ui" | 457 jni_package = "ui" |
| 481 classes = [ "android/view/MotionEvent.class" ] | 458 classes = [ "android/view/MotionEvent.class" ] |
| 482 } | 459 } |
| 483 | 460 |
| 484 generate_jar_jni("keyevent_jni_headers") { | 461 generate_jar_jni("keyevent_jni_headers") { |
| 485 jni_package = "ui" | 462 jni_package = "ui" |
| 486 classes = [ "android/view/KeyEvent.class" ] | 463 classes = [ "android/view/KeyEvent.class" ] |
| 487 } | 464 } |
| 488 } | 465 } |
| OLD | NEW |