WRT already get the wayland resource ID before SetWindowId.
So, EwkExtensionSystemDelegate::SetWindowId() don't need to work
same thing.
Getting wayland resource ID sometimes takes much time about 50~100ms
due to IPC with wayland server.
Change-Id: I9f6d2bc5faa1c82d3b1d84a4d90ea76f6ef08be8
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
cb_data_ = data;
}
+void EwkExtensionSystemDelegate::SetWindowId(const int window_id) {
+ window_id_ = window_id;
+}
+
void EwkExtensionSystemDelegate::SetWindowId(const Evas_Object* main_window) {
#if BUILDFLAG(IS_TIZEN_TV)
Evas* evas = evas_object_evas_get(main_window);
void SetGenericSyncCallback(Generic_Sync_Call_Callback cb, void* data);
void SetWindowId(const Evas_Object* main_window);
+ void SetWindowId(const int window_id);
private:
Ewk_Value info_;
LOG(ERROR) << "No delegate is available to set window id";
return;
}
- delegate->SetWindowId(top_window_);
+ if (global_resource_id)
+ delegate->SetWindowId(global_resource_id);
+ else
+ delegate->SetWindowId(top_window_);
}
void WRTNativeWindowTV::RegisterPepperExtensionDelegate() {