[3.0] Add key grab/ungrab API for Tizen (X11/Wayland) 73/46373/1
authorYoonsang Lee <ysang114.lee@samsung.com>
Mon, 27 Apr 2015 10:33:06 +0000 (19:33 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Wed, 19 Aug 2015 13:25:25 +0000 (22:25 +0900)
- Key grab feature is designed for following example scenarios:
  - TV : A user might want to change the volume or channel of the background TV contents while focusing on the foregrund app.
  - Mobile : When a user presses Home key, the homescreen appears regardless of current foreground app.
  - Mobile : Using volume up/down as zoom up/down in camera apps.

- Add --enable-profile option to build.sh of automated-tests
  - Key grab feature is available only in Tizen. It's UTCs should not be compiled in Ubuntu.
  - Desktop dali-adaptor automated-tests should be built with --enable-profile=UBUNTU similar to desktop dali-adaptor.

Change-Id: Ic523f094d65d21359b3c4140131efbaf91214082

adaptors/wayland/file.list
adaptors/x11/file.list
build/tizen/adaptor/Makefile.am

index b44598b..3b655dc 100644 (file)
@@ -15,7 +15,8 @@ adaptor_wayland_tizen_internal_src_files = \
   $(adaptor_wayland_dir)/pixmap-render-surface-wl.cpp \
   $(adaptor_wayland_dir)/ecore-wl-render-surface.cpp \
   $(adaptor_wayland_dir)/window-render-surface-wl.cpp \
-  $(adaptor_wayland_dir)/key-mapping-wl.cpp
+  $(adaptor_wayland_dir)/key-mapping-wl.cpp \
+  $(adaptor_wayland_dir)/key-grab-wl.cpp
 
 adaptor_wayland_tizen_common_internal_default_profile_src_files = \
   $(adaptor_wayland_dir)/ecore-wl-render-surface-factory.cpp \
index 81a71b9..5c3ec38 100644 (file)
@@ -32,7 +32,8 @@ adaptor_x11_tizen_internal_src_files = \
   $(adaptor_x11_dir)/accessibility-adaptor-impl-x.cpp \
   $(adaptor_x11_dir)/framework-x.cpp \
   $(adaptor_x11_dir)/key-mapping-x.cpp \
-  $(adaptor_x11_dir)/window-extensions.cpp
+  $(adaptor_x11_dir)/window-extensions.cpp \
+  $(adaptor_x11_dir)/key-grab-x.cpp
 
 adaptor_x11_tv_internal_src_files = \
   $(_adaptor_x11_internal_src_files) \
index 74b8c4e..c5b6fd3 100644 (file)
@@ -352,6 +352,15 @@ libdali_adaptor_la_LIBADD += $(UTILX_LIBS)
 endif
 endif
 
+if !UBUNTU_PROFILE
+if WAYLAND
+else
+# X11
+libdali_adaptor_la_CXXFLAGS += $(UTILX_CFLAGS)
+libdali_adaptor_la_LIBADD += $(UTILX_LIBS)
+endif
+endif
+
 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)