| 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 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
| 10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 "win/shell.h", | 276 "win/shell.h", |
| 277 "win/touch_input.cc", | 277 "win/touch_input.cc", |
| 278 "win/touch_input.h", | 278 "win/touch_input.h", |
| 279 "win/window_event_target.cc", | 279 "win/window_event_target.cc", |
| 280 "win/window_event_target.h", | 280 "win/window_event_target.h", |
| 281 "window_open_disposition.cc", | 281 "window_open_disposition.cc", |
| 282 "window_open_disposition.h", | 282 "window_open_disposition.h", |
| 283 "work_area_watcher_observer.h", | 283 "work_area_watcher_observer.h", |
| 284 ] | 284 ] |
| 285 | 285 |
| 286 if (is_chromeos || is_linux || is_win) { |
| 287 sources += [ |
| 288 "resource/material_design/material_design_controller.cc", |
| 289 "resource/material_design/material_design_controller.h", |
| 290 ] |
| 291 } |
| 292 |
| 286 if (is_win) { | 293 if (is_win) { |
| 287 sources += [ "touch/touch_device_win.cc" ] | 294 sources += [ "touch/touch_device_win.cc" ] |
| 288 } else if (is_android) { | 295 } else if (is_android) { |
| 289 sources += [ "touch/touch_device_android.cc" ] | 296 sources += [ "touch/touch_device_android.cc" ] |
| 290 } else if (is_linux) { | 297 } else if (is_linux) { |
| 291 sources += [ "touch/touch_device_linux.cc" ] | 298 sources += [ "touch/touch_device_linux.cc" ] |
| 292 } else { | 299 } else { |
| 293 # Empty implementation for all other cases. | 300 # Empty implementation for all other cases. |
| 294 sources += [ "touch/touch_device.cc" ] | 301 sources += [ "touch/touch_device.cc" ] |
| 295 } | 302 } |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 sources += [ | 595 sources += [ |
| 589 "ime/dummy_input_method.cc", | 596 "ime/dummy_input_method.cc", |
| 590 "ime/dummy_input_method.h", | 597 "ime/dummy_input_method.h", |
| 591 "ime/dummy_text_input_client.cc", | 598 "ime/dummy_text_input_client.cc", |
| 592 "ime/dummy_text_input_client.h", | 599 "ime/dummy_text_input_client.h", |
| 593 ] | 600 ] |
| 594 | 601 |
| 595 deps += [ "//ui/base/ime" ] | 602 deps += [ "//ui/base/ime" ] |
| 596 } | 603 } |
| 597 | 604 |
| 605 if (is_chromeos || is_linux || is_win) { |
| 606 sources += [ |
| 607 "test/material_design_controller_test_api.cc", |
| 608 "test/material_design_controller_test_api.h", |
| 609 ] |
| 610 } |
| 611 |
| 598 if (!use_aura) { | 612 if (!use_aura) { |
| 599 sources -= [ "test/ui_controls_aura.cc" ] | 613 sources -= [ "test/ui_controls_aura.cc" ] |
| 600 } else if (is_win) { | 614 } else if (is_win) { |
| 601 sources -= [ "test/ui_controls_win.cc" ] | 615 sources -= [ "test/ui_controls_win.cc" ] |
| 602 } | 616 } |
| 603 } | 617 } |
| 604 | 618 |
| 605 if (is_android) { | 619 if (is_android) { |
| 606 generate_jni("ui_base_jni_headers") { | 620 generate_jni("ui_base_jni_headers") { |
| 607 sources = [ | 621 sources = [ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 627 "layout_unittest.cc", | 641 "layout_unittest.cc", |
| 628 "models/tree_node_iterator_unittest.cc", | 642 "models/tree_node_iterator_unittest.cc", |
| 629 "resource/data_pack_literal.cc", | 643 "resource/data_pack_literal.cc", |
| 630 "resource/data_pack_unittest.cc", | 644 "resource/data_pack_unittest.cc", |
| 631 "resource/resource_bundle_unittest.cc", | 645 "resource/resource_bundle_unittest.cc", |
| 632 "test/run_all_unittests.cc", | 646 "test/run_all_unittests.cc", |
| 633 "test/test_clipboard_unittest.cc", | 647 "test/test_clipboard_unittest.cc", |
| 634 "user_activity/user_activity_detector_unittest.cc", | 648 "user_activity/user_activity_detector_unittest.cc", |
| 635 ] | 649 ] |
| 636 | 650 |
| 651 if (is_chromeos || is_linux || is_win) { |
| 652 sources += |
| 653 [ "resource/material_design/material_design_controller_unittest.cc" ] |
| 654 } |
| 655 |
| 637 if (is_android) { | 656 if (is_android) { |
| 638 sources -= [ "user_activity/user_activity_detector_unittest.cc" ] | 657 sources -= [ "user_activity/user_activity_detector_unittest.cc" ] |
| 639 } | 658 } |
| 640 | 659 |
| 641 if (is_ios) { | 660 if (is_ios) { |
| 642 # Compile this Mac file on iOS as well. | 661 # Compile this Mac file on iOS as well. |
| 643 set_sources_assignment_filter([]) | 662 set_sources_assignment_filter([]) |
| 644 sources += [ "l10n/l10n_util_mac_unittest.mm" ] | 663 sources += [ "l10n/l10n_util_mac_unittest.mm" ] |
| 645 set_sources_assignment_filter(sources_assignment_filter) | 664 set_sources_assignment_filter(sources_assignment_filter) |
| 646 } else { # !is_ios | 665 } else { # !is_ios |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 } | 821 } |
| 803 | 822 |
| 804 if (is_chromeos) { | 823 if (is_chromeos) { |
| 805 deps += [ | 824 deps += [ |
| 806 "//chromeos", | 825 "//chromeos", |
| 807 "//ui/events:dom_keycode_converter", | 826 "//ui/events:dom_keycode_converter", |
| 808 ] | 827 ] |
| 809 } | 828 } |
| 810 } | 829 } |
| 811 # TODO(GYP) Mac (ui_base_tests_bundle) | 830 # TODO(GYP) Mac (ui_base_tests_bundle) |
| OLD | NEW |