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