Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / ash / ash.gyp
blobb25366c1f6fa9a78134553112c44967d9808b896
1 # Copyright (c) 2012 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     'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome',
9   },
10   'includes': [
11     'ash_resources.gypi',
12   ],
13   'targets': [
14     {
15       'target_name': 'ash',
16       'type': '<(component)',
17       'dependencies': [
18         '../base/base.gyp:base',
19         '../base/base.gyp:base_i18n',
20         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
21         '../cc/cc.gyp:cc',
22         '../content/content.gyp:content',
23         '../content/content.gyp:content_browser',
24         '../ipc/ipc.gyp:ipc',
25         '../net/net.gyp:net',
26         '../skia/skia.gyp:skia',
27         '../third_party/icu/icu.gyp:icui18n',
28         '../third_party/icu/icu.gyp:icuuc',
29         '../ui/app_list/app_list.gyp:app_list',
30         '../ui/aura/aura.gyp:aura',
31         '../ui/base/strings/ui_strings.gyp:ui_strings',
32         '../ui/compositor/compositor.gyp:compositor',
33         '../ui/keyboard/keyboard.gyp:keyboard',
34         '../ui/message_center/message_center.gyp:message_center',
35         '../ui/oak/oak.gyp:oak',
36         '../ui/ui.gyp:ui',
37         '../ui/ui.gyp:ui_resources',
38         '../ui/views/controls/webview/webview.gyp:webview',
39         '../ui/views/views.gyp:views',
40         '../ui/web_dialogs/web_dialogs.gyp:web_dialogs',
41         '../url/url.gyp:url_lib',
42         'ash_strings.gyp:ash_strings',
43         'ash_resources',
44       ],
45       'defines': [
46         'ASH_IMPLEMENTATION',
47       ],
48       'sources': [
49         # All .cc, .h under ash, except unittests
50         'accelerators/accelerator_controller.cc',
51         'accelerators/accelerator_controller.h',
52         'accelerators/accelerator_dispatcher.cc',
53         'accelerators/accelerator_dispatcher.h',
54         'accelerators/accelerator_filter.cc',
55         'accelerators/accelerator_filter.h',
56         'accelerators/accelerator_table.cc',
57         'accelerators/accelerator_table.h',
58         'accelerators/exit_warning_handler.cc',
59         'accelerators/exit_warning_handler.h',
60         'accelerators/focus_manager_factory.cc',
61         'accelerators/focus_manager_factory.h',
62         'accelerators/nested_dispatcher_controller.cc',
63         'accelerators/nested_dispatcher_controller.h',
64         'ash_constants.cc',
65         'ash_constants.h',
66         'ash_switches.cc',
67         'ash_switches.h',
68         'cancel_mode.cc',
69         'cancel_mode.h',
70         'caps_lock_delegate.h',
71         'caps_lock_delegate_stub.cc',
72         'caps_lock_delegate_stub.h',
73         'debug.cc',
74         'debug.h',
75         'desktop_background/desktop_background_controller.cc',
76         'desktop_background/desktop_background_controller.h',
77         'desktop_background/desktop_background_controller_observer.h',
78         'desktop_background/desktop_background_view.cc',
79         'desktop_background/desktop_background_view.h',
80         'desktop_background/desktop_background_widget_controller.cc',
81         'desktop_background/desktop_background_widget_controller.h',
82         'desktop_background/user_wallpaper_delegate.h',
83         'desktop_background/wallpaper_resizer.cc',
84         'desktop_background/wallpaper_resizer.h',
85         'desktop_background/wallpaper_resizer_observer.h',
86         'display/display_change_observer_x11.cc',
87         'display/display_change_observer_x11.h',
88         'display/display_controller.cc',
89         'display/display_controller.h',
90         'display/display_error_observer.cc',
91         'display/display_error_observer.h',
92         'display/display_info.h',
93         'display/display_info.cc',
94         'display/display_layout.h',
95         'display/display_layout.cc',
96         'display/display_layout_store.h',
97         'display/display_layout_store.cc',
98         'display/display_manager.cc',
99         'display/display_manager.h',
100         'display/display_pref_util.h',
101         'display/display_util_x11.cc',
102         'display/display_util_x11.h',
103         'display/event_transformation_handler.cc',
104         'display/event_transformation_handler.h',
105         'display/mirror_window_controller.cc',
106         'display/mirror_window_controller.h',
107         'display/mouse_cursor_event_filter.cc',
108         'display/mouse_cursor_event_filter.h',
109         'display/output_configurator_animation.cc',
110         'display/output_configurator_animation.h',
111         'display/resolution_notification_controller.cc',
112         'display/resolution_notification_controller.h',
113         'display/root_window_transformers.cc',
114         'display/root_window_transformers.h',
115         'display/screen_position_controller.cc',
116         'display/screen_position_controller.h',
117         'display/shared_display_edge_indicator.cc',
118         'display/shared_display_edge_indicator.h',
119         'drag_drop/drag_drop_controller.cc',
120         'drag_drop/drag_drop_controller.h',
121         'drag_drop/drag_drop_tracker.cc',
122         'drag_drop/drag_drop_tracker.h',
123         'drag_drop/drag_image_view.cc',
124         'drag_drop/drag_image_view.h',
125         'event_rewriter_delegate.h',
126         'focus_cycler.cc',
127         'focus_cycler.h',
128         'high_contrast/high_contrast_controller.cc',
129         'high_contrast/high_contrast_controller.h',
130         'host/root_window_host_factory.cc',
131         'host/root_window_host_factory.h',
132         'host/root_window_host_factory_win.cc',
133         'keyboard_controller_proxy_stub.cc',
134         'keyboard_controller_proxy_stub.h',
135         'keyboard_overlay/keyboard_overlay_delegate.cc',
136         'keyboard_overlay/keyboard_overlay_delegate.h',
137         'keyboard_overlay/keyboard_overlay_view.cc',
138         'keyboard_overlay/keyboard_overlay_view.h',
139         'launcher/alternate_app_list_button.cc',
140         'launcher/alternate_app_list_button.h',
141         'launcher/app_list_button.cc',
142         'launcher/app_list_button.h',
143         'launcher/launcher.cc',
144         'launcher/launcher.h',
145         'launcher/launcher_alignment_menu.cc',
146         'launcher/launcher_alignment_menu.h',
147         'launcher/launcher_button.cc',
148         'launcher/launcher_button.h',
149         'launcher/launcher_delegate.h',
150         'launcher/launcher_icon_observer.h',
151         'launcher/launcher_model.cc',
152         'launcher/launcher_model.h',
153         'launcher/launcher_model_observer.h',
154         'launcher/launcher_navigator.cc',
155         'launcher/launcher_navigator.h',
156         'launcher/launcher_tooltip_manager.cc',
157         'launcher/launcher_tooltip_manager.h',
158         'launcher/launcher_types.cc',
159         'launcher/launcher_types.h',
160         'launcher/launcher_util.cc',
161         'launcher/launcher_util.h',
162         'launcher/launcher_view.cc',
163         'launcher/launcher_view.h',
164         'launcher/overflow_bubble.cc',
165         'launcher/overflow_bubble.h',
166         'launcher/overflow_button.cc',
167         'launcher/overflow_button.h',
168         'launcher/scoped_observer_with_duplicated_sources.h',
169         'launcher/tabbed_launcher_button.cc',
170         'launcher/tabbed_launcher_button.h',
171         'magnifier/magnification_controller.cc',
172         'magnifier/magnification_controller.h',
173         'magnifier/magnifier_constants.h',
174         'magnifier/partial_magnification_controller.cc',
175         'magnifier/partial_magnification_controller.h',
176         'popup_message.cc',
177         'popup_message.h',
178         'root_window_controller.cc',
179         'root_window_controller.h',
180         'rotator/screen_rotation.cc',
181         'rotator/screen_rotation.h',
182         'scoped_target_root_window.cc',
183         'scoped_target_root_window.h',
184         'screen_ash.cc',
185         'screen_ash.h',
186         'screensaver/screensaver_view.cc',
187         'screensaver/screensaver_view.h',
188         'screenshot_delegate.h',
189         'session_state_delegate.h',
190         'session_state_observer.h',
191         'shelf/background_animator.cc',
192         'shelf/background_animator.h',
193         'shelf/shelf_bezel_event_filter.cc',
194         'shelf/shelf_bezel_event_filter.h',
195         'shelf/shelf_layout_manager.cc',
196         'shelf/shelf_layout_manager.h',
197         'shelf/shelf_layout_manager_observer.h',
198         'shelf/shelf_types.h',
199         'shelf/shelf_widget.cc',
200         'shelf/shelf_widget.h',
201         'shell.cc',
202         'shell.h',
203         'shell_delegate.h',
204         'shell_factory.h',
205         'shell_window_ids.h',
206         'system/bluetooth/bluetooth_observer.h',
207         'system/bluetooth/tray_bluetooth.cc',
208         'system/bluetooth/tray_bluetooth.h',
209         'system/brightness/brightness_observer.h',
210         'system/brightness/brightness_control_delegate.h',
211         'system/brightness/tray_brightness.cc',
212         'system/brightness/tray_brightness.h',        
213         'system/chromeos/audio/tray_audio.cc',
214         'system/chromeos/audio/tray_audio.h',
215         'system/chromeos/enterprise/enterprise_domain_observer.h',
216         'system/chromeos/enterprise/tray_enterprise.h',
217         'system/chromeos/enterprise/tray_enterprise.cc',
218         'system/chromeos/keyboard_brightness_controller.cc',
219         'system/chromeos/keyboard_brightness_controller.h',
220         'system/chromeos/label_tray_view.h',
221         'system/chromeos/label_tray_view.cc',
222         'system/chromeos/managed/tray_locally_managed_user.h',
223         'system/chromeos/managed/tray_locally_managed_user.cc',
224         'system/chromeos/network/network_connect.cc',
225         'system/chromeos/network/network_connect.h',
226         'system/chromeos/network/network_detailed_view.h',
227         'system/chromeos/network/network_icon.cc',
228         'system/chromeos/network/network_icon.h',
229         'system/chromeos/network/network_icon_animation.cc',
230         'system/chromeos/network/network_icon_animation.h',
231         'system/chromeos/network/network_icon_animation_observer.h',
232         'system/chromeos/network/network_observer.cc',
233         'system/chromeos/network/network_observer.h',
234         'system/chromeos/network/network_state_list_detailed_view.cc',
235         'system/chromeos/network/network_state_list_detailed_view.h',
236         'system/chromeos/network/network_state_notifier.cc',
237         'system/chromeos/network/network_state_notifier.h',
238         'system/chromeos/network/network_tray_delegate.h',
239         'system/chromeos/network/tray_network.cc',
240         'system/chromeos/network/tray_network.h',
241         'system/chromeos/network/tray_network_state_observer.cc',
242         'system/chromeos/network/tray_network_state_observer.h',
243         'system/chromeos/network/tray_sms.cc',
244         'system/chromeos/network/tray_sms.h',
245         'system/chromeos/network/tray_vpn.cc',
246         'system/chromeos/network/tray_vpn.h',
247         'system/chromeos/power/power_status.cc',
248         'system/chromeos/power/power_status.h',
249         'system/chromeos/power/power_status_view.cc',
250         'system/chromeos/power/power_status_view.h',
251         'system/chromeos/power/tray_power.cc',
252         'system/chromeos/power/tray_power.h',
253         'system/chromeos/screen_security/screen_capture_observer.h',
254         'system/chromeos/screen_security/screen_capture_tray_item.cc',
255         'system/chromeos/screen_security/screen_capture_tray_item.h',
256         'system/chromeos/screen_security/screen_share_observer.h',
257         'system/chromeos/screen_security/screen_share_tray_item.cc',
258         'system/chromeos/screen_security/screen_share_tray_item.h',
259         'system/chromeos/screen_security/screen_tray_item.cc',
260         'system/chromeos/screen_security/screen_tray_item.h',
261         'system/chromeos/settings/tray_settings.cc',
262         'system/chromeos/settings/tray_settings.h',
263         'system/chromeos/tray_display.cc',
264         'system/chromeos/tray_display.h',
265         'system/chromeos/tray_tracing.cc',
266         'system/chromeos/tray_tracing.h',
267         'system/date/clock_observer.h',
268         'system/date/date_view.cc',
269         'system/date/date_view.h',
270         'system/date/tray_date.cc',
271         'system/date/tray_date.h',
272         'system/drive/drive_observer.h',
273         'system/drive/tray_drive.cc',
274         'system/drive/tray_drive.h',
275         'system/ime/ime_observer.h',
276         'system/ime/tray_ime.cc',
277         'system/ime/tray_ime.h',
278         'system/keyboard_brightness/keyboard_brightness_control_delegate.h',
279         'system/locale/locale_notification_controller.cc',
280         'system/locale/locale_notification_controller.h',
281         'system/logout_button/logout_button_observer.h',
282         'system/logout_button/tray_logout_button.cc',
283         'system/logout_button/tray_logout_button.h',
284         'system/monitor/tray_monitor.cc',
285         'system/monitor/tray_monitor.h',
286         'system/session_length_limit/session_length_limit_observer.h',
287         'system/session_length_limit/tray_session_length_limit.cc',
288         'system/session_length_limit/tray_session_length_limit.h',
289         'system/status_area_widget.cc',
290         'system/status_area_widget.h',
291         'system/status_area_widget_delegate.cc',
292         'system/status_area_widget_delegate.h',
293         'system/tray/actionable_view.cc',
294         'system/tray/actionable_view.h',
295         'system/tray/fixed_sized_image_view.cc',
296         'system/tray/fixed_sized_image_view.h',
297         'system/tray/fixed_sized_scroll_view.cc',
298         'system/tray/fixed_sized_scroll_view.h',
299         'system/tray/hover_highlight_view.cc',
300         'system/tray/hover_highlight_view.h',
301         'system/tray/special_popup_row.cc',
302         'system/tray/special_popup_row.h',
303         'system/tray/system_tray.cc',
304         'system/tray/system_tray.h',
305         'system/tray/system_tray_bubble.cc',
306         'system/tray/system_tray_bubble.h',
307         'system/tray/system_tray_delegate.cc',
308         'system/tray/system_tray_delegate.h',
309         'system/tray/system_tray_item.cc',
310         'system/tray/system_tray_item.h',
311         'system/tray/system_tray_notifier.cc',
312         'system/tray/system_tray_notifier.h',
313         'system/tray/test_system_tray_delegate.cc',
314         'system/tray/test_system_tray_delegate.h',
315         'system/tray/throbber_view.cc',
316         'system/tray/throbber_view.h',
317         'system/tray/tray_background_view.cc',
318         'system/tray/tray_background_view.h',
319         'system/tray/tray_bar_button_with_title.cc',
320         'system/tray/tray_bar_button_with_title.h',
321         'system/tray/tray_bubble_wrapper.cc',
322         'system/tray/tray_bubble_wrapper.h',
323         'system/tray/tray_constants.cc',
324         'system/tray/tray_constants.h',
325         'system/tray/tray_details_view.cc',
326         'system/tray/tray_details_view.h',
327         'system/tray/tray_empty.cc',
328         'system/tray/tray_empty.h',
329         'system/tray/tray_event_filter.cc',
330         'system/tray/tray_event_filter.h',
331         'system/tray/tray_image_item.cc',
332         'system/tray/tray_image_item.h',
333         'system/tray/tray_item_more.cc',
334         'system/tray/tray_item_more.h',
335         'system/tray/tray_item_view.cc',
336         'system/tray/tray_item_view.h',
337         'system/tray/tray_notification_view.cc',
338         'system/tray/tray_notification_view.h',
339         'system/tray/tray_popup_header_button.cc',
340         'system/tray/tray_popup_header_button.h',
341         'system/tray/tray_popup_label_button.cc',
342         'system/tray/tray_popup_label_button.cc',
343         'system/tray/tray_popup_label_button.h',
344         'system/tray/tray_popup_label_button_border.cc',
345         'system/tray/tray_popup_label_button_border.h',
346         'system/tray/tray_utils.cc',
347         'system/tray/tray_utils.h',
348         'system/tray/view_click_listener.h',
349         'system/tray_accessibility.cc',
350         'system/tray_accessibility.h',
351         'system/tray_caps_lock.cc',
352         'system/tray_caps_lock.h',
353         'system/tray_update.cc',
354         'system/tray_update.h',
355         'system/user/login_status.cc',
356         'system/user/login_status.h',
357         'system/user/tray_user.cc',
358         'system/user/tray_user.h',
359         'system/user/update_observer.h',
360         'system/user/user_observer.h',
361         'system/web_notification/web_notification_tray.cc',
362         'system/web_notification/web_notification_tray.h',
363         'touch/touch_hud_debug.cc',
364         'touch/touch_hud_debug.h',
365         'touch/touch_hud_projection.cc',
366         'touch/touch_hud_projection.h',
367         'touch/touch_observer_hud.cc',
368         'touch/touch_observer_hud.h',
369         'touch/touch_uma.cc',
370         'touch/touch_uma.h',
371         'volume_control_delegate.h',
372         'wm/app_list_controller.cc',
373         'wm/app_list_controller.h',
374         'wm/activation_controller.cc',
375         'wm/activation_controller.h',
376         'wm/activation_controller_delegate.h',
377         'wm/always_on_top_controller.cc',
378         'wm/always_on_top_controller.h',
379         'wm/ash_activation_controller.cc',
380         'wm/ash_activation_controller.h',
381         'wm/ash_native_cursor_manager.cc',
382         'wm/ash_native_cursor_manager.h',
383         'wm/ash_focus_rules.cc',
384         'wm/ash_focus_rules.h',
385         'wm/base_layout_manager.cc',
386         'wm/base_layout_manager.h',
387         'wm/boot_splash_screen.cc',
388         'wm/boot_splash_screen.h',
389         'wm/capture_controller.cc',
390         'wm/capture_controller.h',
391         'wm/coordinate_conversion.cc',
392         'wm/coordinate_conversion.h',
393         'wm/custom_frame_view_ash.cc',
394         'wm/custom_frame_view_ash.h',
395         'wm/default_window_resizer.cc',
396         'wm/default_window_resizer.h',
397         'wm/dock/docked_window_layout_manager.cc',
398         'wm/dock/docked_window_layout_manager.h',
399         'wm/dock/docked_window_layout_manager_observer.h',
400         'wm/dock/docked_window_resizer.cc',
401         'wm/dock/docked_window_resizer.h',
402         'wm/drag_window_controller.cc',
403         'wm/drag_window_controller.h',
404         'wm/drag_window_resizer.cc',
405         'wm/drag_window_resizer.h',
406         'wm/event_client_impl.cc',
407         'wm/event_client_impl.h',
408         'wm/event_rewriter_event_filter.cc',
409         'wm/event_rewriter_event_filter.h',
410         'wm/frame_painter.cc',
411         'wm/frame_painter.h',
412         'wm/gestures/long_press_affordance_handler.cc',
413         'wm/gestures/long_press_affordance_handler.h',
414         'wm/gestures/shelf_gesture_handler.cc',
415         'wm/gestures/shelf_gesture_handler.h',
416         'wm/gestures/system_pinch_handler.cc',
417         'wm/gestures/system_pinch_handler.h',
418         'wm/gestures/tray_gesture_handler.cc',
419         'wm/gestures/tray_gesture_handler.h',
420         'wm/gestures/two_finger_drag_handler.cc',
421         'wm/gestures/two_finger_drag_handler.h',
422         'wm/image_cursors.cc',
423         'wm/image_cursors.h',
424         'wm/lock_state_controller.cc',
425         'wm/lock_state_controller.h',
426         'wm/lock_state_controller_impl2.cc',
427         'wm/lock_state_controller_impl2.h',
428         'wm/lock_state_observer.h',
429         'wm/maximize_bubble_controller.cc',
430         'wm/maximize_bubble_controller.h',
431         'wm/mru_window_tracker.cc',
432         'wm/mru_window_tracker.h',
433         'wm/overlay_event_filter.cc',
434         'wm/overlay_event_filter.h',
435         'wm/panels/panel_frame_view.cc',
436         'wm/panels/panel_frame_view.h',
437         'wm/panels/panel_layout_manager.cc',
438         'wm/panels/panel_layout_manager.h',
439         'wm/panels/panel_window_event_handler.cc',
440         'wm/panels/panel_window_event_handler.h',
441         'wm/panels/panel_window_resizer.cc',
442         'wm/panels/panel_window_resizer.h',
443         'wm/partial_screenshot_view.cc',
444         'wm/partial_screenshot_view.h',
445         'wm/power_button_controller.cc',
446         'wm/power_button_controller.h',
447         'wm/property_util.cc',
448         'wm/property_util.h',
449         'wm/resize_shadow.cc',
450         'wm/resize_shadow.h',
451         'wm/resize_shadow_controller.cc',
452         'wm/resize_shadow_controller.h',
453         'wm/root_window_layout_manager.cc',
454         'wm/root_window_layout_manager.h',
455         'wm/screen_dimmer.cc',
456         'wm/screen_dimmer.h',
457         'wm/session_state_animator.cc',
458         'wm/session_state_animator.h',
459         'wm/session_state_controller_impl.cc',
460         'wm/session_state_controller_impl.h',
461         'wm/stacking_controller.cc',
462         'wm/stacking_controller.h',
463         'wm/status_area_layout_manager.cc',
464         'wm/status_area_layout_manager.h',
465         'wm/sticky_keys.cc',
466         'wm/sticky_keys.h',
467         'wm/system_background_controller.cc',
468         'wm/system_background_controller.h',
469         'wm/system_gesture_event_filter.cc',
470         'wm/system_gesture_event_filter.h',
471         'wm/system_modal_container_event_filter.cc',
472         'wm/system_modal_container_event_filter.h',
473         'wm/system_modal_container_event_filter_delegate.h',
474         'wm/system_modal_container_layout_manager.cc',
475         'wm/system_modal_container_layout_manager.h',
476         'wm/toplevel_window_event_handler.cc',
477         'wm/toplevel_window_event_handler.h',
478         'wm/user_activity_detector.cc',
479         'wm/user_activity_detector.h',
480         'wm/user_activity_observer.h',
481         'wm/video_detector.cc',
482         'wm/video_detector.h',
483         'wm/window_animations.cc',
484         'wm/window_animations.h',
485         'wm/window_cycle_controller.cc',
486         'wm/window_cycle_controller.h',
487         'wm/window_cycle_list.cc',
488         'wm/window_cycle_list.h',
489         'wm/window_properties.cc',
490         'wm/window_properties.h',
491         'wm/window_resizer.cc',
492         'wm/window_resizer.h',
493         'wm/window_selector.cc',
494         'wm/window_selector.h',
495         'wm/window_selector_controller.cc',
496         'wm/window_selector_controller.h',
497         'wm/window_selector_delegate.h',
498         'wm/window_util.cc',
499         'wm/window_util.h',
500         'wm/workspace_controller.cc',
501         'wm/workspace_controller.h',
502         'wm/workspace/auto_window_management.cc',
503         'wm/workspace/auto_window_management.h',
504         'wm/workspace/colored_window_controller.cc',
505         'wm/workspace/colored_window_controller.h',
506         'wm/workspace/desktop_background_fade_controller.cc',
507         'wm/workspace/desktop_background_fade_controller.h',
508         'wm/workspace/frame_maximize_button.cc',
509         'wm/workspace/frame_maximize_button.h',
510         'wm/workspace/magnetism_matcher.cc',
511         'wm/workspace/magnetism_matcher.h',
512         'wm/workspace/maximize_bubble_frame_state.h',
513         'wm/workspace/multi_window_resize_controller.cc',
514         'wm/workspace/multi_window_resize_controller.h',
515         'wm/workspace/phantom_window_controller.cc',
516         'wm/workspace/phantom_window_controller.h',
517         'wm/workspace/snap_sizer.cc',
518         'wm/workspace/snap_sizer.h',
519         'wm/workspace/snap_types.h',
520         'wm/workspace/workspace_event_handler.cc',
521         'wm/workspace/workspace_event_handler.h',
522         'wm/workspace/workspace_layout_manager.cc',
523         'wm/workspace/workspace_layout_manager.h',
524         'wm/workspace/workspace_types.h',
525         'wm/workspace/workspace_window_resizer.cc',
526         'wm/workspace/workspace_window_resizer.h',
527       ],
528       'conditions': [
529         ['OS=="mac"', {
530           'sources/': [
531             ['exclude', 'accelerators/accelerator_controller.cc'],
532             ['exclude', 'accelerators/accelerator_controller.h'],
533             ['exclude', 'accelerators/accelerator_dispatcher.cc'],
534             ['exclude', 'accelerators/accelerator_dispatcher.h'],
535             ['exclude', 'accelerators/accelerator_filter.cc'],
536             ['exclude', 'accelerators/accelerator_filter.h'],
537             ['exclude', 'accelerators/exit_warning_handler.cc'],
538             ['exclude', 'accelerators/exit_warning_handler.h'],
539             ['exclude', 'accelerators/nested_dispatcher_controller.cc'],
540             ['exclude', 'accelerators/nested_dispatcher_controller.h'],
541           ],
542         }],
543         ['OS=="win"', {
544           'sources/': [
545             ['exclude', 'host/root_window_host_factory.cc'],
546             ['exclude', 'wm/sticky_keys.cc'],
547             ['exclude', 'wm/sticky_keys.h'],
548           ],
549           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
550           'msvs_disabled_warnings': [ 4267, ],
551         }],
552         ['OS!="linux"', {
553           'sources/': [
554             ['exclude', 'system/monitor/tray_monitor.cc'],
555             ['exclude', 'system/monitor/tray_monitor.h'],
556           ],
557         }],
558         ['chromeos==1', {
559           'dependencies': [
560             '../chromeos/chromeos.gyp:chromeos',
561             # Ash #includes power_supply_properties.pb.h directly.
562             '../chromeos/chromeos.gyp:power_manager_proto',
563           ],
564         }, { # else: chromeos!=1
565           'sources/': [
566             ['exclude', '/chromeos/'],
567             ['exclude', 'display/display_error_observer.cc'],
568             ['exclude', 'display/display_error_observer.h'],
569             ['exclude', 'display/output_configurator_animation.cc'],
570             ['exclude', 'display/output_configurator_animation.h'],
571           ],
572         }],
573       ],
574     },
575     {
576       'target_name': 'ash_test_support',
577       'type': 'static_library',
578       'dependencies': [
579         '../skia/skia.gyp:skia',
580         '../testing/gtest.gyp:gtest',
581         'ash',
582         'ash_resources',
583       ],
584       'sources': [
585         'test/ash_test_base.cc',
586         'test/ash_test_base.h',
587         'test/ash_test_helper.cc',
588         'test/ash_test_helper.h',
589         'test/cursor_manager_test_api.cc',
590         'test/cursor_manager_test_api.h',
591         'test/launcher_view_test_api.cc',
592         'test/launcher_view_test_api.h',
593         'test/display_manager_test_api.cc',
594         'test/display_manager_test_api.h',
595         'test/mirror_window_test_api.cc',
596         'test/mirror_window_test_api.h',
597         'test/shell_test_api.cc',
598         'test/shell_test_api.h',
599         'test/test_activation_delegate.cc',
600         'test/test_activation_delegate.h',
601         'test/test_launcher_delegate.cc',
602         'test/test_launcher_delegate.h',
603         'test/test_session_state_delegate.cc',
604         'test/test_session_state_delegate.cc',
605         'test/test_shell_delegate.cc',
606         'test/test_shell_delegate.h',
607         'test/test_suite.cc',
608         'test/test_suite.h',
609         'test/test_suite_init.h',
610         'test/test_suite_init.mm',
611         'test/ui_controls_factory_ash.cc',
612         'test/ui_controls_factory_ash.h',
613       ],
614       'conditions': [
615         ['OS=="win"', {
616           'dependencies': [
617             '../ipc/ipc.gyp:ipc',
618             '../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
619             '../win8/win8.gyp:metro_viewer',
620             '../win8/win8.gyp:test_support_win8',
621             '../win8/win8_tests.gyp:test_registrar',
622           ],
623           'sources': [
624             'test/test_metro_viewer_process_host.cc',
625             'test/test_metro_viewer_process_host.h',
626           ],
627         }],
628       ],
629     },
630     {
631       'target_name': 'ash_unittests',
632       'type': 'executable',
633       'dependencies': [
634         '../base/base.gyp:base',
635         '../base/base.gyp:test_support_base',
636         '../chrome/chrome_resources.gyp:packed_resources',
637         '../content/content.gyp:content_browser',
638         '../content/content.gyp:test_support_content',
639         '../skia/skia.gyp:skia',
640         '../testing/gtest.gyp:gtest',
641         '../third_party/icu/icu.gyp:icui18n',
642         '../third_party/icu/icu.gyp:icuuc',
643         '../ui/app_list/app_list.gyp:app_list',
644         '../ui/aura/aura.gyp:aura',
645         '../ui/aura/aura.gyp:aura_test_support',
646         '../ui/compositor/compositor.gyp:compositor',
647         '../ui/keyboard/keyboard.gyp:keyboard',
648         '../ui/message_center/message_center.gyp:message_center',
649         '../ui/message_center/message_center.gyp:message_center_test_support',
650         '../ui/ui.gyp:ui',
651         '../ui/ui.gyp:ui_resources',
652         '../ui/ui.gyp:ui_test_support',
653         '../ui/views/views.gyp:views',
654         '../ui/views/views.gyp:views_examples_with_content_lib',
655         '../ui/views/views.gyp:views_test_support',
656         '../ui/views/views.gyp:views_with_content_test_support',
657         '../ui/web_dialogs/web_dialogs.gyp:web_dialogs_test_support',
658         '../url/url.gyp:url_lib',
659         'ash_strings.gyp:ash_strings',
660         'ash',
661         'ash_resources',
662         'ash_test_support',
663       ],
664       'sources': [
665         '../ui/compositor/test/layer_animator_test_controller.cc',
666         '../ui/compositor/test/layer_animator_test_controller.h',
667         '../ui/views/test/test_views_delegate.cc',
668         '../ui/views/test/test_views_delegate.h',
669         'accelerators/accelerator_controller_unittest.cc',
670         'accelerators/accelerator_filter_unittest.cc',
671         'accelerators/accelerator_table_unittest.cc',
672         'accelerators/nested_dispatcher_controller_unittest.cc',
673         'desktop_background/desktop_background_controller_unittest.cc',
674         'desktop_background/wallpaper_resizer_unittest.cc',
675         'dip_unittest.cc',
676         'display/display_controller_unittest.cc',
677         'display/display_error_observer_unittest.cc',
678         'display/display_info_unittest.cc',
679         'display/display_manager_unittest.cc',
680         'display/mirror_window_controller_unittest.cc',
681         'display/mouse_cursor_event_filter_unittest.cc',
682         'display/resolution_notification_controller_unittest.cc',
683         'display/root_window_transformers_unittest.cc',
684         'display/screen_position_controller_unittest.cc',
685         'drag_drop/drag_drop_controller_unittest.cc',
686         'drag_drop/drag_drop_tracker_unittest.cc',
687         'extended_desktop_unittest.cc',
688         'focus_cycler_unittest.cc',
689         'keyboard_overlay/keyboard_overlay_delegate_unittest.cc',
690         'keyboard_overlay/keyboard_overlay_view_unittest.cc',
691         'launcher/launcher_model_unittest.cc',
692         'launcher/launcher_navigator_unittest.cc',
693         'launcher/launcher_tooltip_manager_unittest.cc',
694         'launcher/launcher_unittest.cc',
695         'launcher/launcher_view_unittest.cc',
696         'launcher/scoped_observer_with_duplicated_sources_unittest.cc',
697         'magnifier/magnification_controller_unittest.cc',
698         'root_window_controller_unittest.cc',
699         'screen_ash_unittest.cc',
700         'screensaver/screensaver_view_unittest.cc',
701         'session_state_delegate_stub.cc',
702         'session_state_delegate_stub.h',
703         'shelf/shelf_layout_manager_unittest.cc',
704         'shelf/shelf_widget_unittest.cc',
705         'shell_unittest.cc',
706         'shell/app_list.cc',
707         'shell/bubble.cc',
708         'shell/context_menu.cc',
709         'shell/context_menu.h',
710         'shell/launcher_delegate_impl.cc',
711         'shell/lock_view.cc',
712         'shell/panel_window.cc',
713         'shell/shell_delegate_impl.cc',
714         'shell/shell_delegate_impl.h',
715         'shell/toplevel_window.cc',
716         'shell/widgets.cc',
717         'shell/window_type_launcher.cc',
718         'shell/window_watcher.cc',
719         'shell/window_watcher_unittest.cc',
720         'system/chromeos/network/network_state_notifier_unittest.cc',
721         'system/chromeos/power/power_status_unittest.cc',
722         'system/chromeos/power/tray_power_unittest.cc',
723         'system/chromeos/screen_security/screen_tray_item_unittest.cc',
724         'system/chromeos/tray_display_unittest.cc',
725         'system/tray/system_tray_unittest.cc',
726         'system/user/tray_user_unittest.cc',
727         'system/web_notification/web_notification_tray_unittest.cc',
728         'test/ash_test_helper_unittest.cc',
729         'test/ash_unittests.cc',
730         'tooltips/tooltip_controller_unittest.cc',
731         'touch/touch_observer_hud_unittest.cc',
732         'wm/activation_controller_unittest.cc',
733         'wm/ash_activation_controller_unittest.cc',
734         'wm/ash_native_cursor_manager_unittest.cc',
735         'wm/base_layout_manager_unittest.cc',
736         'wm/custom_frame_view_ash_unittest.cc',
737         'wm/dock/docked_window_layout_manager_unittest.cc',
738         'wm/dock/docked_window_resizer_unittest.cc',
739         'wm/drag_window_resizer_unittest.cc',
740         'wm/frame_painter_unittest.cc',
741         'wm/lock_state_controller_impl2_unittest.cc',
742         'wm/panels/panel_layout_manager_unittest.cc',
743         'wm/panels/panel_window_resizer_unittest.cc',
744         'wm/partial_screenshot_view_unittest.cc',
745         'wm/power_button_controller_unittest.cc',
746         'wm/screen_dimmer_unittest.cc',
747         'wm/stacking_controller_unittest.cc',
748         'wm/sticky_keys_unittest.cc',
749         'wm/system_gesture_event_filter_unittest.cc',
750         'wm/system_modal_container_layout_manager_unittest.cc',
751         'wm/toplevel_window_event_handler_unittest.cc',
752         'wm/user_activity_detector_unittest.cc',
753         'wm/video_detector_unittest.cc',
754         'wm/window_animations_unittest.cc',
755         'wm/window_cycle_controller_unittest.cc',
756         'wm/window_manager_unittest.cc',
757         'wm/window_modality_controller_unittest.cc',
758         'wm/window_selector_unittest.cc',
759         'wm/window_util_unittest.cc',
760         'wm/workspace_controller_test_helper.cc',
761         'wm/workspace_controller_test_helper.h',
762         'wm/workspace_controller_unittest.cc',
763         'wm/workspace/magnetism_matcher_unittest.cc',
764         'wm/workspace/multi_window_resize_controller_unittest.cc',
765         'wm/workspace/workspace_event_handler_test_helper.cc',
766         'wm/workspace/workspace_event_handler_test_helper.h',
767         'wm/workspace/workspace_event_handler_unittest.cc',
768         'wm/workspace/workspace_layout_manager_unittest.cc',
769         'wm/workspace/workspace_window_resizer_unittest.cc',
770       ],
771       'conditions': [
772         ['OS=="win"', {
773           'sources/': [
774             # TODO(zork): fix this test to build on Windows. See: crosbug.com/26906
775             ['exclude', 'focus_cycler_unittest.cc'],
776             # All tests for multiple displays: not supported on Windows Ash.
777             ['exclude', 'accelerators/nested_dispatcher_controller_unittest.cc'],
778             ['exclude', 'wm/drag_window_resizer_unittest.cc'],
779             # Can't resize on Windows Ash. http://crbug.com/165962
780             ['exclude', 'ash_root_window_transformer_unittest.cc'],
781             ['exclude', 'magnifier/magnification_controller_unittest.cc'],
782             ['exclude', 'wm/workspace/workspace_window_resizer_unittest.cc'],
783             ['exclude', 'wm/sticky_keys_unittest.cc'],
784           ],
785           'sources': [
786             '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_unscaled_resources.rc',
787           ],
788           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
789           'msvs_disabled_warnings': [ 4267, ],
790         }],
791         ['OS=="mac"', {
792           'sources/': [
793             ['exclude', 'accelerators/accelerator_controller_unittest.cc'],
794             ['exclude', 'accelerators/accelerator_filter_unittest.cc'],
795             ['exclude', 'accelerators/nested_dispatcher_controller_unittest.cc'],
796             ['exclude', 'drag_drop/drag_drop_controller_unittest.cc'],
797             ['exclude', 'tooltips/tooltip_controller_unittest.cc'],
798           ],
799           'dependencies': [
800             # Mac tests access resources via the 'AuraShell.app' directory.
801             'ash_shell',
802           ],
803           # Special linker instructions that avoids stripping Obj-C classes that
804           # are not referenced in code, but are referenced in nibs.
805           'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
806         }],
807         ['use_x11==1', {
808           'sources': [
809             'display/display_util_x11_unittest.cc'
810           ],
811         }],
812         ['chromeos!=1', {
813           'sources/': [
814             ['exclude', 'display/display_error_observer_unittest.cc'],
815           ],
816         }, {  # chromeos==1
817           'dependencies': [
818             '../chromeos/chromeos.gyp:power_manager_proto',
819           ],
820         }],
821         ['OS=="linux" and component=="shared_library" and linux_use_tcmalloc==1', {
822           'dependencies': [
823             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
824           ],
825           'link_settings': {
826             'ldflags': ['-rdynamic'],
827           },
828         }],
829       ],
830     },
831     {
832       'target_name': 'ash_shell',
833       'type': 'executable',
834       'dependencies': [
835         'ash_strings.gyp:ash_strings',
836         '../base/base.gyp:base',
837         '../base/base.gyp:base_i18n',
838         '../chrome/chrome_resources.gyp:packed_resources',
839         '../content/content.gyp:content_shell_lib',
840         '../content/content.gyp:content',
841         '../skia/skia.gyp:skia',
842         '../third_party/icu/icu.gyp:icui18n',
843         '../third_party/icu/icu.gyp:icuuc',
844         '../ui/app_list/app_list.gyp:app_list',
845         '../ui/aura/aura.gyp:aura',
846         '../ui/compositor/compositor.gyp:compositor',
847         '../ui/keyboard/keyboard.gyp:keyboard',
848         '../ui/message_center/message_center.gyp:message_center',
849         '../ui/ui.gyp:ui',
850         '../ui/ui.gyp:ui_resources',
851         '../ui/views/views.gyp:views',
852         '../ui/views/views.gyp:views_examples_lib',
853         '../ui/views/views.gyp:views_examples_with_content_lib',
854         '../ui/views/views.gyp:views_test_support',
855         'ash',
856         'ash_resources',
857       ],
858       'sources': [
859         'session_state_delegate_stub.cc',
860         'session_state_delegate_stub.h',
861         'shell/app_list.cc',
862         'shell/bubble.cc',
863         'shell/content_client/shell_browser_main_parts.cc',
864         'shell/content_client/shell_browser_main_parts.h',
865         'shell/content_client/shell_content_browser_client.cc',
866         'shell/content_client/shell_content_browser_client.h',
867         'shell/content_client/shell_main_delegate.cc',
868         'shell/content_client/shell_main_delegate.h',
869         'shell/context_menu.cc',
870         'shell/context_menu.h',
871         'shell/example_factory.h',
872         'shell/launcher_delegate_impl.cc',
873         'shell/launcher_delegate_impl.h',
874         'shell/lock_view.cc',
875         'shell/panel_window.cc',
876         'shell/panel_window.h',
877         'shell/shell_delegate_impl.cc',
878         'shell/shell_delegate_impl.h',
879         'shell/shell_main.cc',
880         'shell/shell_main_parts.cc',
881         'shell/shell_main_parts.h',
882         'shell/shell_main_parts_mac.mm',
883         'shell/toplevel_window.cc',
884         'shell/toplevel_window.h',
885         'shell/widgets.cc',
886         'shell/window_type_launcher.cc',
887         'shell/window_type_launcher.h',
888         'shell/window_watcher.cc',
889         'shell/window_watcher.h',
890         '../content/app/startup_helper_win.cc',
891         '../ui/views/test/test_views_delegate.cc',
892       ],
893       'conditions': [
894         ['OS=="win"', {
895           'msvs_settings': {
896             'VCLinkerTool': {
897               'SubSystem': '2',  # Set /SUBSYSTEM:WINDOWS
898             },
899           },
900           'dependencies': [
901             '../sandbox/sandbox.gyp:sandbox',
902           ],
903         }],
904         ['OS=="mac"', {
905           'product_name': 'AuraShell',
906           'mac_bundle': 1,
907           'sources/': [
908             ['exclude', 'shell/shell_main_parts.cc'],
909           ],
910           'mac_bundle_resources': [
911             'shell/cocoa/app.icns',
912             'shell/cocoa/app-Info.plist',
913             'shell/cocoa/nibs/MainMenu.xib',
914             'shell/cocoa/nibs/RootWindow.xib',
915             '<(SHARED_INTERMEDIATE_DIR)/repack/chrome.pak',
916             '<!@pymod_do_main(repack_locales -o -p <(OS) -g <(grit_out_dir) -s <(SHARED_INTERMEDIATE_DIR) -x <(SHARED_INTERMEDIATE_DIR) <(locales))',
917           ],
918           'mac_bundle_resources!': [
919             'shell/cocoa/app-Info.plist',
920           ],
921           'xcode_settings': {
922             'INFOPLIST_FILE': 'shell/cocoa/app-Info.plist',
923           },
924         }],
925       ],
926     },
927   ],