Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / base / ui_base.gyp
index 16737cb..2d0228b 100644 (file)
@@ -43,8 +43,6 @@
         'accelerators/platform_accelerator.h',
         'accelerators/platform_accelerator_cocoa.h',
         'accelerators/platform_accelerator_cocoa.mm',
-        'accelerators/platform_accelerator_gtk.cc',
-        'accelerators/platform_accelerator_gtk.h',
         'android/ui_base_jni_registrar.cc',
         'android/ui_base_jni_registrar.h',
         'android/view_android.cc',
@@ -62,7 +60,6 @@
         'clipboard/clipboard_aura.cc',
         'clipboard/clipboard_aurax11.cc',
         'clipboard/clipboard_constants.cc',
-        'clipboard/clipboard_gtk.cc',
         'clipboard/clipboard_mac.mm',
         'clipboard/clipboard_types.h',
         'clipboard/clipboard_util_win.cc',
         'cursor/cursor_x11.cc',
         'cursor/cursors_aura.cc',
         'cursor/cursors_aura.h',
+        'cursor/image_cursors.cc',
+        'cursor/image_cursors.h',
         'cursor/ozone/bitmap_cursor_factory_ozone.cc',
         'cursor/ozone/bitmap_cursor_factory_ozone.h',
         'cursor/ozone/cursor_factory_ozone.cc',
         'default_theme_provider.h',
         'default_theme_provider_mac.mm',
         'device_form_factor_android.cc',
+        'device_form_factor_android.h',
         'device_form_factor_desktop.cc',
         'device_form_factor_ios.mm',
         'device_form_factor.h',
         'dragdrop/drag_utils.cc',
         'dragdrop/drag_utils.h',
         'dragdrop/drag_utils_aura.cc',
+        'dragdrop/drag_utils_mac.mm',
         'dragdrop/drag_utils_win.cc',
         'dragdrop/drop_target_event.cc',
         'dragdrop/drop_target_event.h',
         'dragdrop/drop_target_win.h',
         'dragdrop/file_info.cc',
         'dragdrop/file_info.h',
-        'dragdrop/gtk_dnd_util.cc',
-        'dragdrop/gtk_dnd_util.h',
         'dragdrop/os_exchange_data.cc',
         'dragdrop/os_exchange_data.h',
         'dragdrop/os_exchange_data_provider_aura.cc',
         'dragdrop/os_exchange_data_provider_aura.h',
         'dragdrop/os_exchange_data_provider_aurax11.cc',
         'dragdrop/os_exchange_data_provider_aurax11.h',
+        'dragdrop/os_exchange_data_provider_mac.mm',
         'dragdrop/os_exchange_data_provider_win.cc',
         'dragdrop/os_exchange_data_provider_win.h',
-        'gtk/event_synthesis_gtk.cc',
-        'gtk/event_synthesis_gtk.h',
-        'gtk/focus_store_gtk.cc',
-        'gtk/focus_store_gtk.h',
-        'gtk/g_object_destructor_filo.cc',
-        'gtk/g_object_destructor_filo.h',
-        'gtk/gtk_expanded_container.cc',
-        'gtk/gtk_expanded_container.h',
-        'gtk/gtk_floating_container.cc',
-        'gtk/gtk_floating_container.h',
-        'gtk/gtk_hig_constants.h',
-        'gtk/gtk_screen_util.cc',
-        'gtk/gtk_screen_util.h',
-        'gtk/gtk_signal.h',
-        'gtk/gtk_signal_registrar.cc',
-        'gtk/gtk_signal_registrar.h',
-        'gtk/gtk_windowing.cc',
-        'gtk/gtk_windowing.h',
-        'gtk/owned_widget_gtk.cc',
-        'gtk/owned_widget_gtk.h',
-        'gtk/scoped_region.cc',
-        'gtk/scoped_region.h',
         'hit_test.h',
         'l10n/formatter.cc',
         'l10n/formatter.h',
         'resource/resource_bundle.h',
         'resource/resource_bundle_android.cc',
         'resource/resource_bundle_auralinux.cc',
-        'resource/resource_bundle_gtk.cc',
         'resource/resource_bundle_ios.mm',
         'resource/resource_bundle_mac.mm',
         'resource/resource_bundle_win.cc',
         'touch/touch_editing_controller.h',
         'touch/touch_enabled.cc',
         'touch/touch_enabled.h',
+        'ui_base_export.h',
         'ui_base_exports.cc',
         'ui_base_paths.cc',
         'ui_base_paths.h',
         'ui_base_switches_util.h',
         'ui_base_types.cc',
         'ui_base_types.h',
-        'ui_base_export.h',
         'view_prop.cc',
         'view_prop.h',
         'webui/jstemplate_builder.cc',
         'window_open_disposition.cc',
         'window_open_disposition.h',
         'work_area_watcher_observer.h',
-        'x/active_window_watcher_x.cc',
-        'x/active_window_watcher_x.h',
-        'x/active_window_watcher_x_observer.h',
-        'x/root_window_property_watcher_x.cc',
-        'x/root_window_property_watcher_x.h',
         'x/selection_owner.cc',
         'x/selection_owner.h',
         'x/selection_requestor.cc',
         'x/selection_requestor.h',
         'x/selection_utils.cc',
         'x/selection_utils.h',
-        'x/work_area_watcher_x.cc',
-        'x/work_area_watcher_x.h',
         'x/x11_menu_list.cc',
         'x/x11_menu_list.h',
         'x/x11_util.cc',
             ['exclude', 'clipboard/clipboard_mac.mm'],
             ['exclude', 'layout_mac.mm'],
             ['exclude', 'work_area_watcher_observer.h'],
-            ['exclude', 'x/active_window_watcher_x.cc'],
-            ['exclude', 'x/active_window_watcher_x.h'],
-            ['exclude', 'x/active_window_watcher_x_observer.h'],
-            ['exclude', 'x/root_window_property_watcher_x.cc'],
-            ['exclude', 'x/root_window_property_watcher_x.h'],
-            ['exclude', 'x/work_area_watcher_x.cc'],
-            ['exclude', 'x/work_area_watcher_x.h'],
           ],
           'dependencies': [
             '../events/events.gyp:events',
             'cursor/cursor_mac.mm',
             'cursor/cursor_win.cc',
             'cursor/cursor_x11.cc',
-            'nine_image_painter_factory.cc',
-            'nine_image_painter_factory.h',
             'x/selection_owner.cc',
             'x/selection_owner.h',
             'x/selection_requestor.cc',
         }],
         ['use_glib == 1', {
           'dependencies': [
-            # font_gtk.cc uses fontconfig.
             '../../build/linux/system.gyp:fontconfig',
             '../../build/linux/system.gyp:glib',
           ],
               'sources/': [
                 ['exclude', '^dragdrop/drag_utils.cc'],
                 ['exclude', '^dragdrop/drag_utils.h'],
-                ['exclude', '^dragdrop/os_exchange_data.cc'],
-                ['exclude', '^dragdrop/os_exchange_data.h'],
               ],
             }, {
-              # Note: because of gyp predence rules this has to be defined as
-              # 'sources/' rather than 'sources!'.
               'sources/': [
                 ['include', '^dragdrop/os_exchange_data.cc'],
+                ['include', '^dragdrop/os_exchange_data.h'],
+                ['include', '^nine_image_painter_factory.cc'],
+                ['include', '^nine_image_painter_factory.h'],
               ],
             }],
           ],
               ],
             }],
           ],
-          'sources!': [
-            'dragdrop/drag_drop_types.h',
-            'dragdrop/os_exchange_data.cc',
-          ],
         }],
         ['OS=="mac"', {
           'dependencies': [
             '../../third_party/mozilla/mozilla.gyp:mozilla',
           ],
           'sources!': [
+            'cursor/image_cursors.cc',
+            'cursor/image_cursors.h',
             'dragdrop/drag_utils.cc',
             'dragdrop/drag_utils.h',
           ],
         }],
         ['toolkit_views==0', {
           'sources!': [
+            'dragdrop/drag_drop_types.h',
             'dragdrop/drop_target_event.cc',
             'dragdrop/drop_target_event.h',
+            'dragdrop/os_exchange_data.cc',
+            'dragdrop/os_exchange_data.h',
+            'nine_image_painter_factory.cc',
+            'nine_image_painter_factory.h',
           ],
         }],
         ['OS=="android"', {
           'sources!': [
+            'cursor/image_cursors.cc',
+            'cursor/image_cursors.h',
             'default_theme_provider.cc',
             'dragdrop/drag_utils.cc',
             'dragdrop/drag_utils.h',
         }],
       ],
     },
+    {
+      'target_name': 'ui_base_test_support',
+      'dependencies': [
+        '../../base/base.gyp:base',
+        '../../skia/skia.gyp:skia',
+        '../../testing/gtest.gyp:gtest',
+        '../gfx/gfx.gyp:gfx',
+        '../gfx/gfx.gyp:gfx_geometry',
+      ],
+      'sources': [
+        'test/ui_controls.h',
+        'test/ui_controls_aura.cc',
+        'test/ui_controls_internal_win.cc',
+        'test/ui_controls_internal_win.h',
+        'test/ui_controls_mac.mm',
+        'test/ui_controls_win.cc',
+      ],
+      'include_dirs': [
+        '../..',
+      ],
+      'conditions': [
+        ['OS!="ios"', {
+          'type': 'static_library',
+          'includes': [ 'ime/ime_test_support.gypi' ],
+        }, {  # OS=="ios"
+          # None of the sources in this target are built on iOS, resulting in
+          # link errors when building targets that depend on this target
+          # because the static library isn't found. If this target is changed
+          # to have sources that are built on iOS, the target should be changed
+          # to be of type static_library on all platforms.
+          'type': 'none',
+        }],
+        ['use_aura==1', {
+          'sources!': [
+            'test/ui_controls_mac.mm',
+            'test/ui_controls_win.cc',
+          ],
+        }],
+      ],
+    },
   ],
   'conditions': [
     ['OS=="android"' , {
            'type': 'none',
            'sources': [
              '../android/java/src/org/chromium/ui/base/Clipboard.java',
+             '../android/java/src/org/chromium/ui/base/DeviceFormFactor.java',
              '../android/java/src/org/chromium/ui/base/LocalizationUtils.java',
              '../android/java/src/org/chromium/ui/base/SelectFileDialog.java',
              '../android/java/src/org/chromium/ui/base/TouchDevice.java',