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 3 # found in the LICENSE file. 4 5 component("wm") { 6 sources = [ 7 "core/accelerator_delegate.h", 8 "core/accelerator_filter.cc", 9 "core/accelerator_filter.h", 10 "core/base_focus_rules.cc", 11 "core/base_focus_rules.h", 12 "core/capture_controller.cc", 13 "core/capture_controller.h", 14 "core/compound_event_filter.cc", 15 "core/compound_event_filter.h", 16 "core/coordinate_conversion.cc", 17 "core/coordinate_conversion.h", 18 "core/cursor_manager.cc", 19 "core/cursor_manager.h", 20 "core/default_activation_client.cc", 21 "core/default_activation_client.h", 22 "core/easy_resize_window_targeter.cc", 23 "core/easy_resize_window_targeter.h", 24 "core/focus_controller.cc", 25 "core/focus_controller.h", 26 "core/focus_rules.h", 27 "core/image_grid.cc", 28 "core/image_grid.h", 29 "core/input_method_event_filter.cc", 30 "core/input_method_event_filter.h", 31 "core/masked_window_targeter.cc", 32 "core/masked_window_targeter.h", 33 "core/native_cursor_manager.h", 34 "core/native_cursor_manager_delegate.h", 35 "core/nested_accelerator_dispatcher_linux.cc", 36 "core/nested_accelerator_dispatcher_win.cc", 37 "core/nested_accelerator_dispatcher.cc", 38 "core/nested_accelerator_dispatcher.h", 39 "core/nested_accelerator_delegate.h", 40 "core/nested_accelerator_controller.cc", 41 "core/nested_accelerator_controller.h", 42 "core/shadow.cc", 43 "core/shadow.h", 44 "core/shadow_controller.cc", 45 "core/shadow_controller.h", 46 "core/shadow_types.cc", 47 "core/shadow_types.h", 48 "core/transient_window_controller.cc", 49 "core/transient_window_controller.h", 50 "core/transient_window_manager.cc", 51 "core/transient_window_manager.h", 52 "core/transient_window_observer.h", 53 "core/transient_window_stacking_client.cc", 54 "core/transient_window_stacking_client.h", 55 "core/user_activity_detector.cc", 56 "core/user_activity_detector.h", 57 "core/user_activity_observer.h", 58 "core/visibility_controller.cc", 59 "core/visibility_controller.h", 60 "core/window_animations.cc", 61 "core/window_animations.h", 62 "core/window_modality_controller.cc", 63 "core/window_modality_controller.h", 64 "core/window_util.cc", 65 "core/window_util.h", 66 "core/wm_core_switches.cc", 67 "core/wm_core_switches.h", 68 "core/wm_state.cc", 69 "core/wm_state.h", 70 "public/window_types.h", 71 "wm_export.h", 72 ] 73 74 defines = [ "WM_IMPLEMENTATION" ] 75 76 deps = [ 77 "//base", 78 "//skia", 79 "//ui/aura", 80 "//ui/base", 81 "//ui/compositor", 82 "//ui/events", 83 "//ui/events/platform", 84 "//ui/events:events_base", 85 "//ui/events/platform", 86 "//ui/gfx", 87 "//ui/gfx/geometry", 88 "//ui/resources", 89 ] 90 91 # http://crbug.com/408650 Circular dependency between this target and Aura. 92 allow_circular_includes_from = [ "//ui/aura" ] 93 } 94 95 static_library("test_support") { 96 testonly = true 97 sources = [ 98 "test/wm_test_helper.cc", 99 "test/wm_test_helper.h", 100 ] 101 102 deps = [ 103 ":wm", 104 "//skia", 105 "//ui/aura", 106 "//ui/aura:test_support", 107 "//ui/base", 108 "//ui/events", 109 "//ui/events:events_base", 110 ] 111 } 112 113 test("wm_unittests") { 114 sources = [ 115 "test/run_all_unittests.cc", 116 "core/compound_event_filter_unittest.cc", 117 "core/cursor_manager_unittest.cc", 118 "core/focus_controller_unittest.cc", 119 "core/input_method_event_filter_unittest.cc", 120 "core/image_grid_unittest.cc", 121 "core/nested_accelerator_controller_unittest.cc", 122 "core/shadow_controller_unittest.cc", 123 "core/transient_window_manager_unittest.cc", 124 "core/transient_window_stacking_client_unittest.cc", 125 "core/user_activity_detector_unittest.cc", 126 "core/visibility_controller_unittest.cc", 127 "core/window_animations_unittest.cc", 128 ] 129 130 deps = [ 131 ":test_support", 132 ":wm", 133 "//base", 134 "//base/test:test_support", 135 "//skia", 136 "//testing/gtest", 137 "//ui/aura:test_support", 138 "//ui/base:test_support", 139 "//ui/compositor:test_support", 140 "//ui/events:test_support", 141 "//ui/events/platform", 142 "//ui/gfx", 143 "//ui/gfx/geometry", 144 "//ui/gl", 145 ] 146 } 147