platform/framework/web/chromium-efl.git
6 years agoIntroduce 'chromium-efl-libs.spec'.
Antonio Gomes [Tue, 16 Jun 2015 22:35:50 +0000 (15:35 -0700)]
Introduce 'chromium-efl-libs.spec'.

Goal of the patch is:
build and pack all chromium targets that both 'xwalk'
and 'chromium-ewk' targets depends on, using a component build.
Note that any target define in xwalk/ or tizen_src/ewk/
directories are excluded.
As result, chromium-efl-libs.rpm will contain all .so files
that xwalk and chromium-ewk targets requires to get build.

In a follow up patch, a crosswalk-bin.spec will be
introduced, and it will depend on chromium-efl-libs.rpm.
crosswalk-bin will build all xwalk targets, but not the chromium
targets already built by chromium-efl-libs.
This will speed up xwalk development cycle.

* packaging/chromium-efl-libs.spec: fork of the xwalk's crosswalk-libs.spec.
  Difference from the original: It adds some dependencies needed by
  chromium-efl sources; it also, calls gyp_chromiumefl.sh instead of
  directly calling gyp_xwalk.

* packaging/print-chromium-deps.py: fork of the xwalk version.
  Difference from the original: it changes the if condition that
  filter out xwalki and chromium-ewk targets from the final output.
  Script processes dump.json, which is the output of GYP when
  "dump_dependency_json" is set to GYP_GENERATORS.
  It prints out a list of targets to be built.

* packaging/chromium-efl-libs.manifest: copy from xwalk.

The change in system.gyp is needed because on component
builds, target that 'base' depends on directly need to
have a toolsets definition. see [1] for reference.

[1] http://codereview.chromium.org/7904034

How to use use:
$ tizen_src/build/build_mobile.sh --libs

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Reviewed by: Hyunhak Kim, arno renevier

Change-Id: I3268bc7aaff5bfa3ffda24c41da048654dbec75e
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years ago[tizen v3.0] Fixing malfunction of IME in Korean language mode
Youngsoo Choi [Wed, 24 Jun 2015 06:57:42 +0000 (15:57 +0900)]
[tizen v3.0] Fixing malfunction of IME in Korean language mode

[Issue]
A preediting Korean word is deleted, right after completion of the word.

[cause]
The API 'ecore_imf_context_reset' has been used in wrong case.

The usage of the API is like below in editable element.

1) When focus is out
2) When position of a cursor is moved by touch input
3) Before text selection starts
4) Before deleting string

[resolve]
This patch removes a redundant API.
When a preediting Korean word is completed,
platform emits a event 'ECORE_IMF_CALLBACK_COMMIT'
although 'ecore_imf_context_reset' is not called.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13441
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I047411be517f0358d0a6f468fa71b95727159d46
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoInternalization for user_media
DongJun Kim [Wed, 17 Jun 2015 11:30:13 +0000 (20:30 +0900)]
Internalization for user_media

This patch is internalization for user media on tizen 3.0.

In Previous version, permission request popups are
implemented on application side like WRT or browser.
Now we change to internalize this on web-engine.

Permission request callback is set to web-engine by default.
If do not set any permission callback by user,
it will be shown up by web engine side.

In this procedure, web-engine can manage request popup via below classes.
- UserMediaPermissionPopup
- PermissionPopupManager

On the other hand,
application can set to callback function and reply to result via below APIs.
- ewk_view_user_media_permission_callback_set()
- ewk_user_media_permission_reply()
- ewk_user_media_permission_request_origin_get()

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13067
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I652ca1cbda5fd4fe38f5baba06a9c3103d4ac6fd
Signed-off-by: DongJun Kim <djmix.kim@samsung.com>
6 years ago[wayland] Webcursor for wayland
yh106.jung [Thu, 25 Jun 2015 07:08:45 +0000 (16:08 +0900)]
[wayland] Webcursor for wayland

Set cursor from the name that was predefined on wayland.
In wayland, 13 cursor types are provided.
======================
bottom_left_corner
bottom_right_corner
bottom_side
grabbing
left_ptr
left_side
right_side
top_left_corner
top_right_corner
top_side
xterm
hand1
watch
======================

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12763
Reviewed by: Hyunhak Kim, arno renevier

Change-Id: If928caa49646abd6c29c59cf0186879064318567
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agoAdd missing dependency for efl-init
Arnaud Renevier [Fri, 19 Jun 2015 21:59:37 +0000 (14:59 -0700)]
Add missing dependency for efl-init

efl-init needs to depend on ozone, on compositor, and on
ecore-{x,wayland}.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim, arno renevier

Change-Id: I095f1eb317b5fd0d6eeb08c01800de4268d1977f
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoCreate shared mailbox manager in content module
Arnaud Renevier [Wed, 17 Jun 2015 01:00:17 +0000 (18:00 -0700)]
Create shared mailbox manager in content module

Right now, mailbox manager is created gl_shared_context_efl.cc

But gpu targets depend on 'gl'

So that means that 'gl' target depends on an object defined in gpu. But
gpu itself depend on gl target. In order to build with shared component,
we need to break that cycle.

So, this patch creates a shared mailbox manager object which resides in
content module.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Prashant Nevase

Change-Id: Iee44b421448b95a7c0896cd8f080a7b66ed46a80
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agofixup! [Rebase][dev/m42_2311] Autofill bringup
Karol Furmaniak [Fri, 19 Jun 2015 11:41:41 +0000 (13:41 +0200)]
fixup! [Rebase][dev/m42_2311] Autofill bringup

[Problem]: Datalist popup does not show.
Only first element from list is entred to datalist
control field.

[Solution]: Elements with frontend_id < 0 were removed from
suggestion list, but shouldn't be.
After selecting suggestion, genlist index was passed as identificator,
but frontend_id should be passed.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12729
Reviewed by: Antonio Gomes, Piotr Grad

Change-Id: Idc63c08e2590ccadcaf8d3a569e6adcf1cefef4b
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
6 years ago[M40 Merge] Add multisampling samples count to '4' for canvas on TV.
Nitish [Thu, 18 Jun 2015 12:36:09 +0000 (18:06 +0530)]
[M40 Merge] Add multisampling samples count to '4' for canvas on TV.

Set default multisampling count to 4. We can change it using
command line argument:

 --canvas-msaa-sample-count=|value|

+--------+-------------------+
|        | Canvas Perf Score |
+--------+-------------------+
| Before |       0.99        |
+--------+-------------------+
| After  |      ~2.00        |
+--------+-------------------+

m40 patch: http://165.213.202.130/gerrit/#/c/75340/

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=12674
Reviewed by: Prashant Nevase, venu musham

Change-Id: Icf28ed2b218dd1d28f8cd65f835e038fc5f9773b
Signed-off-by: Nitish <ask.nitish@samsung.com>
6 years ago[MM]Enable TTS feature on 3.0 TV
ws29.jung [Wed, 24 Jun 2015 02:07:29 +0000 (11:07 +0900)]
[MM]Enable TTS feature on 3.0 TV

Before TTS feature was only enabled with Mobile build.
This patch enables TTS feature with Tizen 3.0 TV.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13391
Reviewed by: SeungSeop Park, Venugopal S M

Change-Id: I2e6c1fc942caab5eed8232cc0c5cd91c03698d8d
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoRemove redundant and incorrect TOPDIR definitions
SeungSeop Park [Wed, 17 Jun 2015 23:57:48 +0000 (08:57 +0900)]
Remove redundant and incorrect TOPDIR definitions

After directory structure refactoring, TOPDIR defintion became wrong
in some build scripts. It caused no problem until now because correct
TOPDIR exported by common.sh overrides the wrong one anyway.
Patch just removes such redundant and incorrect TOPDIR definitions.
Reviewed by: Antonio Gomes, Hyungsun Ryu, arno renevier

Change-Id: I0c0c097e1319e36f82fc36f118dc4bd26e9c0838
Signed-off-by: SeungSeop Park <sns.park@samsung.com>
6 years ago[Ubrowser] Implement user media permission popup
Marcin Lapinski [Wed, 24 Jun 2015 16:27:21 +0000 (18:27 +0200)]
[Ubrowser] Implement user media permission popup

Patch implements "usermedia,permission,request", and add general
permission popup windows UI in uBrowser. It makes iteasier to
implement other permission callbacks, (e.g. geolocation).

To verify this change follow these steps:
   1. Open page: https://www.simpl.info/getusermedia/
   2. Popup should appear.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13149
Reviewed by: Antonio Gomes, Janusz Majnert

Change-Id: If1c24b5487c48b10a20e865af84804c7449e111e
Signed-off-by: Marcin Lapinski <m.lapinski@samsung.com>
6 years agoMove WebMediaPlayerEfl from media to content_renderer
yh106.jung [Mon, 22 Jun 2015 03:52:24 +0000 (12:52 +0900)]
Move WebMediaPlayerEfl from media to content_renderer

Component build was failed when trying to link libmedia,
because WebMediaPlayerEfl needs libcontent.
If we add libcontent as a dependency in gyp to resolve link error,
it may result in cyclic dependency.
To avoid dependency on libcontent, WebMediaPlayerEfl should be
moved to content_renderer.
Please refer to the android's implementation(WebMediaPlayerAndroid).

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, SeungSeop Park, Venugopal S M

Change-Id: Id1ab83e5f5d5712061355c49a3d9f63de144967c
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years ago[M40 Merge] Add Ewk_Context specific notification handling
DongJun Kim [Sun, 21 Jun 2015 09:23:30 +0000 (18:23 +0900)]
[M40 Merge] Add Ewk_Context specific notification handling

Below 2 APIs are missed in beta/m42.
So we need to migration from beta/m40
- ewk_context_notification_callbacks_set
- ewk_context_notification_callbacks_reset

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=11367

Original patch: http://web.sec.samsung.net/gerrit/#/c/75818/
Reviewed by: Hyunhak Kim, Karol Furmaniak

Change-Id: I858117f52a5e7ca67ded2b2651cbd23938f8cabb
Signed-off-by: DongJun Kim <djmix.kim@samsung.com>
6 years agoRemove explicit dependency on capi-system-system-settings
Antonio Gomes [Wed, 17 Jun 2015 16:32:33 +0000 (09:32 -0700)]
Remove explicit dependency on capi-system-system-settings

After [1], content_common target does not need to
explicitly depend on 'capi-system-system-settings'.
Patch cleans this up.

For completeness, the dependency was originally added
by [2].

[1] http://165.213.202.130/gerrit/#/c/81990/
[2] http://165.213.202.130/gerrit/#/c/79010/
Reviewed by: Hyunhak Kim, mohan reddy

Change-Id: Iefc2b6dd9bb6fe9b128815c5569cdb8569e05a00
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoDo not "force" ninja as the gyp generated format
Antonio Gomes [Mon, 22 Jun 2015 16:56:34 +0000 (09:56 -0700)]
Do not "force" ninja as the gyp generated format

'ninja' is set as the default gyp output format in
src/build/gyp_environment.py, so we do not need to
explicitly set it.

Also, we were setting it unconditionally, which was
making it impossible to customize its value (e.g. by
GYP_GENERATORS environment variable).
For chromium-efl-libs work, we need to be able to set
'dump_dependency_json' as one of our gyp output format.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Reviewed by: Balazs Kelemen, SeungSeop Park

Change-Id: Iaa0b579019ed756a886085ef7dcdf5a40b788503
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! Set more chromium-ewk target dependencies explicitly
Antonio Gomes [Mon, 22 Jun 2015 12:10:21 +0000 (05:10 -0700)]
fixup! Set more chromium-ewk target dependencies explicitly

That solves the following "undefined reference" errors at link time
(GBS builds):

function efl::AppendPortParams():
  error: undefined reference to 'cc::switches::kEnableTileCompression'
function efl::AppendPortParams():
  error: undefined reference to 'cc::switches::kTileCompressionThreshold'
function efl::AppendPortParams():
  error: undefined reference to 'cc::switches::kTileCompressionMethod'
function efl::AppendPortParams():
  error: undefined reference to 'cc::switches::kDisableTileCompression'

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Balazs Kelemen, Hyunhak Kim

Change-Id: Idd8e3cb0cf8b9e18aef8b9f939e6b68e2a9745dd
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! Various exports
Antonio Gomes [Mon, 22 Jun 2015 12:06:13 +0000 (05:06 -0700)]
fixup! Various exports

Export some extra class definitions (Tts) caught by
GBS builds of ewk target.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Hyunhak Kim, arno renevier

Change-Id: I0e8228f1bee2bd610af9f2277de70bca481a3082
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! Flag to build chromium with shared components
Antonio Gomes [Mon, 22 Jun 2015 11:50:16 +0000 (04:50 -0700)]
fixup! Flag to build chromium with shared components

Patch adds support component=shared_library on GBS builds.

$build_{mobile,tv,emulator}.sh --component-build
or
$ gbs --define "component_build 1"

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Hyunhak Kim, arno renevier

Change-Id: I40c082835a813e4753b79dd07b59170d17d8e3d1
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoExport content::WebAudioDecoderGStreamer
yh106.jung [Mon, 22 Jun 2015 11:33:47 +0000 (20:33 +0900)]
Export content::WebAudioDecoderGStreamer

content::WebAudioDecoderGStreamer is needed by Chromium-ewk.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I170c463999f0e838c95c895efd7d4a6f31ed12f2
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agofixup! [wayland][tizen v3.0] Initial support for TV and mobile
Antonio Gomes [Fri, 19 Jun 2015 20:31:59 +0000 (16:31 -0400)]
fixup! [wayland][tizen v3.0] Initial support for TV and mobile

Patch removes 'xkbcommon' target declaration.
It is not only not needed, but if we ever need it
we can instead use GYP use_xkbcommon variable instead.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12490
Reviewed by: Hyunhak Kim, arno renevier

Change-Id: I7bbc308c11d2393515e947ccdd2d11eff08a154c
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoSet more chromium-ewk target dependencies explicitly
Antonio Gomes [Fri, 19 Jun 2015 14:21:03 +0000 (10:21 -0400)]
Set more chromium-ewk target dependencies explicitly

That solves the following "undefined reference" errors at link time:

RemoveBitmapCommand::sqlExecute():
  error: undefined reference to 'sqlite3_*'
InsertFaviconURLCommand::sqlExecute():
  error: undefined reference to 'sqlite3_*'
InitDatabaseCommand::sqlExecute():
  error: undefined reference to 'sqlite3_*'
UpdateFaviconURLCommand::sqlExecute():
  error: undefined reference to 'sqlite3_bind_text'
InsertBitmapCommand::sqlExecute():
  error: undefined reference to 'sqlite3_bind_blob'
UpdateBitmapCommand::sqlExecute():
  error: undefined reference to 'sqlite3_bind_blob'
LoadDatabaseCommand::sqlExecute():
  error: undefined reference to 'sqlite3_column_text'
LoadDatabaseCommand::sqlExecute():
  error: undefined reference to 'sqlite3_column_blob'
FaviconDatabase::Close():
  error: undefined reference to 'sqlite3_close'
PrintWebViewHelperEfl::PrintPageInternal():
  error: undefined reference to 'printing::MetafileSkiaWrapper::SetMetafileOnCanvas()'
PrintWebViewHelperEfl::PrintPagesToPdf():
  error: undefined reference to 'printing::PdfMetafileSkia::PdfMetafileSkia()'
PrintWebViewHelperEfl::PrintPagesToPdf():
  error: undefined reference to 'printing::PdfMetafileSkia::Init()'
PrintWebViewHelperEfl::PrintPagesToPdf():
  error: undefined reference to 'printing::PdfMetafileSkia::~PdfMetafileSkia()'
PrintWebViewHelperEfl::PrintPagesToPdf():
  error: undefined reference to 'printing::PdfMetafileSkia::FinishDocument()'
PrintWebViewHelperEfl::PrintPagesToPdf():
  error: undefined reference to 'printing::PdfMetafileSkia::GetDataSize() const'
PrintWebViewHelperEfl::PrintPagesToPdf():
  error: undefined reference to 'printing::PdfMetafileSkia::GetData() const'
(anonymous namespace)::GetFileSystemOriginsOnFILEThread():
  error: undefined reference to 'storage::FileSystemQuotaClient::FileSystemQuotaClient()'
EWebView::SetOrientation(int):
  error: undefined reference to 'ecore_x_default_screen_get'
  error: undefined reference to 'ecore_x_screen_size_get'
  error: undefined reference to 'ecore_x_default_screen_get'
  error: undefined reference to 'ecore_x_screen_size_get'
EWebView::HandleTouchEvents():
  error: undefined reference to 'ui::TouchEvent::~TouchEvent()'
EWebView::Initialize():
  error: undefined reference to 'switches::kTouchEvents'
EwkGlobalData::GetInstance():
  error: undefined reference to 'ui::OzonePlatform::InitializeForUI()'
VibrationProviderClientEwk::GetInstance():
  error: undefined reference to 'device::VibrationManagerImplEfl::RegisterProviderClient()'
efl::AppendPortParams(base::CommandLine&):
  error: undefined reference to 'gfx::kGLImplementationEGLName'
efl::AppendPortParams(base::CommandLine&):
  error: undefined reference to 'switches::kUseGL'
efl::AppendPortParams(base::CommandLine&):
  error: undefined reference to 'switches::kUIDisableThreadedCompositing'
RenderProcessObserverEfl::OnPurgeMemory():
  error: undefined reference to 'v8::Isolate::GetCurrent()'
RenderProcessObserverEfl::OnPurgeMemory():
 error: undefined reference to 'v8::Isolate::LowMemoryNotification()'

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Hyunhak Kim, arno renevier

Change-Id: Ic9355a57603aa8beadef51e999240dde90ad4906
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoRemove EvasParentViewMoveCallback callback
Arnaud Renevier [Fri, 19 Jun 2015 18:32:31 +0000 (11:32 -0700)]
Remove EvasParentViewMoveCallback callback

In SelectionControllerEfl, a callback is set in the constructor, but not
unset in the desctructor.

Because of that, I encountered a crash of the browser process when the
renderer process crashed. This shouldn't happen (the browser process
should survive the renderer process).

This patch fixes the issue.
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: If4c236c481c56351771de9c4fd24de95f0099695
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[EWK_REFACTOR] bringup EWebViewCallbacks::ZoomStarted/ZoomFinished SmartCallback
hh4813.kim [Wed, 10 Jun 2015 11:08:00 +0000 (20:08 +0900)]
[EWK_REFACTOR] bringup EWebViewCallbacks::ZoomStarted/ZoomFinished SmartCallback

EWK_REFACTOR guards are removed for bringup ZoomStarted/ZoomFinished SmartCallback.
WebContentsViewEflDelegate::HandleZoomGesture is newly introduced to deliver zoom
gesture events to EWebView, so it can trigger ZoomStarted/ZoomFinished SmartCallback.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12028
Reviewed by: Antonio Gomes, DONGJUN KiM

Change-Id: I56fb07992f4e7b543cfe45b50f440c732a808a72
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoMake vconf an external dependency for selection code (gbs builds).
Antonio Gomes [Thu, 18 Jun 2015 22:00:09 +0000 (15:00 -0700)]
Make vconf an external dependency for selection code (gbs builds).

This fixes the following error:
[XXs] tizen_src/chromium_impl/c/b/selection/selection_controller_efl.cc:95:
  error: undefined reference to 'vconf_notify_key_changed'

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim, arno renevier

Change-Id: Id9e9ab9d1b2c334f4cc1aad9f45370112d119971
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoExport ui:SetScreenOrientation for component build
yh106.jung [Wed, 17 Jun 2015 02:53:12 +0000 (11:53 +0900)]
Export ui:SetScreenOrientation for component build

ui:SetScreenOrientation is needed by content
during component build, so export it.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim, arno renevier

Change-Id: Ic50e5dd48b7221add1a685f88b8fe36ae19fad1e
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoSave image doesn't work on context menu
Grzegorz Spryszynski [Thu, 18 Jun 2015 14:52:44 +0000 (16:52 +0200)]
Save image doesn't work on context menu

[Problem] Nothing happend after invoke 'Save image' command
from image context menu. No message, no image is saved.
[Cause] There was a change in files structure. There is no more
directory /opt/user/media/Images where Chromium trying to save
the files.
[Solution] Now images (and downloads) are kept in
/usr/data/data-media. Commit change proper paths.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13334

Reviewed by: Hyunhak Kim, Karol Furmaniak
Signed-off-by: Grzegorz Spryszynski <g.spryszynsk@samsung.com>
Change-Id: Ic2ba93cb353940724e2811a44cda9d72be875757

6 years ago[M40 Merge] Remove "unfocused" callback in context_menu
Karol Furmaniak [Thu, 12 Mar 2015 07:20:16 +0000 (16:20 +0900)]
[M40 Merge] Remove "unfocused" callback in context_menu

This is workaround patch before resolving by platform.

"unfocused" callback is called by immediately,
after context menu is shown up in latest platform.
At this time, context menu is hided.
We need to remove "unfocused" callback.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13199

Original patch: http://165.213.202.130/gerrit/#/c/77325/
Reviewed by: Hyunhak Kim, Piotr Grad, commitbot

Change-Id: Id0a5497f800af63c62604e05cc6148e7ca741823
Signed-off-by: Dongjun Kim <djmix.kim@samsung.com>
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
6 years ago[M40 Merge] Fixed form autofill popup position.
Karol Furmaniak [Mon, 2 Mar 2015 15:31:12 +0000 (16:31 +0100)]
[M40 Merge] Fixed form autofill popup position.

Autofill form data popup wasn't shown below input list.
It seems that position of webview hasn't been included
in AutofillManagerDelegateEfl::ShowAutofillPopup.
Adding it solves problem in both minibrowser and browser.

Original commit: http://165.213.202.130/gerrit/#/c/75975/
Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12729
Reviewed by: Hyunhak Kim, Jaesik Chang, Karol Furmaniak, Piotr Grad, commitbot

Change-Id: Ib8df80ad5bbbb8f027ea73f85680913e7cb045cf
Signed-off-by: MichaĊ‚ Obrembski <m.obrembski@samsung.com>
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
6 years agofixup! Composite frame to native surface directly on main thread.(impl part, optional)
Arnaud Renevier [Thu, 18 Jun 2015 19:31:46 +0000 (12:31 -0700)]
fixup! Composite frame to native surface directly on main thread.(impl part, optional)

We also need to remove dependency on switches::kDisableGpuThread.
Otherwise, we get a link error: undefined reference to
'switches::kDisableGpuThread'

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: Ic3f2b2c417d30dd4fb5bb95d1ded287b3c672374
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[M42][Tizen 3.0] Delete processor directives for WRT
joke.song [Fri, 12 Jun 2015 08:00:23 +0000 (17:00 +0900)]
[M42][Tizen 3.0] Delete processor directives for WRT

[Issue]     N/A
[Problem]   Fix Mobile build error
[Cause]     There are processor directives using feature flags that are not supported on WRT
[Solution]  Delete processor directive
[Verify]    build and check

change-Id: I64c55213e0ac6eba2d2acc171f5fed0c3859624f
Signed-off-by: joke.song <joke.song@samsung.com>
6 years agoWrap GetContentClient() in GetContentClientExport()
Arnaud Renevier [Wed, 17 Jun 2015 22:11:28 +0000 (15:11 -0700)]
Wrap GetContentClient() in GetContentClientExport()

GetContentClient() is supposed to be used only in content module. But we
need it ewk too. For now, we simply add its declaration when needed. But
this wont't work any more for component build.

So we define a method GetContentClientExport() in content. That method
will simply return GetContentClient()

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I696b6890c9113c1d981d8cdb9dbeb0ca3508d567
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoBuild directly additory sources for ui modules during component build
yh106.jung [Wed, 17 Jun 2015 10:32:25 +0000 (19:32 +0900)]
Build directly additory sources for ui modules during component build

In static mode, we build additory sources that is needed
by efl-port as injectable static library.
However, in component mode, we build each of ui modules
as single DLL. So we include needed sources directly.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim, arno renevier

Change-Id: I76dbb7348132ab83ccf363e86741d637f7a02716
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agocontent.gyp refactorisation
Arnaud Renevier [Wed, 17 Jun 2015 00:13:57 +0000 (17:13 -0700)]
content.gyp refactorisation

Content module is built as a single dll in component mode, but as
multiple targets in static mode. (see src/content/content.gyp). So, in
chromium, source files of content_browser, content_child,
content_common, content_efl, content_gpu and content_renderer are
defined in different files. This allows those lists to be included in
the two cases.

This patch reproduces this behaviour for our content module.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim, arno renevier

Change-Id: I0a722d5d94e473a644991184117a82e047f728b6
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoFix IME events handling
jiyoon.seol [Fri, 5 Jun 2015 07:19:50 +0000 (03:19 -0400)]
Fix IME events handling

When we try to insert text by virtual keyboard,
it is not operated normally.
Because commit text is not delivered to renderer process.
It is already implemented in m40 branch
(refer to http://suprem.sec.samsung.net/gerrit/#/c/2949/).
So, Implemented some functions that handle IME events in m42 branch.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13192
Reviewed by: Antonio Gomes, Hyunhak Kim, SeungSeop Park

Change-Id: I6034e72ad9c5ada53b90af0ad36914c4b9903308
Signed-off-by: jiyoon.seol <jiyoon.seol@samsung.com>
6 years agoMove --depth definition to gyp_chromium.sh
Antonio Gomes [Wed, 17 Jun 2015 20:13:03 +0000 (13:13 -0700)]
Move --depth definition to gyp_chromium.sh

Both gyp_chromiumefl and gyp_xwalk need to define
GYP's argument "--depth" in order to be able to "locate"
"src" directory.
As it is, gyp_chromiumefl does it, but gyp_xwalk does not.

Patch moves the --depth definition done in gyp_chromiumefl
up to gyp_chromiumefl.sh, so that gyp_xwalk can also benefit
from it

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Reviewed by: Antonio Gomes, SeungSeop Park, arno renevier

Change-Id: Ia15653438e5620993c42ef1505f89cbedbee3c9b
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoVarious exports
Arnaud Renevier [Wed, 17 Jun 2015 21:58:02 +0000 (14:58 -0700)]
Various exports

Export all the methods and classes which are needed to build ewk

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I054b9897f7f51596ee70d05f9945f0ea2c85d13a
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agofixup! Implement Delegate renderer using frame buffer object on Tizen.
Chandan Padhi [Wed, 17 Jun 2015 13:43:21 +0000 (19:13 +0530)]
fixup! Implement Delegate renderer using frame buffer object on Tizen.

Currently, segmentation fault occurs if a new page is loaded on top of an
already loaded page. In this scenario, current RWHVEfl is destroyed and a
new RWHVEfl is created. In delegated rendering, ui::ContextFactoryEfl and
ui::Compositor are created as scoped pointers with ContextFactoryEfl being
created before Compositor. Destruction of scoped pointers takes place in the
same order as their creation. Therefore, ContextFactoryEfl gets deleted before
Compositor even though Compositor holds a reference to ContextFactoryEfl.
Crash occurs when Compositor tries to access ContextFactoryEfl which has been
already deleted.

To solve this problem, we now create ContextFactoryEfl and Compositor as raw
pointers and delete them in RWHVEfl's destructor in the required order.
Reviewed by: DaeHyun Ko, Prashant Nevase, venu musham

Change-Id: I5172342df43fde49f71750b9752588e242380cf2
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
6 years agoExport ClipboardHelperEfl for component build
yh106.jung [Wed, 17 Jun 2015 11:20:18 +0000 (20:20 +0900)]
Export ClipboardHelperEfl for component build

ClipboardHelperEfl is needed by Content module
during component build.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim, arno renevier

Change-Id: I894b6f1ac46bfb1674aa354a194272e777ee69fc
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agoExport GLSharedContextEfl and GetTextureIdFromTexture
Arnaud Renevier [Wed, 17 Jun 2015 19:02:17 +0000 (12:02 -0700)]
Export GLSharedContextEfl and GetTextureIdFromTexture

GLSharedContextEfl and GetTextureIdFromTexture are needed by content
during component build, so export them.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: Ia32f7363bb57c3284517c9d4d6f6044fdad7ac0a
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoUse GYP_GENERATOR_FLAGS instead of GYP_GENERATOR_OUTPUT
Antonio Gomes [Wed, 17 Jun 2015 16:27:01 +0000 (09:27 -0700)]
Use GYP_GENERATOR_FLAGS instead of GYP_GENERATOR_OUTPUT

As it is, gyp_chromiumefl makes use of the value set to
GYP_GENERATOR_OUTPUT variable in order to determine
the 'out' directory name to output ninja content.
Differently, gyp_walk makes use of GYP_GENERATOR_FLAGS
for the same.
That difference makes it erroneous to call gyp_xwalk from
gyp_chromiumefl.sh, something that we want to be able to do
as part of our crosswalk-libs/bin packaging seperation (see
bug 13316).

In order to allow both gyp_xwalk and gyp_chromiumefl to
be invoked from gyp_chromiumefl.sh, patch changes the later
to use GYP_GENERATOR_FLAGS to determine the gyp output
directory name.
For gyp_chromiumefl, patch is a refactor only. For crosswalk,
it allows gyp_xwalk to be called by gyp_chromiumefl.sh.

Note that "GetOutputDirectory" function that replaces
"get_output_dir" is identical to xwalk/gyp_xwalk and
build/gyp_chromium.

Reviewed by: SeungSeop Park, arno renevier
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Change-Id: I9fef8a5b904c12dd1431593beeafc0a632adff90

6 years agoRemoving required rpm 'location'
Youngsoo Choi [Wed, 17 Jun 2015 01:38:09 +0000 (10:38 +0900)]
Removing required rpm 'location'

The rpm 'location' does not need to be required in spec file.

The 'location' should be required by 'capi-location-manager'
and 'capi-location-manager' is required by 'chromium-efl'.

This change has been requested by platform team.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13323
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I41dca69440b1e4308a35cff13cebe885231ecf56
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoMove selection code into content/ module.
Arnaud Renevier [Tue, 16 Jun 2015 23:31:51 +0000 (16:31 -0700)]
Move selection code into content/ module.

Currently, selection code (SelectionBoxEfl, SelectionControllerEfl,
SelectionHandleEfl and SelectionMagnifierEfl) are into ui/base
directory.

But those objects are used in content and are even defined in namespace
content. So those files definitely belong in content/ module.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: Iae3f7e76978223cec4d5925c915d0fb529e1290c
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[tizen v3.0] Removing spec configuration for architecture 'arm64-x11'
Youngsoo Choi [Wed, 17 Jun 2015 05:32:04 +0000 (14:32 +0900)]
[tizen v3.0] Removing spec configuration for architecture 'arm64-x11'

The repository 'arm64-x11' has been deprecated on Tizen v3.0,
and the architecture 'aarch64' is supportive on the repository 'arm64-wayland'.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13326
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: Ib2e9194a0ad992084b9af59ef44998f45882b032
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agofixup! Composite frame to native surface directly on main thread.(impl part, optional)
YongGeol Jung [Mon, 15 Jun 2015 11:05:34 +0000 (20:05 +0900)]
fixup! Composite frame to native surface directly on main thread.(impl part, optional)

We avoid using content::GpuDataManagerImpl::GetInstance() in ui
If we try to build chromium with shared component, this won't work. We
would need to add a gyp dependency on content_browser ui:compositor. But
that would result in a cyclic dependency. So, the only way is to have
ui:compositor not depend on content_browser, and therefore, not using
content::GpuDataManagerImpl

Reviewed by: KwangHyuk Kim, Prashant Nevase, SeungSeop Park
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Change-Id: Ief76bcfebfb4350dbb965aad3997c82a1017b11f
Signed-off-by: YongGeol Jung <yg48.jung@samsung.com>
6 years agofixup! [MM] Enabling CAPI for ME
ws29.jung [Fri, 12 Jun 2015 07:15:10 +0000 (16:15 +0900)]
fixup! [MM] Enabling CAPI for ME

Resolves muted start.

Previously, SetVolume function refused to set volume when player state is
PLAYER_STATE_IDLE but actual precondition accept idle state to set volume.
Also player_set_mute is removed from SetVolume because mute state is
actually handled at Webkit side.
Reviewed by: SeungSeop Park, Venugopal S M

Change-Id: I3717bb653e5003670c1d05980b6a2c90ca3293a9
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoCrash when select context menu item.
Karol Furmaniak [Tue, 16 Jun 2015 11:36:23 +0000 (13:36 +0200)]
Crash when select context menu item.

[Problem]: Long press on text in input field. Choose "Select"
from context menu. Browser will crash.

[Cause]: ContextMenuControllerEfl::HideContextMenu was called
when ContextMenuControllerEfl instance was already destroyed.

[Solution]: Avoid calling HideContextMenu after MenuItemSelected
call in ContextMenuItemSelectedCallback. There can be
ContextMenuControllerEfl scoped_ptr already reseted.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=12741
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I96eadc48be555354fb14c46b76d142f46d79dcdc
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
6 years agofixup! Implement CAPI-ME port using media_packet and appsink
Umesh Kumar Patel [Mon, 15 Jun 2015 10:38:10 +0000 (16:08 +0530)]
fixup! Implement CAPI-ME port using media_packet and appsink

Video format information is not updated due to which green
screen is observed while trying to play video using ME.

Also fixed build warning issues.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13311
Reviewed by: SeungSeop Park, Venugopal S M

Change-Id: I4530e9c01b2b07ff0b1f9837c3fb49f1400dc797
Signed-off-by: Umesh Kumar Patel <umeshk.patel@samsung.com>
6 years agoRemove duplicate BuildRequires in chromiums-efl.spec
Arnaud Renevier [Tue, 16 Jun 2015 20:49:12 +0000 (13:49 -0700)]
Remove duplicate BuildRequires in chromiums-efl.spec

6 packages are currently referenced twice in the spec file. This patch
cleans that up
Reviewed by: Antonio Gomes, SeungSeop Park, arno renevier

Change-Id: I76e5dc817dd754eb0affa7e1217bc9b4e2ea5607
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agofixup! Disable Pango
Arnaud Renevier [Mon, 15 Jun 2015 18:26:04 +0000 (11:26 -0700)]
fixup! Disable Pango

Disable cairo in addition to Pango

While disabling pango and not cairo builds currently, it doesn't allow
building with shared component. src/build/linux/system.gyp has a single
target pangocairo. It's difficult to untangle pango and cairo in
chromium build system.

Cairo is only used in BitmapPlatformDevice (in src/skia/ext). We don't
use cairo here. For screenshot for example, we use skia for
BitmapPlatformDevice.

So, it's probably safe to disable cairo. The alternatives are either to
modify chromium build system to disentangle cairo and pango, or to
revert the the Disable Pango patch for the moment.

Also, we had a dependency to fontconfig. fontconfig is used in content/
But after disabling pango and cairo, fontcongig dependency is not
computed by gyp for non aura builds. We could fix that by modifying
src/content/content_browser.gypi, but it's easier and less troublesome
to maintain to add the dependency in our gyp files.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13279
Reviewed by: Antonio Gomes, DaeHyun Ko

Change-Id: I277b98a236a0935a7f14958d51eef8b0426429b3
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoDifferent build fixups for ozone
Arnaud Renevier [Fri, 12 Jun 2015 22:39:51 +0000 (15:39 -0700)]
Different build fixups for ozone

Different things which are needed to build chromium-efl with shared
components

- Export CreateOzonePlatformEfl
- Add different gyp dependencies
- make media depend on ozone_efl even if tizen_multimedia_support is
  not set

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I08857a428329ae60ede8dfcd90c1ae9280ae8a40
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoEnable Tile compression.
venu.musham [Fri, 12 Jun 2015 17:10:12 +0000 (22:40 +0530)]
Enable Tile compression.

Enable by default ETC1 compression method for tiles. This commit
disables gpu rasterization which is enabled partially based on
meta tag. Tile compression cannot be enabled with gpu rasterization.

Memory Details:
--------------------------------
| Without patch:               |
--------------------------------
|   page       |  PSS  |  3D   |
--------------------------------
| Google suwon | 52421 | 22272 |
--------------------------------
| naver.com(d) | 80077 | 23552 |
--------------------------------

--------------------------------
| With Tile Compression:       |
--------------------------------
|   page       |  PSS  |  3D   |
--------------------------------
| Google suwon | 48100 | 14205 |
--------------------------------
| naver.com(d) | 73632 | 14592 |
--------------------------------
Reviewed by: DaeHyun Ko, Prashant Nevase

Change-Id: I1c6b7b5baa9e28cfbdd206b6ae1c0ed9b82da7b2
Signed-off-by: venu.musham <venu.musham@samsung.com>
6 years agoFlag to build chromium with shared components
Arnaud Renevier [Fri, 12 Jun 2015 22:38:52 +0000 (15:38 -0700)]
Flag to build chromium with shared components

Add --component-build to create a component build of chromium-efl
(desktop only for now)

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: Ifb5728b366a08180fde120e3111398260ea69c45
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoExplicitly depend on vconf for 'device_battery' target
Antonio Gomes [Mon, 15 Jun 2015 18:24:20 +0000 (11:24 -0700)]
Explicitly depend on vconf for 'device_battery' target

While working on the packaging separation for crosswalk
integration on tizen.org, the build type used is
component=shared_library, which reveals some gaps we have
currently in our (static linked) build system.

our 'injected' code into device_battery target
depends explictly on vconf, but target misses
to 'inject' the dependency.

Patch fixes it.

PS: Problem does not manifest on static linked builds

Error:
[ Xs] tizen_src/chromium_impl/device/battery/battery_status_manager_tizen.cc:154:
      error: undefined reference to 'vconf_ignore_key_changed'
[ Xs] tizen_src/chromium_impl/device/battery/battery_status_manager_tizen.cc:197:
      error: undefined reference to 'vconf_get_int'
[ Xs] tizen_src/chromium_impl/device/battery/battery_status_manager_tizen.cc:27:
      error: undefined reference to 'vconf_keynode_get_name'

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13316
Reviewed by: SeungSeop Park, arno renevier

Change-Id: Ie586692fd5b943ba3ccdd0ee1ca69942f3a1d381
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoUse mobile viewport style for tizen mobile.
yh106.jung [Tue, 12 May 2015 15:46:14 +0000 (17:46 +0200)]
Use mobile viewport style for tizen mobile.

This patch enables usage of mobile optimized viewport style when
compiling the code for Tizen Mobile. To make it also testable on desktop
the patch adds additional command line flag, use-mobile-viewport-style
which can control the property from command line. This allows
applications like ubrowser to enable such mobile specific features on
desktop when started with --mobile flag.

It's an alternative to M40 solution found in
http://165.213.202.130/gerrit/#/c/75686/. Compared to the original this
patch uses a setting that was exposed by blink in M43. The patch was also
backported to M42 in order to simplify future updates.

Original author: Piotr Tworek

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=10317
Reviewed by: Antonio Gomes, Hyunhak Kim, SeungSeop Park, Youngha Jung

Change-Id: I513c9a441404c5ab09b3d94660787cf362d23e82
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years ago[M40 Merge] Use MessagePumpGlib as the default backend for renderer main thread
yh106.jung [Mon, 8 Jun 2015 04:30:46 +0000 (13:30 +0900)]
[M40 Merge] Use MessagePumpGlib as the default backend for renderer main thread

Current implementation of WRT plugins run inside renderer process main thread.
The plugins use external libraries that require working glib message pump (MessagePumpGlib).
But use_glib is disabling on Ozone platform because of
some small embedded system that do not provide glib.
In order to use glib message pump on Ozone platform, add use_glib=1 as supplement.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=6116

Together with: Ibd9620a439f402fccd4bc6538ad22d3d32236eba
Reviewed by: Antonio Gomes, Hyunhak Kim, Piotr Grad, SeungSeop Park, arno renevier

Change-Id: I6a942d0415695348854c2d8fd3046fe3c91de8a2
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoSimplify SurfaceFactoryEfl::LoadEGLGLES2Bindings
Arnaud Renevier [Fri, 12 Jun 2015 22:38:33 +0000 (15:38 -0700)]
Simplify SurfaceFactoryEfl::LoadEGLGLES2Bindings

There is actually a function ui::LoadDefaultEGLGLES2Bindings which does
exactly what we need. We can use it, and delete most of
surface_factory_efl.cc

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13303
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I1fb8492d9be64190dd9e0b6f29c4f89ed025f44d
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoMove exclusions out of supplement.gypi
Antonio Gomes [Fri, 12 Jun 2015 18:07:07 +0000 (11:07 -0700)]
Move exclusions out of supplement.gypi

Patch cleans up supplement.gypi by moving exclusions
related to wayland_bringup to the targets they
belong to.

No functional difference intended.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12490
Reviewed by: Balazs Kelemen, arno renevier

Change-Id: I6e442729a182f133292145f916982568ecc8d825
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years ago[EWK_REFACTOR] bringup QuerySelectionStyle for efl_delegate_
hh4813.kim [Tue, 9 Jun 2015 12:57:38 +0000 (21:57 +0900)]
[EWK_REFACTOR] bringup QuerySelectionStyle for efl_delegate_

EWK_REFACTOR guards are removed for bringup QuerySelectionStyle
in SelectionControllerEfl. It triggers EWebViewCallbacks::TextStyleState
via EWebView::OnQuerySelectionStyleReply,

So QuerySelectionStyle is only required in case that WebContentsViewEfl
has valid efl_delegate_.

Also RenderWidgetHostViewEfl::ExecuteEditCommand is removed since it's
not required any more.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12549
Reviewed by: Antonio Gomes, Karol Furmaniak, Piotr Grad

Change-Id: I4619e2d14a62a5d1c0666c0a6879b9d17a4cc515
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoDisable Pango
p.niemirski [Fri, 12 Jun 2015 15:00:28 +0000 (17:00 +0200)]
Disable Pango

Since Pango library is only used to get font list (involving Cairo)
and this functionality is implemented by Chrome Extensions there is
no need to link libchromium against Pango for TIZEN.

This patch is based on http://165.213.202.130/gerrit/#/c/77249/
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13279
Reviewed by: Antonio Gomes, DaeHyun Ko

Change-Id: I5054b939b8e948167e46ada21a86c105ba12a9ce
Signed-off-by: p.niemirski <p.niemirski@samsung.com>
6 years agoComposite frame to native surface directly on main thread.(impl part, optional)
YongGeol Jung [Thu, 16 Apr 2015 07:40:49 +0000 (16:40 +0900)]
Composite frame to native surface directly on main thread.(impl part, optional)

This is experimental patch.
The purpose of this patch is checking possibility
whether gpu commands could be executed on main thread or not.
(with http://165.213.202.130/gerrit/#/c/81008/)
Reviewed by: KwangHyuk Kim, Prashant Nevase

Change-Id: Idbd6c642a78c1fbe58c84e539fb0f25a9ce5fcb6
Signed-off-by: YongGeol Jung <yg48.jung@samsung.com>
6 years agofixup! [EWK_REFACTOR] Get orientation from native window, not ewebview
yh106.jung [Wed, 10 Jun 2015 12:12:52 +0000 (21:12 +0900)]
fixup! [EWK_REFACTOR] Get orientation from native window, not ewebview

Native screen sent invalid orientation, it always returned 0.
So set orientation value once app informs to WebCotentsViewEfl.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13156
Reviewed by: Antonio Gomes, Hyunhak Kim, SeungSeop Park, arno renevier

Change-Id: Iee806175b3616d31188687f0dafd2dabc0fb1cb6
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agoImplement CAPI-ME port using media_packet and appsink
Hyungsun Ryu [Mon, 8 Jun 2015 05:29:31 +0000 (14:29 +0900)]
Implement CAPI-ME port using media_packet and appsink

Implemented CAPI-ME using media_packet and appsink.
This would allow us to test CAPI ME without wayland dependency,
which is sometimes a useful feature on debugging.

This patch does:
- separated APIs for PIXMAP
- added codes adopting APIs about media_packet and tbm_surface
- added codes sending decoded video frame via shared memory

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=11626
Reviewed by: SeungSeop Park, Venugopal S M

Change-Id: Ibf42f5d43ace24869ddbce115ad467fc92a918bb
Signed-off-by: Hyungsun Ryu <hyungsun.ryu@samsung.com>
6 years ago[MM] Enabling CAPI for ME
Umesh Kumar Patel [Fri, 5 Jun 2015 11:37:32 +0000 (17:07 +0530)]
[MM] Enabling CAPI for ME

This patch to enable CAPI for ME and Fixing build issues.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13159
Reviewed by: Antonio Gomes, SeungSeop Park, Venugopal S M

Change-Id: I53f7ca748babf9ddb7b2a16b986f789e011d8a5b
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Signed-off-by: Umesh Kumar Patel <umeshk.patel@samsung.com>
6 years agoCall ewk_context_default_get in Browser::Browser
Arnaud Renevier [Wed, 10 Jun 2015 22:51:30 +0000 (15:51 -0700)]
Call ewk_context_default_get in Browser::Browser

Currently, ubrowser crashes in desktop mode. For some reason, calling
ewk_context_default_get() prevents the crash. This is not the right fix,
but this is a workaround that would allow ubrowser to work while waiting
for a real fix.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13032
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I3135c0185391641ce061c122439620401746dcfe
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[m42][uBrowser] < and > buttons does not work on select picker.
Antonio Gomes [Tue, 9 Jun 2015 20:41:01 +0000 (16:41 -0400)]
[m42][uBrowser] < and > buttons does not work on select picker.

Patch brings up the "move to next" and "move to previous"
functionality of the EWK <select> popup.
In order to do that, two messages were brought up:

- EwkFrameMsg_RequestSelectCollectionInformation:
as soon as a Select Popup is created, we send a message
to the renderer to collect the information needed to
enable the "move to next" and "move to previous" UI.

That message is caught by the RenderFrameObserverEfl, and
required information is got. Then another message send back
to the Browser (EwkFrameMsg_RequestSelectCollectionInformationACK),
and the UI is updated accordingly.

Note: the implementation of RFOEfl::OnRequestSelectCollectionInformation
as well as most of the related code was implemented in s-chromium
for M40 branch. Patch make it all available in chromium-efl side.

- EwkFrameMsg_MoveToNextOrPreviousSelectElement:
When "<" or ">" buttons are pressed, we send a message
to the renderer to perform the focus switch. That message
is again caught by the RenderFrameObserverEfl, and the
associated blink::WebView methods are called.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13212
Reviewed by: SeungSeop Park, arno renevier

Change-Id: I402092d836e54b1e7c507d9a2ace65906e63f5f2
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years ago[EWK_REFACTOR] Remove unused RenderWidgetHostViewEfl::ResizeCompositingSurface
hh4813.kim [Wed, 10 Jun 2015 08:04:32 +0000 (17:04 +0900)]
[EWK_REFACTOR] Remove unused RenderWidgetHostViewEfl::ResizeCompositingSurface

RenderWidgetHostView::ResizeCompositingSurface has been removed in
chromium by https://codereview.chromium.org/256713002 So we don't need
to implement it anymore.
Original patch: http://165.213.202.130/gerrit/#/c/76169

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12028
Reviewed by: Piotr Grad, SeungSeop Park

Change-Id: Iaafcb313a266c5e29871631d6e0115ec1dd635b7
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoImplement Delegate renderer using frame buffer object on Tizen.
venu.musham [Fri, 24 Apr 2015 14:08:28 +0000 (19:38 +0530)]
Implement Delegate renderer using frame buffer object on Tizen.

In Tizen, only web contents parts of the browser window in an OpenGL surface
drawn by chromium. The rest of the window is drawn using evas reference
browser/mini browser. This is because we don't have a way to draw on native
surface. evas direct rendering does not support calling native surface swap
from different thread.

To solve this problem, we composite to intermediate texture and use this
texture for rendering on evas native surface.

1. When renderer has new frame that it wants drawn, it sends a
   ViewHostMsg_SwapCompositorFrame to browser process.

2. Browser process takes frame from renderer and passes to RWHV.

3. Frame is passed to DelegatedFrameHost (DFH), which acts as interface
   between ui::Compositor and the renderer.

4. DFH tells the ui::Compositor to draw a new frame with updated
   contents.

5. ui::Compositor requests for commit operation(to draw frame).

6. On receiving commit, ui::Compositor renders frame onto frame buffer
   object created by MailboxOutputSurfaceEfl::EnsureBackBuffer().

7. When done drawing the frame, ui::Compositor's
   cc::LayerTreeHostImpl's cc:OutPutSurface will issue glSwapBuffers
   to GPU process.
   cc::Compositor will be blocked until cc::OutPutSurface client calls
   its OnSwapBuffersComplete().

8. The command buffer will decode and call
   MailboxOutputSurfaceEfl::SwapBuffers(), this will send texture_id
   from FBO to RWHV and calls evas_object_image_pixels_dirty_set() to
   invalidate evas surface and draw updated texture by calling
   glBindTexture(texture_id).

9. After this, cc::Compositor is unblocked, allowing the
   ui::Compositor to produce more frames. DFH::SendDelegatedFrameAck
   is called, which sends ViewHostMsg_SwapCompositorAck to the renderer
   process to produce another frame.
Reviewed by: DaeHyun Ko, KwangHyuk Kim, Prashant Nevase

Change-Id: I539f8aa0333a5a0dde6c921085af11ca7d9c1dc4
Signed-off-by: venu.musham <venu.musham@samsung.com>
6 years ago[hotfix][tizen v3.0] Properly hiding IME virtual keyboard
Youngsoo Choi [Wed, 10 Jun 2015 10:06:07 +0000 (19:06 +0900)]
[hotfix][tizen v3.0] Properly hiding IME virtual keyboard

[issue]
The virtual keyboard does not disappear.

[cuase]
Even if virtual keyboard is shown,
the API 'ecore_imf_context_input_panel_state_get()'
returns '1' which means that the keyboard is not shown.
It makes the 'HidePanel()' unreachable.

[resolve]
This patch removes the condition of 'IsIMFVisible()'.
It may cause hiding virtual keyboard even when the keyboard
is not shown, but it does not harm to functionality,
showing or hiding the virtual keyboard.

Once the platform issue is fixed, this patch needs to be reverted.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13262
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I037d49183dc31cfe89939abd1de1f72480ece7bd
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoSelect popups do not close when BACK is pressed
Antonio Gomes [Tue, 9 Jun 2015 20:24:45 +0000 (16:24 -0400)]
Select popups do not close when BACK is pressed

Patch removes a bringup guard, and replaces the existing
method (RenderFrameHost::DidClosePopupMenu) by an proper one
(RenderFrameHost::DidCancelPopupMenu).

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=12720
Reviewed by: SeungSeop Park, arno renevier

Change-Id: I3b92211873e87d97fc32eb42b9190485432c43f4
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoUpdated the build script using ./build/build_xxx.sh
Youngcheol Kang [Wed, 3 Jun 2015 05:49:25 +0000 (14:49 +0900)]
Updated the build script using ./build/build_xxx.sh

1. Switched to Mobile 3.0 as the default target for build_mobile.sh

This patch changes the default target to 3.0 from 2.4.
Also we uses the arm64-wayland profile which is main target of 3.0
Mobile. This way we won't have to specify -P tzmb_v3.0_arm64-wayland
-A aarch64 flag when using the script.

2. Changed the build_emulator.sh script for mobile and tv target

This patch add the target option into the build_emulator.sh script.
We can build the mobile and tv emulator using the below build command.

$ ./tizen_src/build/build_emulator.sh [mobile/tv]

3. Added the mirror server to improve the download speed in HQ

This patch added the mirror server which provided by platform team to
gbs.conf in order to improve the download speed in HQ.

$ ./tizen_src/build/build_mobile.sh -P tzmb_v3.0_arm64-wayland_mirror
$ ./tizen_src/build/build_tv.sh -P tztv_v3.0_arm-wayland_mirror

4. Disabled the rpmlint for arm64-wayland profile of Tizen 3.0 Mobile

To improve the build time for developers, this patch add the
arm64-wayland profile. Also the tztv_v3.0_arm-x11.conf and
tzmb_v3.0_arm-x11.conf were removed because platform team doesn't
support x11 profile.

5. Updated the README.md

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13158
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I1153a50efe3aaeb0c48bd5962c4267df32f0aa64
Signed-off-by: Youngcheol Kang <ychul.kang@samsung.com>
6 years ago[EWK_REFACTOR] Remove unused EWebView::GetSnapShotForRect
yh106.jung [Wed, 10 Jun 2015 05:30:00 +0000 (14:30 +0900)]
[EWK_REFACTOR] Remove unused EWebView::GetSnapShotForRect

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12028
Reviewed by: Antonio Gomes, Hyunhak Kim, SeungSeop Park

Change-Id: I42dd28f5946a037d88c3b4110d28c5212354beaa
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years ago[WebRTC] Enable Video capture CAPI for TV
sonal.g1@samsung.com [Wed, 10 Jun 2015 07:57:27 +0000 (13:27 +0530)]
[WebRTC] Enable Video capture CAPI for TV

Video capture CAPI files should be enabled for TV as well. Hence, making
required changes in gyp file.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13236
Reviewed by: SeungSeop Park, Venugopal S M

Change-Id: I0c12091a255bc0d8fd51fc86d5d61132ae28c4bb
Signed-off-by: sonal.g1@samsung.com <sonal.g1@samsung.com>
6 years agoClean up DEPS and python scripts
Taeho Kim [Fri, 29 May 2015 01:48:11 +0000 (10:48 +0900)]
Clean up DEPS and python scripts

Modify DEPS files, rename python script suffix from xwalk to efl
to resolve the naming confusion and split xwalk/efl dependency
In addition to that add a DEPS.efl to have separate gclient
configuration file(.gclient-efl)

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=13013
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I7e59424d07d966b50dd2658c8e8f0b4c04a5fe11
Signed-off-by: Taeho Kim <th81.kim@samsung.com>
6 years agoRemove unused WebContentsDelegateEfl::UpdateFormNavigation
Antonio Gomes [Tue, 9 Jun 2015 20:37:10 +0000 (16:37 -0400)]
Remove unused WebContentsDelegateEfl::UpdateFormNavigation

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13212
Reviewed by: SeungSeop Park, arno renevier

Change-Id: I70953ac9f47a20647104feecc6eb1a50f05c62c7
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! [M40 Merge][MM] GStreamer 1.2 Multimedia Support
Arnaud Renevier [Fri, 5 Jun 2015 22:08:30 +0000 (15:08 -0700)]
fixup! [M40 Merge][MM] GStreamer 1.2 Multimedia Support

Add dependency on capi-system-device in external_media_deps. If that
dependency is not present, we get link errors when trying to build xwalk
on tizen: undefined reference to 'device_power_wakeup' (and also
device_power_request_lock and device_power_release_lock)

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13152
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I923116de3b3152a4779eb9d8b38a1738f9381ae6
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoCleanup apply_patches.sh calls
Arnaud Renevier [Wed, 3 Jun 2015 23:19:02 +0000 (16:19 -0700)]
Cleanup apply_patches.sh calls

apply_patches.sh doesn't get args. patch dir is hard-coded inside as
patchdir=${TOPDIR}/tizen_src/build/patches

This patch now calls apply_patches.sh without any argument.

Also, it deletes the bash applyPatch function which is unused.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13129
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: Icdcab46796f1351251bf9a237002e5bdfffafc32
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[Crosswalk] Do not create symlinks for package-manager backend
yh106.jung [Mon, 8 Jun 2015 07:29:26 +0000 (16:29 +0900)]
[Crosswalk] Do not create symlinks for package-manager backend

WRT team has requested to remove symlinks for package-manager backend.
After app-installer package is installed on Tizen 3.0,
xwalk does not need to manage anymore package-manager backend.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13152
Reviewed by: Antonio Gomes, Hyunhak Kim, Piotr Grad

Change-Id: Iaeae123d6cb5ffbba42266ca9596de7e58c93990
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years ago[EWK_REFACTOR] bringup GetSnapshotAsync and GetSnapShotForRect
Karol Furmaniak [Thu, 7 May 2015 07:35:18 +0000 (09:35 +0200)]
[EWK_REFACTOR] bringup GetSnapshotAsync and GetSnapShotForRect

EWK_REFACTOR guards are removed, GetSnapshotAsync implementation
is moved from eweb_view to RenderWidgetHostViewEfl.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=12687
Reviewed by: Antonio Gomes, Hyunhak Kim, Piotr Grad, Piotr Tworek

Change-Id: Iabe107094dc00a7846c5433e4a86eecc0d0ea09e
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
6 years agoBringup Text selection.
Karol Furmaniak [Wed, 22 Apr 2015 13:56:26 +0000 (15:56 +0200)]
Bringup Text selection.

Text selection was refactored.
Selection handles and controller was moved to chromium_impl.

Whole change contains 3 patches(chromium-efl, s-blink, s-chromium)

Together with: Id00120d7f4cec49d16a110baa74a58e86d95cd37

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12549
Reviewed by: Antonio Gomes, Hyunhak Kim, Piotr Grad, SeungSeop Park

Change-Id: Id62ff99f1aff9deeb72bc989a139ca9214ae092a
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoAllow building xwalk with --xwalk on targets
Arnaud Renevier [Fri, 5 Jun 2015 17:32:19 +0000 (10:32 -0700)]
Allow building xwalk with --xwalk on targets

Add support for --xwalk command line switch when building with gbs

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=11619
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I2b20105267e0d7a24d2cfcfedb5d28c34a7fd20e
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoUpdate spec file for latest xwalk version
Arnaud Renevier [Fri, 5 Jun 2015 22:18:20 +0000 (15:18 -0700)]
Update spec file for latest xwalk version

Some files are no more parts of xwalk source: xwalk.service.in, xwalk.in
and org.crosswalkproject.Runtime1.service

Also, xwalk_launcher is not a gyp target anymore.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13152
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I4fa0d00369b62a5c1dc9d334a8dbc1dbc4d0da02
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[M40 Merge] Disable double tap zoom on fullscreen view
kriti.s [Wed, 3 Jun 2015 13:22:06 +0000 (18:52 +0530)]
[M40 Merge] Disable double tap zoom on fullscreen view

Checks if fullscreen is active on double tap gesture.
If it is, don't send event to renderer.

m40 patch: http://165.213.202.130/gerrit/#/c/76539/
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=12361
Reviewed by: SeungSeop Park, Siba Samal, mohan reddy, venu musham

Change-Id: I8b03a1ec293754515e69dee66a5d3ea2853a12a8
Signed-off-by: kriti.s <kriti.s@samsung.com>
6 years agoChange default color of TapHighlight to orange for Tizen.
Karol Furmaniak [Wed, 3 Jun 2015 08:10:53 +0000 (10:10 +0200)]
Change default color of TapHighlight to orange for Tizen.

[Issue] Default color was light grey.
[Requirment] Colors should be orange, by WCS TC 146.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12725
Reviewed by: Antonio Gomes, Piotr Grad

Change-Id: I73e745c4681baef88f9444c42b98e7539031a45f
Signed-off-by: Karol Furmaniak <k.furmaniak@samsung.com>
6 years agoRemove one pushd/popd usage
Arnaud Renevier [Thu, 4 Jun 2015 16:01:13 +0000 (09:01 -0700)]
Remove one pushd/popd usage

Use readlink instead of pwd. This avoids us a directory change.
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I6dbcae001dde0f1b97b73d944211a8c85a18fb73
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoBuild with chromium libusb
Arnaud Renevier [Wed, 3 Jun 2015 23:27:00 +0000 (16:27 -0700)]
Build with chromium libusb

Crosswalk on tizen pulls some dependencies which eventually use libsub
methods appeared in libusb 1.0.16. But tizen3.0 has libusb 1.0.9.

So, we temporary use chromium libusb. Once bug #13185 is fixed, we can
revert this patch.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13152
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: Id8c6359677e185563a9c678348ba573d36fc990a
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[EWK_REFACTOR] Get orientation from native window, not ewebview
yh106.jung [Wed, 3 Jun 2015 07:29:41 +0000 (16:29 +0900)]
[EWK_REFACTOR] Get orientation from native window, not ewebview

Get orientation from native window in order to remove dependency on ewebview.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12028
Reviewed by: Antonio Gomes, Hyunhak Kim, SeungSeop Park, arno renevier

Change-Id: Ifa04a26e562dfd563d59be9a1e9e1478bb5832c0
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years ago[M40 Merge][MM][WebRTC] Merge patches from M40.
s.kamath [Tue, 26 May 2015 13:25:41 +0000 (18:55 +0530)]
[M40 Merge][MM][WebRTC] Merge patches from M40.

[WebRTC][M0] Fix front camera rotation.
http://165.213.202.130/gerrit/#/c/76321/

[WebRTC] Fix noise on captured video frame.
http://165.213.202.130/gerrit/#/c/75655/

[MM][WebRTC] Make front camera as default one.
http://165.213.202.130/gerrit/#/c/77498/

[MM][WebRTC] Adding SMACK rules to mini_browser.
http://165.213.202.130/gerrit/#/c/76094/

[MM][WebRTC] Fix Evas Popup crash for Media request.
http://165.213.202.130/gerrit/#/c/75898/

fixup! [WebRTC][M0] Fix front camera rotation.
http://165.213.202.130/gerrit/#/c/77130/

Enable video capture port on M0
http://165.213.202.130/gerrit/#/c/74561

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13054

Together with: I6b6e518cbc88c9613804cd3f12e2ecd5d1d637e0
Reviewed by: Antonio Gomes, SeungSeop Park, Venugopal S M

Change-Id: Id0d04324a58ec53c48ea7a59945ff1f0429a2352
Signed-off-by: s.kamath <s.kamath@samsung.com>
6 years agoReplace system_info_internal.h with system_info.h
Youngcheol Kang [Tue, 2 Jun 2015 01:32:44 +0000 (10:32 +0900)]
Replace system_info_internal.h with system_info.h

In Tizen 2.4/3.0, system_info_internal.h is replaced by system_info.h.
In the meanwhile, an API changed as well:
- system_info_get_value_string => system_info_get_platform_string

This patch adapts the code according to the change.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13129
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I018815e61ff801393ba85f8a52bece2fefd5e6b7
Signed-off-by: Youngcheol Kang <ychul.kang@samsung.com>
6 years agocall PathEfl::Register from efl::Initialize
Arnaud Renevier [Tue, 2 Jun 2015 17:42:19 +0000 (10:42 -0700)]
call PathEfl::Register from efl::Initialize

Currently, PathEfl::Register is called from Shell::PlatformInitialize

But other non applications, like crosswalk will also need to Register
PathEfl. So with this patch, we call it from efl::Initialize

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13152
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I50dd66ce4c8654168cca63ce63b3ed0e24717666
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agofixup! Implement Chromium Theme for Tizen.
Antonio Gomes [Tue, 2 Jun 2015 16:09:20 +0000 (12:09 -0400)]
fixup! Implement Chromium Theme for Tizen.

Since https://codereview.chromium.org/738113003,
LayoutTheme::theme method is not defined in LayoutThemeChromiumDefault
anymore. Instead, each subclass (Win,Android,Mac and Tizen)
that needs a implementation of ::theme adds its own.

Following that, Efl/Tizen port can now have its own
implementation of LayoutTheme::theme without the
RenderThemeChromiumDefault_override hack.

Patch removes the hack, accordingly.
Reviewed by: Balazs Kelemen, SeungSeop Park, arno renevier

Change-Id: I5cdaa53abe0d39d8afd701361337dbcda29ec936
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! [M40 Merge][Tizen 3.0][EWK API] Change argument of ewk_send_widget_info
MichaĊ‚ PakuĊ‚a vel Rutka [Fri, 29 May 2015 14:02:30 +0000 (16:02 +0200)]
fixup! [M40 Merge][Tizen 3.0][EWK API] Change argument of ewk_send_widget_info

Update ewk unittest to match changed API.
Reviewed by: Antonio Gomes, Hyunhak Kim

Change-Id: I27911a5e99a5b3e0b3156a20ca55212e61f6175a
Signed-off-by: MichaĊ‚ PakuĊ‚a vel Rutka <m.pakula@samsung.com>
6 years agoUpdate S_TRUNK_OWNERS of chromium-efl
Jongsoo Yoon [Tue, 2 Jun 2015 04:57:52 +0000 (13:57 +0900)]
Update S_TRUNK_OWNERS of chromium-efl

Current S_TRUNK_OWNERS is for dev/m42 branch.
Becuase beta/m42 just branch off of dev/m42.
It should be replaced from beta/m40 S_TRUNK_OWNERS.

  - S_TRUNK_OWNER is replace from beta/m40_2214_t
  - Inactive reviewers are removed.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13126
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: Id7be400c3122762276a507b5169f2692bc990ba1
Signed-off-by: Jongsoo Yoon <join.yoon@samsung.com>
6 years ago[MM] Video rotation issue in full screen mode
Umesh Kumar Patel [Fri, 22 May 2015 12:53:58 +0000 (18:23 +0530)]
[MM] Video rotation issue in full screen mode

On Video rotation on fullscreen mode exiting to normal mode,
because of fullscreen mode information is not passed to
RenderWidgetHost, made changes to pass fullscreen information.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13052
Reviewed by: SeungSeop Park, Siba Samal, Venugopal S M

Change-Id: Id6cdf91d757d6855e3276730d2348cee94113504
Signed-off-by: jitu.patel <jitu.patel@samsung.com>
Signed-off-by: Umesh Kumar Patel <umeshk.patel@samsung.com>
6 years ago[Ozone Wayland] Fix for evasgl issue/crash in efl_webview_app/mini_browser on Note4
Chandan Padhi [Fri, 29 May 2015 13:12:41 +0000 (18:42 +0530)]
[Ozone Wayland] Fix for evasgl issue/crash in efl_webview_app/mini_browser on Note4

Below evasl gl errors are seen when we run efl_webview_app/mini_browser on Note4:
ERR<5058>:EvasGL modules/evas/engines/gl_common/evas_gl_api_ext.c:327 evgl_api_ext_init()
glGetString returned NULL! Something is very wrong...
ERR<5058>:EvasGL modules/evas/engines/gl_common/evas_gl_core.c:1437
evgl_engine_init() Extensions failed to load. This shouldn't happen, Evas GL load fails.
ERR<5058>:evas_main lib/evas/canvas/evas_gl.c:367 evas_gl_context_version_create() Failed
creating a context from the engine.
[0518/235828:FATAL:gl_shared_context_efl.cc(33)] GLSharedContextEflPrivate(): Create evas
gl context Fail

However, these errors are not seen for ubrowser.

On Note4, tt seems like all gl/egl initialization must be completed
before the evas_object is created and its evas canvas is used to
created an Evas GL object. Platform team may explain more on this.

In chromium-efl, this initialization is done in the ewk_context_default_get() call.
In case of efl_webview_app/mini_browser, ewk_context_default_get() call is made after the
main window gets created whereas its called before main window creation for ubrowser.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12492
Reviewed by: DaeHyun Ko, Siba Samal

Change-Id: Iceec7d29c7057cd00d62453c2fd753b876c096cd
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
6 years ago[Crosswalk] Reenable hook to generate UPSTREAM.blink
Antonio Gomes [Mon, 1 Jun 2015 22:20:21 +0000 (18:20 -0400)]
[Crosswalk] Reenable hook to generate UPSTREAM.blink

Patch fixes the following error:

ninja: Entering directory `/<path>/src/out.x64/Release'
ninja: error: '../../xwalk/build/UPSTREAM.blink', needed by
'gen/blink_upstream_version.h', missing and no known rule to make it
Error: File:tizen_src/build/build_desktop.sh Line:155
Reviewed by: Hyunhak Kim, SeungSeop Park, arno renevier

Change-Id: Ic687023271ca73d015fe460556c729513f05bc84
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! ozone integration
Antonio Gomes [Fri, 29 May 2015 22:19:26 +0000 (18:19 -0400)]
fixup! ozone integration

Since http://165.213.202.130/gerrit/#/c/80317/ we
hit the follow ASSERT upon launch (desktop debug build
of content shell).

[0529/143728:FATAL:at_exit.cc(53)] Check failed: false. Tried to RegisterCallback without an AtExitManager
 #0 0x000000792167 base::debug::StackTrace::StackTrace()
 #1 0x0000006cca71 logging::LogMessage::~LogMessage()
 #2 0x0000006b07e5 base::AtExitManager::RegisterTask()
 #3 0x000004ad9078 ui::DeviceDataManager::DeviceDataManager()
 #4 0x000004ad92b9 ui::DeviceDataManager::CreateInstance()
 #5 0x0000013b78a3 ui::OzonePlatform::InitializeForUI()
 #6 0x000000505f70 efl::Initialize()
 #7 0x00000041fb1e main
 #8 0x7ffff302aec5 __libc_start_main
 #9 0x00000041fa34 <unknown>

AtExitManager has to be init'ed before frame #6.

Similarly to [1] and [2], add a AtExitManager variable
declared as a local variable in 'main'.

[1] https://code.google.com/p/chromium/codesearch#chromium/src/ui/ozone/demo/ozone_demo.cc&ct=rc&cd=51&q=atexitmanager&sq=package:chromium&l=314&dr=C
[2] https://code.google.com/p/chromium/codesearch#chromium/src/mandoline/app/desktop/main.cc&q=atexitmanager&sq=package:chromium&l=13&dr=C

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=8054
Reviewed by: Balazs Kelemen, arno renevier

Change-Id: I8045ce570d6839da068c5e5aa2b704b1c736af54
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! ozone integration
Antonio Gomes [Fri, 29 May 2015 17:00:08 +0000 (13:00 -0400)]
fixup! ozone integration

Since http://165.213.202.130/gerrit/#/c/80317/ we
hit the follow ASSERT upon launch (desktop debug build
of ubrowser --mobile).

[0529/105606:FATAL:at_exit.cc(53)] Check failed: false. Tried to RegisterCallback without an AtExitManager
 #0 0x7fee4c9d7037 base::debug::StackTrace::StackTrace()
 #1 0x7fee4ca15373 logging::LogMessage::~LogMessage()
 #2 0x7fee4c9c9ff1 base::AtExitManager::RegisterTask()
 #3 0x7fee4dcf0f56 ui::DeviceDataManager::DeviceDataManager()
 #4 0x7fee4dcf1197 ui::DeviceDataManager::CreateInstance()
 #5 0x7fee4dd09ca5 ui::OzonePlatform::InitializeForUI()
 #6 0x7fee4ba14c64 EwkGlobalData::GetInstance()
 #7 0x7fee4b9d4d83 EWebContext::EWebContext()
 #8 0x7fee4bab0d29 Ewk_Context::Ewk_Context()
 #9 0x7fee4bab0b6b Ewk_Context::Create()
 #10 0x7fee4bab09b2 Ewk_Context::DefaultContext()
 #11 0x7fee4baba2f5 ewk_context_default_get
 #12 0x000000407c00 Browser::Browser()
 #13 0x00000040c167 app_create()
 #14 0x00000040c43e main
 #15 0x7fee49591ec5 __libc_start_main

AtExitManager has to be init'ed before frame #5,
or AtExitManager could be declared as a local variable in 'main'.

In our code, the initialization happens in the lines right below
the call to OzonePlatform::InitializeForUI.
See content/app/content_main_runner.cc@Initialize.

Patch flips those lines in order to fix the ASSERT.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=8054
Reviewed by: Balazs Kelemen, arno renevier

Change-Id: Ib4705a858f10561d86f5779e99a661fe37edf4c8
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoRevert "[SPIN][Temporary] Removed the error codes which happened in libvpx"
Youngsoo Choi [Fri, 29 May 2015 14:08:28 +0000 (23:08 +0900)]
Revert "[SPIN][Temporary] Removed the error codes which happened in libvpx"

This reverts commit d182c7b5159b9dd5ea79a1e92db8695e0654de26.

With the original patch, following linking error is coming from emulator build
because the original one prevents building the implementation of the function
'vp9_fdct8x8_quant_ssse3' by disabling target 'libvpx_intrinsics_ssse3'
under the architecture is ia32.

>> [ XXs] error: undefined reference to 'vp9_fdct8x8_quant_ssse3'

This patch enables chromium-efl to be built on tizen v3.0 emulator(ia32).

Note that currently it is not able to build chromium-efl on tizen v2.4 emulator
due to platform issue, so it needs to be verified once the issue is fixed.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13116
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I471cc65f02f0554c20c2c746b8fdf4191fcf13ca
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoInitialize ecore wayland for other embedders
yh106.jung [Mon, 1 Jun 2015 04:20:26 +0000 (13:20 +0900)]
Initialize ecore wayland for other embedders

This patch initializes ecore wayland for other embedders like content
shell and crosswalk.

bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12492
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I8ff28a1d2b6a878884873bd721b1df140b257545
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agoFixup! [Tizen 3.0][Mobile] Use the prebuilt gold instead of the system gold
Youngsoo Choi [Fri, 29 May 2015 11:40:33 +0000 (20:40 +0900)]
Fixup! [Tizen 3.0][Mobile] Use the prebuilt gold instead of the system gold

Original patch prevents requiring binutils-gold from tizen v3.0 emulator and tv,
and it causes following build error.

>> [  XXXs] collect2: fatal error: cannot find 'ld'

Original patch: http://165.213.202.130/gerrit/#/c/80546/

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=13107
Reviewed by: Antonio Gomes, SeungSeop Park

Change-Id: I21c6e32572b07cf63302475f72f5a44503ef7781
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>