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