Chromium Code Reviews| 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 source_set("input") { | 5 source_set("input") { |
| 6 sources = [ | 6 sources = [ |
| 7 "client_input_injector.h", | 7 "client_input_injector.h", |
| 8 "direct_input_strategy.cc", | 8 "direct_input_strategy.cc", |
| 9 "direct_input_strategy.h", | 9 "direct_input_strategy.h", |
| 10 "input_strategy.h", | 10 "input_strategy.h", |
| 11 "key_event_mapper.cc", | |
| 12 "key_event_mapper.h", | |
| 11 "keyboard_input_strategy.h", | 13 "keyboard_input_strategy.h", |
| 12 "keyboard_interpreter.cc", | 14 "keyboard_interpreter.cc", |
| 13 "keyboard_interpreter.h", | 15 "keyboard_interpreter.h", |
| 14 "native_device_keymap.cc", | 16 "native_device_keymap.cc", |
| 15 "native_device_keymap.h", | 17 "native_device_keymap.h", |
| 16 "native_device_keymap_android.cc", | 18 "native_device_keymap_android.cc", |
| 17 "native_device_keymap_ios.cc", | 19 "native_device_keymap_ios.cc", |
| 18 "text_keyboard_input_strategy.cc", | 20 "text_keyboard_input_strategy.cc", |
| 19 "text_keyboard_input_strategy.h", | 21 "text_keyboard_input_strategy.h", |
| 20 "touch_input_scaler.cc", | 22 "touch_input_scaler.cc", |
| 21 "touch_input_scaler.h", | 23 "touch_input_scaler.h", |
| 22 "trackpad_input_strategy.cc", | 24 "trackpad_input_strategy.cc", |
| 23 "trackpad_input_strategy.h", | 25 "trackpad_input_strategy.h", |
| 24 ] | 26 ] |
| 25 | 27 |
| 26 deps = [ | 28 deps = [ |
| 29 ":normalizing_input_filter", | |
| 27 "//remoting/base", | 30 "//remoting/base", |
| 28 "//remoting/client/ui:ui_manipulation", | 31 "//remoting/client/ui:ui_manipulation", |
| 29 "//third_party/webrtc/base:rtc_base_approved", | 32 "//third_party/webrtc/base:rtc_base_approved", |
| 30 "//ui/events:dom_keycode_converter", | 33 "//ui/events:dom_keycode_converter", |
| 31 ] | 34 ] |
| 32 | 35 |
| 33 if (is_android || is_ios) { | 36 if (is_android || is_ios) { |
| 34 sources -= [ "native_device_keymap.cc" ] | 37 sources -= [ "native_device_keymap.cc" ] |
| 35 } | 38 } |
| 36 } | 39 } |
| 37 | 40 |
| 41 source_set("normalizing_input_filter") { | |
| 42 # Disabled the source filters because there are _mac files that need to | |
| 43 # be compiled on all platforms. | |
| 44 set_sources_assignment_filter([]) | |
| 45 sources = [ | |
| 46 "normalizing_input_filter_cros.cc", | |
| 47 "normalizing_input_filter_cros.h", | |
| 48 "normalizing_input_filter_mac.cc", | |
| 49 "normalizing_input_filter_mac.h", | |
| 50 "normalizing_input_filter_win.cc", | |
| 51 "normalizing_input_filter_win.h", | |
| 52 ] | |
| 53 set_sources_assignment_filter(sources_assignment_filter) | |
| 54 | |
| 55 deps = [ | |
| 56 "//remoting/base", | |
| 57 "//third_party/webrtc/base:rtc_base_approved", | |
| 58 "//third_party/webrtc/modules/desktop_capture:primitives", | |
| 59 "//ui/events:dom_keycode_converter", | |
| 60 ] | |
| 61 } | |
| 62 | |
| 38 source_set("unit_tests") { | 63 source_set("unit_tests") { |
|
Yuwei
2017/05/24 01:30:14
Should we pull out the normalizing_input_filter_un
| |
| 39 testonly = true | 64 testonly = true |
| 40 | 65 |
| 66 set_sources_assignment_filter([]) | |
| 41 sources = [ | 67 sources = [ |
| 68 "key_event_mapper_unittest.cc", | |
| 69 "normalizing_input_filter_cros_unittest.cc", | |
| 70 "normalizing_input_filter_mac_unittest.cc", | |
| 71 "normalizing_input_filter_win_unittest.cc", | |
| 42 "touch_input_scaler_unittest.cc", | 72 "touch_input_scaler_unittest.cc", |
| 43 ] | 73 ] |
| 74 set_sources_assignment_filter(sources_assignment_filter) | |
| 44 | 75 |
| 45 configs += [ | 76 configs += [ |
| 46 "//remoting/build/config:version", | 77 "//remoting/build/config:version", |
| 47 "//remoting/build/config:enable_webrtc_remoting_client", | 78 "//remoting/build/config:enable_webrtc_remoting_client", |
| 48 ] | 79 ] |
| 49 | 80 |
| 50 deps = [ | 81 deps = [ |
| 51 ":input", | 82 ":input", |
| 52 "//remoting/proto", | 83 "//remoting/proto", |
| 53 "//testing/gmock", | 84 "//testing/gmock", |
| 54 "//testing/gtest", | 85 "//testing/gtest", |
| 55 "//third_party/webrtc/base:rtc_base_approved", | 86 "//third_party/webrtc/base:rtc_base_approved", |
| 56 ] | 87 ] |
| 57 } | 88 } |
| OLD | NEW |