Move "pack" button in the top toolbar to an action in the list of unpacked items.
[chromium-blink-merge.git] / ui / ui.gyp
blobea2ebc389082b994d6489f9ca0af6cd4a48475ca
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   },
9   'includes': [
10     'shell_dialogs.gypi',
11     'ui_resources.gypi',
12     'ui_unittests.gypi',
13   ],
14   'targets': [
15     {
16       'target_name': 'ui',
17       'type': '<(component)',
18       'dependencies': [
19         '../base/base.gyp:base',
20         '../base/base.gyp:base_i18n',
21         '../base/base.gyp:base_static',
22         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
23         '../net/net.gyp:net',
24         '../skia/skia.gyp:skia',
25         '../third_party/icu/icu.gyp:icui18n',
26         '../third_party/icu/icu.gyp:icuuc',
27         '../third_party/libpng/libpng.gyp:libpng',
28         '../third_party/zlib/zlib.gyp:zlib',
29         '../url/url.gyp:url_lib',
30         'base/strings/ui_strings.gyp:ui_strings',
31         'ui_resources',
32       ],
33       'defines': [
34         'UI_IMPLEMENTATION',
35       ],
36       # Export these dependencies since text_elider.h includes ICU headers.
37       'export_dependent_settings': [
38         '../net/net.gyp:net',
39         '../third_party/icu/icu.gyp:icui18n',
40         '../third_party/icu/icu.gyp:icuuc',
41       ],
42       'sources' : [
43         'android/ui_jni_registrar.cc',
44         'android/ui_jni_registrar.h',
45         'android/view_android.cc',
46         'android/view_android.h',
47         'android/window_android.cc',
48         'android/window_android.h',
49         'base/accelerators/accelerator.cc',
50         'base/accelerators/accelerator.h',
51         'base/accelerators/platform_accelerator.h',
52         'base/accelerators/platform_accelerator_cocoa.h',
53         'base/accelerators/platform_accelerator_cocoa.mm',
54         'base/accelerators/platform_accelerator_gtk.cc',
55         'base/accelerators/platform_accelerator_gtk.h',
56         'base/accelerators/accelerator_manager.cc',
57         'base/accelerators/accelerator_manager.h',
58         'base/accessibility/accessibility_types.h',
59         'base/accessibility/accessible_text_utils.cc',
60         'base/accessibility/accessible_text_utils.h',
61         'base/accessibility/accessible_view_state.cc',
62         'base/accessibility/accessible_view_state.h',
63         'base/animation/animation.cc',
64         'base/animation/animation.h',
65         'base/animation/animation_container.cc',
66         'base/animation/animation_container.h',
67         'base/animation/animation_container_element.h',
68         'base/animation/animation_container_observer.h',
69         'base/animation/animation_delegate.h',
70         'base/animation/linear_animation.cc',
71         'base/animation/linear_animation.h',
72         'base/animation/multi_animation.cc',
73         'base/animation/multi_animation.h',
74         'base/animation/slide_animation.cc',
75         'base/animation/slide_animation.h',
76         'base/animation/throb_animation.cc',
77         'base/animation/throb_animation.h',
78         'base/animation/tween.cc',
79         'base/animation/tween.h',
80         'base/base_window.h',
81         'base/clipboard/clipboard.cc',
82         'base/clipboard/clipboard.h',
83         'base/clipboard/clipboard_android.cc',
84         'base/clipboard/clipboard_android_initialization.h',
85         'base/clipboard/clipboard_aura.cc',
86         'base/clipboard/clipboard_aurax11.cc',
87         'base/clipboard/clipboard_constants.cc',
88         'base/clipboard/clipboard_gtk.cc',
89         'base/clipboard/clipboard_mac.mm',
90         'base/clipboard/clipboard_util_win.cc',
91         'base/clipboard/clipboard_util_win.h',
92         'base/clipboard/clipboard_win.cc',
93         'base/clipboard/custom_data_helper.cc',
94         'base/clipboard/custom_data_helper.h',
95         'base/clipboard/custom_data_helper_linux.cc',
96         'base/clipboard/custom_data_helper_mac.mm',
97         'base/clipboard/scoped_clipboard_writer.cc',
98         'base/clipboard/scoped_clipboard_writer.h',
99         'base/cocoa/animation_utils.h',
100         'base/cocoa/base_view.h',
101         'base/cocoa/base_view.mm',
102         'base/cocoa/cocoa_event_utils.h',
103         'base/cocoa/cocoa_event_utils.mm',
104         'base/cocoa/events_mac.mm',
105         'base/cocoa/find_pasteboard.h',
106         'base/cocoa/find_pasteboard.mm',
107         'base/cocoa/flipped_view.h',
108         'base/cocoa/flipped_view.mm',
109         'base/cocoa/focus_tracker.h',
110         'base/cocoa/focus_tracker.mm',
111         'base/cocoa/focus_window_set.h',
112         'base/cocoa/focus_window_set.mm',
113         'base/cocoa/fullscreen_window_manager.h',
114         'base/cocoa/fullscreen_window_manager.mm',
115         'base/cocoa/hover_button.h',
116         'base/cocoa/hover_button.mm',
117         'base/cocoa/hover_image_button.h',
118         'base/cocoa/hover_image_button.mm',
119         'base/cocoa/menu_controller.h',
120         'base/cocoa/menu_controller.mm',
121         'base/cocoa/nib_loading.h',
122         'base/cocoa/nib_loading.mm',
123         'base/cocoa/nsgraphics_context_additions.h',
124         'base/cocoa/nsgraphics_context_additions.mm',
125         'base/cocoa/tracking_area.h',
126         'base/cocoa/tracking_area.mm',
127         'base/cocoa/underlay_opengl_hosting_window.h',
128         'base/cocoa/underlay_opengl_hosting_window.mm',
129         'base/cocoa/view_description.h',
130         'base/cocoa/view_description.mm',
131         'base/cocoa/window_size_constants.h',
132         'base/cocoa/window_size_constants.mm',
133         'base/cursor/cursor.cc',
134         'base/cursor/cursor.h',
135         'base/cursor/cursor_loader.h',
136         'base/cursor/cursor_loader_null.cc',
137         'base/cursor/cursor_loader_null.h',
138         'base/cursor/cursor_loader_win.cc',
139         'base/cursor/cursor_null.cc',
140         'base/cursor/cursor_loader_win.h',
141         'base/cursor/cursor_loader_x11.cc',
142         'base/cursor/cursor_loader_x11.h',
143         'base/cursor/cursor_win.cc',
144         'base/cursor/cursor_x11.cc',
145         'base/cursor/cursors_aura.cc',
146         'base/cursor/cursors_aura.h',
147         'base/default_theme_provider.cc',
148         'base/default_theme_provider.h',
149         'base/default_theme_provider_mac.mm',
150         'base/dragdrop/cocoa_dnd_util.h',
151         'base/dragdrop/cocoa_dnd_util.mm',
152         'base/dragdrop/desktop_selection_provider_aurax11.h',
153         'base/dragdrop/drag_drop_types.h',
154         'base/dragdrop/drag_drop_types_win.cc',
155         'base/dragdrop/drag_source_win.cc',
156         'base/dragdrop/drag_source_win.h',
157         'base/dragdrop/drag_utils.cc',
158         'base/dragdrop/drag_utils.h',
159         'base/dragdrop/drag_utils_aura.cc',
160         'base/dragdrop/drag_utils_win.cc',
161         'base/dragdrop/drop_target_win.cc',
162         'base/dragdrop/drop_target_win.h',
163         'base/dragdrop/gtk_dnd_util.cc',
164         'base/dragdrop/gtk_dnd_util.h',
165         'base/dragdrop/os_exchange_data.cc',
166         'base/dragdrop/os_exchange_data.h',
167         'base/dragdrop/os_exchange_data_provider_aurax11.cc',
168         'base/dragdrop/os_exchange_data_provider_aurax11.h',
169         'base/dragdrop/os_exchange_data_provider_aura.cc',
170         'base/dragdrop/os_exchange_data_provider_aura.h',
171         'base/dragdrop/os_exchange_data_provider_win.cc',
172         'base/dragdrop/os_exchange_data_provider_win.h',
173         'base/events/event.cc',
174         'base/events/event.h',
175         'base/events/event_constants.h',
176         'base/events/event_conversion_gtk.cc',
177         'base/events/event_conversion_gtk.h',
178         'base/events/event_dispatcher.cc',
179         'base/events/event_dispatcher.h',
180         'base/events/event_handler.cc',
181         'base/events/event_handler.h',
182         'base/events/event_target.cc',
183         'base/events/event_target.h',
184         'base/events/event_utils.cc',
185         'base/events/event_utils.h',
186         'base/events/key_identifier_conversion.cc',
187         'base/events/key_identifier_conversion.h',
188         'base/gestures/gesture_configuration.cc',
189         'base/gestures/gesture_configuration.h',
190         'base/gestures/gesture_point.cc',
191         'base/gestures/gesture_point.h',
192         'base/gestures/gesture_recognizer.h',
193         'base/gestures/gesture_recognizer_impl.cc',
194         'base/gestures/gesture_recognizer_impl.h',
195         'base/gestures/gesture_sequence.cc',
196         'base/gestures/gesture_sequence.h',
197         'base/gestures/gesture_types.cc',
198         'base/gestures/gesture_types.h',
199         'base/gestures/gesture_util.cc',
200         'base/gestures/gesture_util.h',
201         'base/gestures/velocity_calculator.cc',
202         'base/gestures/velocity_calculator.h',
203         'base/gtk/event_synthesis_gtk.cc',
204         'base/gtk/event_synthesis_gtk.h',
205         'base/gtk/focus_store_gtk.cc',
206         'base/gtk/focus_store_gtk.h',
207         'base/gtk/g_object_destructor_filo.cc',
208         'base/gtk/g_object_destructor_filo.h',
209         'base/gtk/gtk_expanded_container.cc',
210         'base/gtk/gtk_expanded_container.h',
211         'base/gtk/gtk_floating_container.cc',
212         'base/gtk/gtk_floating_container.h',
213         'base/gtk/gtk_hig_constants.h',
214         'base/gtk/gtk_im_context_util.cc',
215         'base/gtk/gtk_im_context_util.h',
216         'base/gtk/gtk_screen_util.cc',
217         'base/gtk/gtk_screen_util.h',
218         'base/gtk/gtk_signal.h',
219         'base/gtk/gtk_signal_registrar.cc',
220         'base/gtk/gtk_signal_registrar.h',
221         'base/gtk/gtk_windowing.cc',
222         'base/gtk/gtk_windowing.h',
223         'base/gtk/menu_label_accelerator_util.cc',
224         'base/gtk/menu_label_accelerator_util.h',
225         'base/gtk/owned_widget_gtk.cc',
226         'base/gtk/owned_widget_gtk.h',
227         'base/gtk/scoped_gobject.h',
228         'base/gtk/scoped_region.cc',
229         'base/gtk/scoped_region.h',
230         'base/hit_test.h',
231         'base/keycodes/keyboard_code_conversion.cc',
232         'base/keycodes/keyboard_code_conversion.h',
233         'base/keycodes/keyboard_code_conversion_gtk.cc',
234         'base/keycodes/keyboard_code_conversion_gtk.h',
235         'base/keycodes/keyboard_code_conversion_mac.h',
236         'base/keycodes/keyboard_code_conversion_mac.mm',
237         'base/keycodes/keyboard_code_conversion_win.cc',
238         'base/keycodes/keyboard_code_conversion_win.h',
239         'base/keycodes/keyboard_code_conversion_x.cc',
240         'base/keycodes/keyboard_code_conversion_x.h',
241         'base/keycodes/keyboard_codes.h',
242         'base/keycodes/usb_keycode_map.h',
243         'base/latency_info.cc',
244         'base/latency_info.h',
245         'base/l10n/l10n_font_util.cc',
246         'base/l10n/l10n_font_util.h',
247         'base/l10n/l10n_util.cc',
248         'base/l10n/l10n_util.h',
249         'base/l10n/l10n_util_android.h',
250         'base/l10n/l10n_util_android.cc',
251         'base/l10n/l10n_util_collator.h',
252         'base/l10n/l10n_util_mac.h',
253         'base/l10n/l10n_util_mac.mm',
254         'base/l10n/l10n_util_posix.cc',
255         'base/l10n/l10n_util_win.cc',
256         'base/l10n/l10n_util_win.h',
257         'base/layout.cc',
258         'base/layout.h',
259         'base/layout_mac.mm',
260         'base/models/button_menu_item_model.cc',
261         'base/models/button_menu_item_model.h',
262         'base/models/combobox_model.cc',
263         'base/models/combobox_model.h',
264         'base/models/dialog_model.cc',
265         'base/models/dialog_model.h',
266         'base/models/list_model.h',
267         'base/models/list_model_observer.h',
268         'base/models/list_selection_model.cc',
269         'base/models/list_selection_model.h',
270         'base/models/menu_model.cc',
271         'base/models/menu_model.h',
272         'base/models/menu_model_delegate.h',
273         'base/models/menu_separator_types.h',
274         'base/models/simple_menu_model.cc',
275         'base/models/simple_menu_model.h',
276         'base/models/table_model.cc',
277         'base/models/table_model.h',
278         'base/models/table_model_observer.h',
279         'base/models/tree_model.cc',
280         'base/models/tree_model.h',
281         'base/models/tree_node_iterator.h',
282         'base/models/tree_node_model.h',
283         'base/ozone/events_ozone.cc',
284         'base/ozone/event_factory_ozone.cc',
285         'base/ozone/event_factory_ozone.h',
286         'base/ozone/event_converter_ozone.cc',
287         'base/ozone/event_converter_ozone.h',
288         'base/ozone/events_ozone.cc',
289         'base/ozone/key_event_converter_ozone.cc',
290         'base/ozone/key_event_converter_ozone.h',
291         'base/ozone/surface_factory_ozone.cc',
292         'base/ozone/surface_factory_ozone.h',
293         'base/ozone/touch_event_converter_ozone.cc',
294         'base/ozone/touch_event_converter_ozone.h',
295         'base/range/range.cc',
296         'base/range/range.h',
297         'base/range/range_mac.mm',
298         'base/range/range_win.cc',
299         'base/resource/data_pack.cc',
300         'base/resource/data_pack.h',
301         'base/resource/resource_bundle.cc',
302         'base/resource/resource_bundle.h',
303         'base/resource/resource_bundle_android.cc',
304         'base/resource/resource_bundle_auralinux.cc',
305         'base/resource/resource_bundle_gtk.cc',
306         'base/resource/resource_bundle_ios.mm',
307         'base/resource/resource_bundle_mac.mm',
308         'base/resource/resource_bundle_win.cc',
309         'base/resource/resource_bundle_win.h',
310         'base/resource/resource_data_dll_win.cc',
311         'base/resource/resource_data_dll_win.h',
312         'base/resource/resource_handle.h',
313         'base/text/bytes_formatting.cc',
314         'base/text/bytes_formatting.h',
315         'base/text/text_elider.cc',
316         'base/text/text_elider.h',
317         'base/text/utf16_indexing.cc',
318         'base/text/utf16_indexing.h',
319         'base/theme_provider.cc',
320         'base/theme_provider.h',
321         'base/touch/touch_device.cc',
322         'base/touch/touch_device.h',
323         'base/touch/touch_device_android.cc',
324         'base/touch/touch_device_aurax11.cc',
325         'base/touch/touch_device_ozone.cc',
326         'base/touch/touch_device_win.cc',
327         'base/touch/touch_editing_controller.cc',
328         'base/touch/touch_editing_controller.h',
329         'base/touch/touch_factory_x11.cc',
330         'base/touch/touch_factory_x11.h',
331         'base/ui_base_exports.cc',
332         'base/ui_base_paths.cc',
333         'base/ui_base_paths.h',
334         'base/ui_base_switches.cc',
335         'base/ui_base_switches.h',
336         'base/ui_base_switches_util.cc',
337         'base/ui_base_switches_util.h',
338         'base/ui_base_types.h',
339         'base/ui_export.h',
340         'base/view_prop.cc',
341         'base/view_prop.h',
342         'base/win/accessibility_ids_win.h',
343         'base/win/accessibility_misc_utils.cc',
344         'base/win/accessibility_misc_utils.h',
345         'base/win/atl_module.h',
346         'base/win/dpi.cc',
347         'base/win/dpi.h',
348         'base/win/events_win.cc',
349         'base/win/extra_sdk_defines.h',
350         'base/win/foreground_helper.cc',
351         'base/win/foreground_helper.h',
352         'base/win/hidden_window.cc',
353         'base/win/hidden_window.h',
354         'base/win/hwnd_subclass.cc',
355         'base/win/hwnd_subclass.h',
356         'base/win/hwnd_util.cc',
357         'base/win/hwnd_util.h',
358         'base/win/ime_input.cc',
359         'base/win/ime_input.h',
360         'base/win/message_box_win.cc',
361         'base/win/message_box_win.h',
362         'base/win/mouse_wheel_util.cc',
363         'base/win/mouse_wheel_util.h',
364         'base/win/scoped_ole_initializer.cc',
365         'base/win/scoped_ole_initializer.h',
366         'base/win/scoped_set_map_mode.h',
367         'base/win/shell.cc',
368         'base/win/shell.h',
369         'base/win/singleton_hwnd.cc',
370         'base/win/singleton_hwnd.h',
371         'base/win/touch_input.cc',
372         'base/win/touch_input.h',
373         'base/win/window_impl.cc',
374         'base/win/window_impl.h',
375         'base/window_open_disposition.cc',
376         'base/window_open_disposition.h',
377         'base/work_area_watcher_observer.h',
378         'base/x/active_window_watcher_x.cc',
379         'base/x/active_window_watcher_x.h',
380         'base/x/active_window_watcher_x_observer.h',
381         'base/x/device_list_cache_x.cc',
382         'base/x/device_list_cache_x.h',
383         'base/x/events_x.cc',
384         'base/x/root_window_property_watcher_x.cc',
385         'base/x/root_window_property_watcher_x.h',
386         'base/x/selection_owner.cc',
387         'base/x/selection_owner.h',
388         'base/x/selection_requestor.cc',
389         'base/x/selection_requestor.h',
390         'base/x/selection_utils.cc',
391         'base/x/selection_utils.h',
392         'base/x/valuators.cc',
393         'base/x/valuators.h',
394         'base/x/work_area_watcher_x.cc',
395         'base/x/work_area_watcher_x.h',
396         'base/x/x11_atom_cache.cc',
397         'base/x/x11_atom_cache.h',
398         'base/x/x11_util.cc',
399         'base/x/x11_util.h',
400         'base/x/x11_util_internal.h',
401         'gfx/android/device_display_info.cc',
402         'gfx/android/device_display_info.h',
403         'gfx/android/java_bitmap.cc',
404         'gfx/android/java_bitmap.h',
405         'gfx/blit.cc',
406         'gfx/blit.h',
407         'gfx/break_list.h',
408         'gfx/canvas.cc',
409         'gfx/canvas.h',
410         'gfx/canvas_android.cc',
411         'gfx/canvas_mac.mm',
412         'gfx/canvas_paint.h',
413         'gfx/canvas_paint_gtk.h',
414         'gfx/canvas_paint_mac.h',
415         'gfx/canvas_paint_win.h',
416         'gfx/canvas_paint_gtk.cc',
417         'gfx/canvas_paint_mac.mm',
418         'gfx/canvas_paint_win.cc',
419         'gfx/canvas_skia.cc',
420         'gfx/canvas_skia_paint.h',
421         'gfx/codec/jpeg_codec.cc',
422         'gfx/codec/jpeg_codec.h',
423         'gfx/codec/png_codec.cc',
424         'gfx/codec/png_codec.h',
425         'gfx/color_analysis.cc',
426         'gfx/color_analysis.h',
427         'gfx/color_profile.cc',
428         'gfx/color_profile.h',
429         'gfx/color_profile_mac.cc',
430         'gfx/color_profile_win.cc',
431         'gfx/color_utils.cc',
432         'gfx/color_utils.h',
433         'gfx/display.cc',
434         'gfx/display.h',
435         'gfx/display_observer.cc',
436         'gfx/display_observer.h',
437         'gfx/favicon_size.cc',
438         'gfx/favicon_size.h',
439         'gfx/font.cc',
440         'gfx/font.h',
441         'gfx/font_fallback_win.cc',
442         'gfx/font_fallback_win.h',
443         'gfx/font_list.cc',
444         'gfx/font_list.h',
445         'gfx/font_render_params_android.cc',
446         'gfx/font_render_params_linux.cc',
447         'gfx/font_render_params_linux.h',
448         'gfx/font_smoothing_win.cc',
449         'gfx/font_smoothing_win.h',
450         'gfx/gfx_paths.cc',
451         'gfx/gfx_paths.h',
452         'gfx/image/canvas_image_source.cc',
453         'gfx/image/canvas_image_source.h',
454         'gfx/image/image.cc',
455         'gfx/image/image.h',
456         'gfx/image/image_family.cc',
457         'gfx/image/image_family.h',
458         'gfx/image/image_ios.mm',
459         'gfx/image/image_mac.mm',
460         'gfx/image/image_png_rep.cc',
461         'gfx/image/image_png_rep.h',
462         'gfx/image/image_skia.cc',
463         'gfx/image/image_skia.h',
464         'gfx/image/image_skia_operations.cc',
465         'gfx/image/image_skia_operations.h',
466         'gfx/image/image_skia_rep.cc',
467         'gfx/image/image_skia_rep.h',
468         'gfx/image/image_skia_source.h',
469         'gfx/image/image_skia_util_ios.h',
470         'gfx/image/image_skia_util_ios.mm',
471         'gfx/image/image_skia_util_mac.h',
472         'gfx/image/image_skia_util_mac.mm',
473         'gfx/image/image_util.cc',
474         'gfx/image/image_util.h',
475         'gfx/image/image_util_ios.mm',
476         'gfx/insets.cc',
477         'gfx/insets.h',
478         'gfx/insets_base.h',
479         'gfx/insets_f.cc',
480         'gfx/insets_f.h',
481         'gfx/interpolated_transform.cc',
482         'gfx/interpolated_transform.h',
483         'gfx/mac/scoped_ns_disable_screen_updates.h',
484         'gfx/matrix3_f.cc',
485         'gfx/matrix3_f.h',
486         'gfx/native_widget_types.h',
487         'gfx/pango_util.cc',
488         'gfx/pango_util.h',
489         'gfx/path.cc',
490         'gfx/path.h',
491         'gfx/path_aura.cc',
492         'gfx/path_gtk.cc',
493         'gfx/path_win.cc',
494         'gfx/path_win.h',
495         'gfx/platform_font.h',
496         'gfx/platform_font_android.cc',
497         'gfx/platform_font_ios.h',
498         'gfx/platform_font_ios.mm',
499         'gfx/platform_font_mac.h',
500         'gfx/platform_font_mac.mm',
501         'gfx/platform_font_pango.cc',
502         'gfx/platform_font_pango.h',
503         'gfx/platform_font_win.cc',
504         'gfx/platform_font_win.h',
505         'gfx/point.cc',
506         'gfx/point.h',
507         'gfx/point3_f.cc',
508         'gfx/point3_f.h',
509         'gfx/point_base.h',
510         'gfx/point_conversions.cc',
511         'gfx/point_conversions.h',
512         'gfx/point_f.cc',
513         'gfx/point_f.h',
514         'gfx/quad_f.cc',
515         'gfx/quad_f.h',
516         'gfx/rect.cc',
517         'gfx/rect.h',
518         'gfx/rect_base.h',
519         'gfx/rect_base_impl.h',
520         'gfx/rect_conversions.cc',
521         'gfx/rect_conversions.h',
522         'gfx/rect_f.cc',
523         'gfx/rect_f.h',
524         'gfx/render_text.cc',
525         'gfx/render_text.h',
526         'gfx/render_text_linux.cc',
527         'gfx/render_text_linux.h',
528         'gfx/render_text_mac.cc',
529         'gfx/render_text_mac.h',
530         'gfx/render_text_win.cc',
531         'gfx/render_text_win.h',
532         'gfx/safe_integer_conversions.h',
533         'gfx/scoped_cg_context_save_gstate_mac.h',
534         'gfx/scoped_ns_graphics_context_save_gstate_mac.h',
535         'gfx/scoped_ns_graphics_context_save_gstate_mac.mm',
536         'gfx/scoped_ui_graphics_push_context_ios.h',
537         'gfx/scoped_ui_graphics_push_context_ios.mm',
538         'gfx/screen.cc',
539         'gfx/screen.h',
540         'gfx/screen_android.cc',
541         'gfx/screen_aura.cc',
542         'gfx/screen_gtk.cc',
543         'gfx/screen_ios.mm',
544         'gfx/screen_mac.mm',
545         'gfx/screen_win.cc',
546         'gfx/screen_win.h',
547         'gfx/scrollbar_size.cc',
548         'gfx/scrollbar_size.h',
549         'gfx/selection_model.cc',
550         'gfx/selection_model.h',
551         'gfx/shadow_value.cc',
552         'gfx/shadow_value.h',
553         'gfx/size.cc',
554         'gfx/size.h',
555         'gfx/size_base.h',
556         'gfx/size_conversions.cc',
557         'gfx/size_conversions.h',
558         'gfx/size_f.cc',
559         'gfx/size_f.h',
560         'gfx/skbitmap_operations.cc',
561         'gfx/skbitmap_operations.h',
562         'gfx/skia_util.cc',
563         'gfx/skia_util.h',
564         'gfx/skia_utils_gtk.cc',
565         'gfx/skia_utils_gtk.h',
566         'gfx/switches.cc',
567         'gfx/switches.h',
568         'gfx/sys_color_change_listener.cc',
569         'gfx/sys_color_change_listener.h',
570         'gfx/text_constants.h',
571         'gfx/text_utils.cc',
572         'gfx/text_utils.h',
573         'gfx/transform.cc',
574         'gfx/transform.h',
575         'gfx/transform_util.cc',
576         'gfx/transform_util.h',
577         'gfx/vector2d.cc',
578         'gfx/vector2d.h',
579         'gfx/vector2d_conversions.cc',
580         'gfx/vector2d_conversions.h',
581         'gfx/vector2d_f.cc',
582         'gfx/vector2d_f.h',
583         'gfx/vector3d_f.cc',
584         'gfx/vector3d_f.h',
585         'webui/jstemplate_builder.cc',
586         'webui/jstemplate_builder.h',
587         'webui/web_ui_util.cc',
588         'webui/web_ui_util.h',
589       ],
590       'target_conditions': [
591         ['OS == "ios"', {
592           'sources/': [
593             ['include', '^base/l10n/l10n_util_mac\\.mm$'],
594           ],
595         }],
596       ],
597       'conditions': [
598         ['OS!="ios"', {
599           'includes': [
600             'base/ime/ime.gypi',
601           ],
602           'dependencies': [
603             '<(libjpeg_gyp_path):libjpeg',
604           ],
605         }, {  # OS=="ios"
606           # iOS only uses a subset of UI.
607           'sources/': [
608             ['exclude', '\\.(cc|mm)$'],
609             ['include', '_ios\\.(cc|mm)$'],
610             ['include', '(^|/)ios/'],
611             ['include', '^gfx/'],
612             ['exclude', '^gfx/codec/jpeg_codec\\.cc$'],
613             ['include', '^base/animation/'],
614             ['include', '^base/l10n/'],
615             ['include', '^base/layout'],
616             ['include', '^base/range/'],
617             ['include', '^base/resource/'],
618             ['include', '^base/text/text_elider\\.'],
619             ['include', '^base/ui_base_'],
620           ],
621           'link_settings': {
622             'libraries': [
623               '$(SDKROOT)/System/Library/Frameworks/CoreGraphics.framework',
624             ],
625           },
626         }],
627         # TODO(asvitkine): Switch all platforms to use canvas_skia.cc.
628         #                  http://crbug.com/105550
629         ['use_canvas_skia==1', {
630           'sources!': [
631             'gfx/canvas_android.cc',
632             'gfx/canvas_mac.mm',
633           ],
634         }, {  # use_canvas_skia!=1
635           'sources!': [
636             'gfx/canvas_skia.cc',
637           ],
638         }],
639         ['use_aura==1', {
640           'sources/': [
641             ['exclude', 'gfx/gtk_'],
642             ['exclude', 'gfx/gtk_util.cc'],
643             ['exclude', 'gfx/gtk_util.h'],
644             ['exclude', 'gfx/screen_gtk.cc'],
645             ['exclude', 'base/work_area_watcher_observer.h'],
646             ['exclude', 'base/x/active_window_watcher_x.cc'],
647             ['exclude', 'base/x/active_window_watcher_x.h'],
648             ['exclude', 'base/x/active_window_watcher_x_observer.h'],
649             ['exclude', 'base/x/root_window_property_watcher_x.cc'],
650             ['exclude', 'base/x/root_window_property_watcher_x.h'],
651             ['exclude', 'base/x/work_area_watcher_x.cc'],
652             ['exclude', 'base/x/work_area_watcher_x.h'],
653            ],
654         }, {  # use_aura!=1
655           'sources!': [
656             'base/cursor/cursor.cc',
657             'base/cursor/cursor.h',
658             'base/cursor/cursor_loader_x11.cc',
659             'base/cursor/cursor_loader_x11.h',
660             'base/cursor/cursor_win.cc',
661             'base/cursor/cursor_x11.cc',
662             'base/x/selection_owner.cc',
663             'base/x/selection_owner.h',
664             'base/x/selection_requestor.cc',
665             'base/x/selection_requestor.h',
666             'base/x/selection_utils.cc',
667             'base/x/selection_utils.h',
668           ]
669         }],
670         ['use_pango==0', {
671           'sources/': [
672             ['exclude', '^gfx/pango_util\\.'],
673             ['exclude', '^gfx/platform_font_pango\\.'],
674           ],
675         }],
676         ['use_aura==0 or OS!="linux"', {
677           'sources!': [
678             'base/resource/resource_bundle_auralinux.cc',
679           ],
680         }],
681         ['use_aura==1 and OS=="win"', {
682           'sources/': [
683             ['exclude', 'base/dragdrop/drag_utils_aura.cc'],
684           ],
685         }],
686         ['use_aura==0 and toolkit_views==0', {
687           'sources/': [
688             ['exclude', '^base/gestures/*'],
689           ]
690         }],
691         ['use_glib == 1', {
692           'dependencies': [
693             # font_gtk.cc uses fontconfig.
694             '../build/linux/system.gyp:fontconfig',
695             '../build/linux/system.gyp:glib',
696           ],
697           'conditions': [
698             ['toolkit_views==0', {
699               # Note: because of gyp predence rules this has to be defined as
700               # 'sources/' rather than 'sources!'.
701               'sources/': [
702                 ['exclude', '^base/dragdrop/drag_utils.cc'],
703                 ['exclude', '^base/dragdrop/drag_utils.h'],
704                 ['exclude', '^base/dragdrop/os_exchange_data.cc'],
705                 ['exclude', '^base/dragdrop/os_exchange_data.h'],
706               ],
707             }, {
708               # Note: because of gyp predence rules this has to be defined as
709               # 'sources/' rather than 'sources!'.
710               'sources/': [
711                 ['include', '^base/dragdrop/os_exchange_data.cc'],
712               ],
713             }],
714             ['use_pango==1', {
715               'dependencies': [
716                 '../build/linux/system.gyp:pangocairo',
717               ],
718             }],
719           ],
720         }],
721         ['toolkit_uses_gtk == 1', {
722           'dependencies': [
723             '../build/linux/system.gyp:gtk',
724           ],
725           'sources': [
726             'gfx/gtk_native_view_id_manager.cc',
727             'gfx/gtk_native_view_id_manager.h',
728             'gfx/gtk_preserve_window.cc',
729             'gfx/gtk_preserve_window.h',
730             'gfx/gtk_util.cc',
731             'gfx/gtk_util.h',
732             'gfx/image/cairo_cached_surface.cc',
733             'gfx/image/cairo_cached_surface.h',
734           ],
735         }],
736         ['chromeos==1 or (use_aura==1 and OS=="linux" and use_x11==0)', {
737           'sources!': [
738             'base/clipboard/clipboard_aurax11.cc',
739             'base/dragdrop/os_exchange_data_provider_aurax11.cc',
740             'base/touch/touch_device.cc',
741           ],
742         }, {
743           'sources!': [
744             'base/clipboard/clipboard_aura.cc',
745             'base/dragdrop/os_exchange_data_provider_aura.cc',
746             'base/dragdrop/os_exchange_data_provider_aura.h',
747             'base/touch/touch_device_aurax11.cc',
748           ],
749         }],
750         ['OS=="win"', {
751           'sources': [
752             'gfx/gdi_util.cc',
753             'gfx/gdi_util.h',
754             'gfx/icon_util.cc',
755             'gfx/icon_util.h',
756           ],
757           'sources!': [
758             'base/touch/touch_device.cc',
759           ],
760           'include_dirs': [
761             '../',
762             '../third_party/wtl/include',
763           ],
764           # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int
765           # C4324 is structure was padded due to __declspec(align()), which is
766           # uninteresting.
767           'msvs_disabled_warnings': [ 4267, 4324 ],
768           'msvs_settings': {
769             'VCLinkerTool': {
770               'DelayLoadDLLs': [
771                 'd2d1.dll',
772                 'd3d10_1.dll',
773                 'dwmapi.dll',
774               ],
775               'AdditionalDependencies': [
776                 'd2d1.lib',
777                 'd3d10_1.lib',
778                 'dwmapi.lib',
779               ],
780             },
781           },
782           'link_settings': {
783             'libraries': [
784               '-limm32.lib',
785               '-ld2d1.lib',
786               '-ldwmapi.lib',
787               '-loleacc.lib',
788             ],
789           },
790         },{  # OS!="win"
791           'conditions': [
792             ['use_aura==0', {
793               'sources!': [
794                 'base/view_prop.cc',
795                 'base/view_prop.h',
796               ],
797             }],
798           ],
799           'sources!': [
800             'base/dragdrop/drag_drop_types.h',
801             'base/dragdrop/os_exchange_data.cc',
802           ],
803           'sources/': [
804             ['exclude', '^base/win/'],
805           ],
806         }],
807         ['OS=="mac"', {
808           'sources!': [
809             'base/dragdrop/drag_utils.cc',
810             'base/dragdrop/drag_utils.h',
811           ],
812           'link_settings': {
813             'libraries': [
814               '$(SDKROOT)/System/Library/Frameworks/Accelerate.framework',
815               '$(SDKROOT)/System/Library/Frameworks/AudioUnit.framework',
816               '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
817             ],
818           },
819         }],
820         ['use_x11==1', {
821           'all_dependent_settings': {
822             'ldflags': [
823               '-L<(PRODUCT_DIR)',
824             ],
825             'link_settings': {
826               'libraries': [
827                 '-lX11',
828                 '-lXcursor',
829                 '-lXrender',  # For XRender* function calls in x11_util.cc.
830               ],
831             },
832           },
833           'link_settings': {
834             'libraries': [
835               '-lX11',
836               '-lXcursor',
837               '-lXrender',  # For XRender* function calls in x11_util.cc.
838             ],
839           },
840           'dependencies': [
841             '../build/linux/system.gyp:x11',
842             '../build/linux/system.gyp:xext',
843             '../build/linux/system.gyp:xfixes',
844           ],
845         }, {  # use_x11==0
846           'sources/': [
847             ['exclude', 'base/keycodes/keyboard_code_conversion_x.*'],
848             ['exclude', 'base/x/*'],
849           ],
850         }],
851         ['use_ozone==0', {
852           'sources!': [
853             'base/cursor/cursor_null.cc',
854             'base/cursor/cursor_loader_null.cc',
855             'base/cursor/cursor_loader_null.h',
856           ],
857         }],
858         ['toolkit_views==0', {
859           'sources!': [
860             'base/events/event.cc',
861             'base/events/event.h',
862             'base/events/event_dispatcher.cc',
863             'base/events/event_dispatcher.h',
864             'base/events/event_handler.cc',
865             'base/events/event_handler.h',
866             'base/events/event_target.cc',
867             'base/events/event_target.h',
868             'base/events/key_identifier_conversion.cc',
869             'base/events/key_identifier_conversion.h',
870             'base/x/events_x.cc',
871           ],
872         }],
873         ['OS=="android"', {
874           'sources!': [
875             'base/dragdrop/drag_utils.cc',
876             'base/dragdrop/drag_utils.h',
877             'base/touch/touch_device.cc',
878           ],
879           'dependencies': [
880             'ui_jni_headers',
881           ],
882           'include_dirs': [
883             '<(SHARED_INTERMEDIATE_DIR)/ui',
884           ],
885           'link_settings': {
886             'libraries': [
887               '-ljnigraphics',
888             ],
889           },
890         }],
891         ['OS=="android" and android_webview_build==0', {
892           'dependencies': [
893             'ui_java',
894           ],
895         }],
896         ['OS=="android" or OS=="ios"', {
897           'sources!': [
898             'gfx/render_text.cc',
899             'gfx/render_text.h',
900           ],
901         }],
902         ['OS=="linux"', {
903           'libraries': [
904             '-ldl',
905           ],
906         }],
907         ['use_system_icu==1', {
908           # When using the system icu, the icu targets generate shim headers
909           # which are included by public headers in the ui target, so we need
910           # ui to be a hard dependency for all its users.
911           'hard_dependency': 1,
912         }],
913       ],
914     },
915   ],
916   'conditions': [
917     ['OS=="android"' , {
918        'targets': [
919          {
920            'target_name': 'ui_jni_headers',
921            'type': 'none',
922            'direct_dependent_settings': {
923              'include_dirs': [
924                '<(SHARED_INTERMEDIATE_DIR)/ui',
925              ],
926            },
927            'sources': [
928              'android/java/src/org/chromium/ui/Clipboard.java',
929              'android/java/src/org/chromium/ui/gfx/BitmapHelper.java',
930              'android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java',
931              'android/java/src/org/chromium/ui/LocalizationUtils.java',
932              'android/java/src/org/chromium/ui/SelectFileDialog.java',
933              'android/java/src/org/chromium/ui/ViewAndroid.java',
934              'android/java/src/org/chromium/ui/WindowAndroid.java',
935            ],
936            'variables': {
937              'jni_gen_package': 'ui',
938            },
939            'includes': [ '../build/jni_generator.gypi' ],
940          },
941          {
942            'target_name': 'ui_java',
943            'type': 'none',
944            'variables': {
945              'java_in_dir': '../ui/android/java',
946              'has_java_resources': 1,
947              'R_package': 'org.chromium.ui',
948              'R_package_relpath': 'org/chromium/ui',
949              'java_strings_grd': 'android_ui_strings.grd',
950            },
951            'dependencies': [
952              '../base/base.gyp:base_java',
953            ],
954            'includes': [ '../build/java.gypi' ],
955          },
956        ],
957     }],
958     ['OS=="mac"', {
959       'targets': [
960         {
961           'target_name': 'ui_cocoa_third_party_toolkits',
962           'type': '<(component)',
963           'sources': [
964             # Build Apple sample code
965             '../third_party/apple_sample_code/ImageAndTextCell.h',
966             '../third_party/apple_sample_code/ImageAndTextCell.m',
967             # Build the necessary GTM sources
968             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h',
969             '../third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.m',
970             '../third_party/GTM/AppKit/GTMIBArray.h',
971             '../third_party/GTM/AppKit/GTMIBArray.m',
972             '../third_party/GTM/AppKit/GTMKeyValueAnimation.h',
973             '../third_party/GTM/AppKit/GTMKeyValueAnimation.m',
974             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.h',
975             '../third_party/GTM/AppKit/GTMNSAnimation+Duration.m',
976             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.h',
977             '../third_party/GTM/AppKit/GTMNSBezierPath+CGPath.m',
978             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.h',
979             '../third_party/GTM/AppKit/GTMNSBezierPath+RoundRect.m',
980             '../third_party/GTM/AppKit/GTMNSColor+Luminance.m',
981             '../third_party/GTM/AppKit/GTMUILocalizer.h',
982             '../third_party/GTM/AppKit/GTMUILocalizer.m',
983             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h',
984             '../third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.m',
985             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.h',
986             '../third_party/GTM/Foundation/GTMNSNumber+64Bit.m',
987             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.h',
988             '../third_party/GTM/Foundation/GTMNSObject+KeyValueObserving.m',
989             # MolokoCacao additions
990             '../third_party/molokocacao/NSBezierPath+MCAdditions.h',
991             '../third_party/molokocacao/NSBezierPath+MCAdditions.m',
992             # Build necessary Mozilla sources
993             '../third_party/mozilla/NSScreen+Utils.h',
994             '../third_party/mozilla/NSScreen+Utils.m',
995             '../third_party/mozilla/NSWorkspace+Utils.h',
996             '../third_party/mozilla/NSWorkspace+Utils.m',
997           ],
998           'include_dirs': [
999             '..',
1000             '../third_party/apple',
1001             '../third_party/GTM',
1002             '../third_party/GTM/AppKit',
1003             '../third_party/GTM/DebugUtils',
1004             '../third_party/GTM/Foundation',
1005           ],
1006           'link_settings': {
1007             'libraries': [
1008               '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
1009               '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
1010             ],
1011           },
1012           'conditions': [
1013             ['component=="shared_library"', {
1014               # GTM is third-party code, so we don't want to add _EXPORT
1015               # annotations to it, so build it without -fvisibility=hidden
1016               # (else the interface class symbols will be hidden in a 64bit
1017               # build). Only do this in a component build, so that the shipping
1018               # chrome binary doesn't end up with unnecessarily exported
1019               # symbols.
1020               'xcode_settings': {
1021                 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
1022               },
1023             }],
1024           ],
1025         },
1026       ],
1027     }],
1028   ],