base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / ui / wm / BUILD.gn
blob5a4832409ca1732109e785a57bebd19ee16c69ee
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.
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/default_screen_position_client.cc",
23     "core/default_screen_position_client.h",
24     "core/easy_resize_window_targeter.cc",
25     "core/easy_resize_window_targeter.h",
26     "core/focus_controller.cc",
27     "core/focus_controller.h",
28     "core/focus_rules.h",
29     "core/image_grid.cc",
30     "core/image_grid.h",
31     "core/input_method_event_filter.cc",
32     "core/input_method_event_filter.h",
33     "core/masked_window_targeter.cc",
34     "core/masked_window_targeter.h",
35     "core/native_cursor_manager.h",
36     "core/native_cursor_manager_delegate.h",
37     "core/nested_accelerator_dispatcher_linux.cc",
38     "core/nested_accelerator_dispatcher_win.cc",
39     "core/nested_accelerator_dispatcher.cc",
40     "core/nested_accelerator_dispatcher.h",
41     "core/nested_accelerator_delegate.h",
42     "core/nested_accelerator_controller.cc",
43     "core/nested_accelerator_controller.h",
44     "core/shadow.cc",
45     "core/shadow.h",
46     "core/shadow_controller.cc",
47     "core/shadow_controller.h",
48     "core/shadow_types.cc",
49     "core/shadow_types.h",
50     "core/transient_window_controller.cc",
51     "core/transient_window_controller.h",
52     "core/transient_window_manager.cc",
53     "core/transient_window_manager.h",
54     "core/transient_window_observer.h",
55     "core/transient_window_stacking_client.cc",
56     "core/transient_window_stacking_client.h",
57     "core/user_activity_detector.cc",
58     "core/user_activity_detector.h",
59     "core/user_activity_observer.h",
60     "core/visibility_controller.cc",
61     "core/visibility_controller.h",
62     "core/window_animations.cc",
63     "core/window_animations.h",
64     "core/window_modality_controller.cc",
65     "core/window_modality_controller.h",
66     "core/window_util.cc",
67     "core/window_util.h",
68     "core/wm_core_switches.cc",
69     "core/wm_core_switches.h",
70     "core/wm_state.cc",
71     "core/wm_state.h",
72     "wm_export.h",
73   ]
75   defines = [ "WM_IMPLEMENTATION" ]
77   deps = [
78     "//base",
79     "//skia",
80     "//ui/aura",
81     "//ui/base",
82     "//ui/compositor",
83     "//ui/events",
84     "//ui/events/devices",
85     "//ui/events/platform",
86     "//ui/events:events_base",
87     "//ui/events/platform",
88     "//ui/gfx",
89     "//ui/gfx/geometry",
90     "//ui/resources",
91   ]
94 static_library("test_support") {
95   testonly = true
96   sources = [
97     "test/wm_test_helper.cc",
98     "test/wm_test_helper.h",
99   ]
101   deps = [
102     ":wm",
103     "//skia",
104     "//ui/aura",
105     "//ui/aura:test_support",
106     "//ui/base",
107     "//ui/events",
108     "//ui/events:events_base",
109   ]
112 test("wm_unittests") {
113   sources = [
114     "test/run_all_unittests.cc",
115     "core/capture_controller_unittest.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   ]
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   ]