From f9590fc60a0bb20515ed454ca68b293e9aa311ee Mon Sep 17 00:00:00 2001 From: Piotr Tworek Date: Thu, 9 Apr 2015 17:19:25 +0200 Subject: [PATCH] Fix Tizen 3.0 chromium-ewk build after upversion to M42 Mostly mising patches in src and include path changes. Unfortunately there is also one bigger feature that needs to be disabled. GpuMemoryBufferImplEfl will need some love to work with m42. This patch disables it with ewk_bringup macros. Change-Id: I2616c057852956949eff3ba6a8a7c72e0d0f0c9c Signed-off-by: Piotr Tworek --- tizen_src/build/system.gyp | 2 +- .../content/common/gpu/client/gpu_memory_buffer_impl_efl_pixmap.cc | 2 +- tizen_src/chromium_impl/content/content_efl.gypi | 3 ++- tizen_src/chromium_impl/gpu/config/gpu_info_collector_efl.cc | 2 +- tizen_src/chromium_impl/ui/gl/gl_image_efl_pixmap.cc | 2 +- .../ewk/efl_integration/browser/web_view_browser_message_filter.cc | 2 +- tizen_src/ewk/efl_integration/eweb_view.cc | 5 +++++ tizen_src/ewk/efl_integration/renderer/render_frame_observer_efl.cc | 6 ++++++ tizen_src/packaging/chromium-efl.spec | 2 +- 9 files changed, 19 insertions(+), 7 deletions(-) diff --git a/tizen_src/build/system.gyp b/tizen_src/build/system.gyp index 8568fb7..d8d5ff8 100644 --- a/tizen_src/build/system.gyp +++ b/tizen_src/build/system.gyp @@ -178,7 +178,7 @@ 'target_name': 'ui-gadget', 'type': 'none', 'conditions': [ - ['building_for_tizen_mobile==1', { + ['building_for_tizen==1', { 'direct_dependent_settings': { 'cflags': [ 'MoveSelectElement(direction); #endif +#endif } Eina_Bool EWebView::DidSelectPopupMenuItem(int selectedIndex) { @@ -1255,8 +1258,10 @@ Eina_Bool EWebView::PopupMenuClose() { if (!render_frame_host) return false; +#if !defined(EWK_BRINGUP) render_frame_host->DidClosePopupMenu(); #endif +#endif return true; } diff --git a/tizen_src/ewk/efl_integration/renderer/render_frame_observer_efl.cc b/tizen_src/ewk/efl_integration/renderer/render_frame_observer_efl.cc index 08e2408..74840dd 100644 --- a/tizen_src/ewk/efl_integration/renderer/render_frame_observer_efl.cc +++ b/tizen_src/ewk/efl_integration/renderer/render_frame_observer_efl.cc @@ -59,8 +59,10 @@ bool RenderFrameObserverEfl::OnMessageReceived(const IPC::Message& message) { IPC_BEGIN_MESSAGE_MAP(RenderFrameObserverEfl, message) #if defined(OS_TIZEN) IPC_MESSAGE_HANDLER(FrameMsg_SelectPopupMenuItems, OnSelectPopupMenuItems) +#if !defined(EWK_BRINGUP) IPC_MESSAGE_HANDLER(FrameMsg_ClosePopupMenu, OnClosePopupMenu) #endif +#endif #if !defined(EWK_BRINGUP) IPC_MESSAGE_HANDLER(FrameMsg_MoveToPreviousSelectElement, OnMovePreviousSelectElement) IPC_MESSAGE_HANDLER(FrameMsg_MoveToNextSelectElement, OnMoveNextSelectElement) @@ -74,6 +76,7 @@ bool RenderFrameObserverEfl::OnMessageReceived(const IPC::Message& message) { void RenderFrameObserverEfl::OnSelectPopupMenuItems( bool canceled, const std::vector& selected_indices) { +#if !defined(EWK_BRINGUP) RenderFrameImpl* render_frame_impl_ = static_cast(render_frame()); ExternalPopupMenu* external_popup_menu_ = render_frame_impl_->GetExternalPopupMenu(); if (external_popup_menu_ == NULL) @@ -86,15 +89,18 @@ void RenderFrameObserverEfl::OnSelectPopupMenuItems( external_popup_menu_->DidSelectItems(canceled, selected_indices); if (canceled) render_frame_impl_->DidHideExternalPopupMenu(); +#endif } void RenderFrameObserverEfl::OnClosePopupMenu() { +#if !defined(EWK_BRINGUP) RenderFrameImpl* render_frame_impl_ = static_cast(render_frame()); ExternalPopupMenu* external_popup_menu_ = render_frame_impl_->GetExternalPopupMenu(); if (external_popup_menu_ == NULL) return; external_popup_menu_->close(); render_frame_impl_->DidHideExternalPopupMenu(); +#endif } #endif diff --git a/tizen_src/packaging/chromium-efl.spec b/tizen_src/packaging/chromium-efl.spec index 1370e1f..68022e6 100644 --- a/tizen_src/packaging/chromium-efl.spec +++ b/tizen_src/packaging/chromium-efl.spec @@ -90,7 +90,7 @@ BuildRequires: pkgconfig(capi-system-device) BuildRequires: pkgconfig(capi-location-manager) BuildRequires: pkgconfig(location) BuildRequires: pkgconfig(gles20) -BuildRequires: pkgconfig(libpng12) +BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(speex) BuildRequires: pkgconfig(flac) -- 2.7.4