X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Ftizen%2Fkey-grab.h;h=65d11e561be438f329d719491b6da226fea967c5;hb=refs%2Fchanges%2F90%2F118590%2F1;hp=43090f5029387728d4439f08f56bbd60aa5910f7;hpb=7dce44e3c1753e0a0dbe4b3482ffb392760a91a6;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/tizen/key-grab.h b/adaptors/tizen/key-grab.h old mode 100644 new mode 100755 index 43090f5..65d11e5 --- a/adaptors/tizen/key-grab.h +++ b/adaptors/tizen/key-grab.h @@ -20,6 +20,7 @@ // INTERNAL INCLUDES #include +#include #include "key.h" namespace Dali @@ -109,6 +110,43 @@ DALI_IMPORT_API bool GrabKey( Window window, Dali::KEY daliKey, KeyGrabMode grab */ DALI_IMPORT_API bool UngrabKey( Window window, Dali::KEY daliKey ); + +/** + * @PLATFORM + * @brief Grabs the list of keys specfied by @Dali::Vector of keys for @a window in @Vector of grabModes. + * + * @details This function can be used 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. + * + * @SINCE_1_2.0 + * @PRIVLEVEL_PLATFORM + * @PRIVILEGE_KEYGRAB + * @param[in] window The window to set + * @param[in] daliKeyVector The Dali::Vector of key codes to grab (defined in key.h) + * @param[in] grabModeVector The Dali::Vector of grab modes for the keys + * @return Dali::Vector Size is zero when error occurs, true/false if the grab succeeds/fails. + */ +DALI_IMPORT_API Dali::Vector GrabKeyList( Window window, const Dali::Vector daliKeyVector, const Dali::Vector grabModeVector); + + +/** + * @PLATFORM + * @brief Ungrabs the list of keys specfied by @Dali::Vector of keys for @a window. + * + * @SINCE_1_2.0 + * @PRIVLEVEL_PLATFORM + * @PRIVILEGE_KEYGRAB + * @param[in] window The window to set + * @param[in] daliKeyVector The Dali::Vector of key codes to ungrab (defined in key.h) + * @return Dali::Vector Size is zero when error occurs, true/false if the ungrab succeeds/fails. + * @note If this function is called between key down and up events of a grabbed key, + * an application doesn't receive the key up event. + */ +DALI_IMPORT_API Dali::Vector UngrabKeyList( Window window, const Dali::Vector daliKeyVector ); + + } // namespace KeyGrab /**