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