#include "content/public/browser/render_frame_host.h"
#endif
+#if defined(OS_TIZEN_TV_PRODUCT)
+#include <Ecore_Wayland.h>
+#include <cursor_module.h>
+#endif
+
namespace atom {
namespace {
eext_object_event_callback_add(web_view_, EEXT_CALLBACK_MORE,
&HWMoreKeyCallback, this);
#endif
+
+#if defined(OS_TIZEN_TV_PRODUCT)
+ CreateMouseCursor(box);
+#endif
+
}
NativeWindowEfl::~NativeWindowEfl() {
&HWBackKeyCallback);
}
+#if defined(OS_TIZEN_TV_PRODUCT)
+void NativeWindowEfl::CreateMouseCursor(Evas_Object* window) {
+ const char* t_cursor = "tizen_cursor";
+ Ecore_Wl_Global* global_data = NULL;
+ unsigned int cursormgr_id = 0;
+
+ EINA_INLIST_FOREACH(ecore_wl_globals_get(), global_data) {
+ if (0 == strncmp(global_data->interface, t_cursor, strlen(t_cursor))) {
+ cursormgr_id = global_data->id; // to get the id of cursormgr object
+ break;
+ }
+ }
+
+ struct wl_surface* const surface =
+ ecore_wl_window_surface_get(elm_win_wl_window_get(window));
+ ecore_wl_sync();
+
+ const int ret_cursormod = CursorModule_Initialize(
+ ecore_wl_display_get(), ecore_wl_registry_get(),
+ ecore_wl_input_seat_get(ecore_wl_input_get()), cursormgr_id);
+ if (ret_cursormod) {
+ Cursor_Set_Config(surface, TIZEN_CURSOR_CONFIG_CURSOR_AVAILABLE, NULL);
+ }
+ CursorModule_Finalize();
+}
+#endif
+
void NativeWindowEfl::Close() {
if(window_)
evas_object_del(window_);
],
},
}, # efl-extension
+ {
+ 'target_name': 'vd-win-util',
+ 'type': 'none',
+ 'conditions': [
+ ['tizen_product_tv==1', {
+ 'direct_dependent_settings': {
+ 'cflags': [
+ '<!@(pkg-config --cflags ecore-wayland vd-win-util)',
+ ],
+ },
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(pkg-config --libs-only-L --libs-only-other ecore-wayland vd-win-util)',
+ ],
+ 'libraries': [
+ '<!@(pkg-config --libs-only-l ecore-wayland vd-win-util)',
+ ],
+ },
+ }], # building_for_tizen_tv==1
+ ],
+ }, # vd-win-util
],
}
'electron_shell_copy',
],
}],
+ ['tizen_product_tv==1', {
+ 'dependencies': [
+ '<(DEPTH)/efl/build/system.gyp:elementary',
+ '<(DEPTH)/efl/build/system.gyp:efl-extension',
+ '<(DEPTH)/efl/build/system.gyp:evas',
+ '<(DEPTH)/efl/build/system.gyp:icu',
+ '<(DEPTH)/efl/build/system.gyp:vd-win-util',
+ 'electron_shell_copy',
+ ],
+ }],
],
'defines': [
'USE_SYSTEM_ICU',
# It's added to use TZ_SYS_RO_PACKAGES.
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(nss)
+%if "%{?TIZEN_PRODUCT_TV}" == "1"
+BuildRequires: pkgconfig(vd-win-util)
+%endif
Requires: /usr/bin/systemctl