Fix for closing the Alert overlay.
[chromium-blink-merge.git] / ui / wm / wm.gyp
blobb743f76ac8c1400b3e43bb79b9b0899481a813d6
1 # Copyright 2013 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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //ui/wm
12       'target_name': 'wm',
13       'type': '<(component)',
14       'dependencies': [
15         '../../base/base.gyp:base',
16         '../../skia/skia.gyp:skia',
17         '../aura/aura.gyp:aura',
18         '../compositor/compositor.gyp:compositor',
19         '../events/events.gyp:events',
20         '../events/events.gyp:events_base',
21         '../events/platform/events_platform.gyp:events_platform',
22         '../gfx/gfx.gyp:gfx_geometry',
23         '../gfx/gfx.gyp:gfx',
24         '../resources/ui_resources.gyp:ui_resources',
25         '../base/ui_base.gyp:ui_base',
26       ],
27       'defines': [
28         'WM_IMPLEMENTATION',
29       ],
30       'sources': [
31         'core/accelerator_delegate.h',
32         'core/accelerator_filter.cc',
33         'core/accelerator_filter.h',
34         'core/base_focus_rules.h',
35         'core/base_focus_rules.cc',
36         'core/base_focus_rules.h',
37         'core/capture_controller.cc',
38         'core/capture_controller.h',
39         'core/compound_event_filter.cc',
40         'core/compound_event_filter.h',
41         'core/coordinate_conversion.cc',
42         'core/coordinate_conversion.h',
43         'core/cursor_manager.cc',
44         'core/cursor_manager.h',
45         'core/default_activation_client.cc',
46         'core/default_activation_client.h',
47         'core/easy_resize_window_targeter.cc',
48         'core/easy_resize_window_targeter.h',
49         'core/focus_controller.cc',
50         'core/focus_controller.h',
51         'core/focus_rules.h',
52         'core/image_grid.cc',
53         'core/image_grid.h',
54         'core/input_method_event_filter.cc',
55         'core/input_method_event_filter.h',
56         'core/masked_window_targeter.cc',
57         'core/masked_window_targeter.h',
58         'core/native_cursor_manager.h',
59         'core/native_cursor_manager_delegate.h',
60         'core/nested_accelerator_dispatcher_linux.cc',
61         'core/nested_accelerator_dispatcher_win.cc',
62         'core/nested_accelerator_dispatcher.cc',
63         'core/nested_accelerator_dispatcher.h',
64         'core/nested_accelerator_delegate.h',
65         'core/nested_accelerator_controller.cc',
66         'core/nested_accelerator_controller.h',
67         'core/shadow.cc',
68         'core/shadow.h',
69         'core/shadow_controller.cc',
70         'core/shadow_controller.h',
71         'core/shadow_types.cc',
72         'core/shadow_types.h',
73         'core/transient_window_controller.cc',
74         'core/transient_window_controller.h',
75         'core/transient_window_manager.cc',
76         'core/transient_window_manager.h',
77         'core/transient_window_observer.h',
78         'core/transient_window_stacking_client.cc',
79         'core/transient_window_stacking_client.h',
80         'core/user_activity_detector.cc',
81         'core/user_activity_detector.h',
82         'core/user_activity_observer.h',
83         'core/visibility_controller.cc',
84         'core/visibility_controller.h',
85         'core/window_animations.cc',
86         'core/window_animations.h',
87         'core/window_modality_controller.cc',
88         'core/window_modality_controller.h',
89         'core/window_util.cc',
90         'core/window_util.h',
91         'core/wm_core_switches.cc',
92         'core/wm_core_switches.h',
93         'core/wm_state.cc',
94         'core/wm_state.h',
95         'public/window_types.h',
96         'wm_export.h',
97       ],
98     },
99     {
100       # GN version: //ui/wm:test_support
101       'target_name': 'wm_test_support',
102       'type': 'static_library',
103       'dependencies': [
104         '../../skia/skia.gyp:skia',
105         '../aura/aura.gyp:aura',
106         '../events/events.gyp:events',
107         '../events/events.gyp:events_base',
108       ],
109       'sources': [
110         'test/wm_test_helper.cc',
111         'test/wm_test_helper.h',
112       ],
113     },
114     {
115       # GN version: //ui/wm:wm_unittests
116       'target_name': 'wm_unittests',
117       'type': 'executable',
118       'dependencies': [
119         '../../base/base.gyp:base',
120         '../../base/base.gyp:test_support_base',
121         '../../skia/skia.gyp:skia',
122         '../../testing/gtest.gyp:gtest',
123         '../aura/aura.gyp:aura',
124         '../aura/aura.gyp:aura_test_support',
125         '../base/ui_base.gyp:ui_base',
126         '../compositor/compositor.gyp:compositor',
127         '../events/events.gyp:events',
128         '../events/events.gyp:events_base',
129         '../events/platform/events_platform.gyp:events_platform',
130         '../gfx/gfx.gyp:gfx',
131         '../gfx/gfx.gyp:gfx_geometry',
132         'wm',
133         'wm_test_support',
134       ],
135       'sources': [
136         'test/run_all_unittests.cc',
137         'core/compound_event_filter_unittest.cc',
138         'core/cursor_manager_unittest.cc',
139         'core/focus_controller_unittest.cc',
140         'core/input_method_event_filter_unittest.cc',
141         'core/image_grid_unittest.cc',
142         'core/nested_accelerator_controller_unittest.cc',
143         'core/shadow_controller_unittest.cc',
144         'core/transient_window_manager_unittest.cc',
145         'core/transient_window_stacking_client_unittest.cc',
146         'core/user_activity_detector_unittest.cc',
147         'core/visibility_controller_unittest.cc',
148         'core/window_animations_unittest.cc',
149         'core/window_util_unittest.cc',
150       ],
151     },
152   ],