platform/framework/web/chromium-efl.git
6 years ago[Tizen][M34-Merge] Implement WebContext::ClearCandidateData
zhishun.zhou [Fri, 17 Oct 2014 09:32:09 +0000 (17:32 +0800)]
[Tizen][M34-Merge] Implement WebContext::ClearCandidateData

This patch implement ClearCandidateData, which will be
used by ewk_context_form_candidate_data_clear API.
It depended on auto fill feature(TIZEN_AUTOFILL_SUPPORT).
This is code migration from m34 beta to DEV,
Original patch info: http://suprem.sec.samsung.net/gerrit/#/c/4963/

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7742
Reviewed by:  Antonio Gomes

Change-Id: I73795f52d094c2b6f01d7bf5c579ddd60a589f31
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
6 years agofixup! [Tizen] Switch chromium-efl / mobile development to GCC 4.8
Antonio Gomes [Sun, 26 Oct 2014 11:28:14 +0000 (04:28 -0700)]
fixup! [Tizen] Switch chromium-efl / mobile development to GCC 4.8

Remove experimental c++11 enabling line, now that it is not
explicitly needed.

Also remove a GCC 4.5 specific workaround, also not needed anymore.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5458
Reviewed by:  Laszlo Gombos, Kangil Han

Change-Id: I89e7c320e22631a5c32587666f5480a7aead4d94
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years ago[M34-Merge]Fixed creation of GURL from URL
zhuoyu.qian [Fri, 17 Oct 2014 06:28:50 +0000 (14:28 +0800)]
[M34-Merge]Fixed creation of GURL from URL

M34 commit URL: http://suprem.sec.samsung.net/gerrit/#/c/4649/
When given URL is empty, returned GURL is an empty string "".

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7709
Reviewed by:  Antonio Gomes

Change-Id: Ib0f3f2ff0494c3cd14235623188e1c739fbc2c5a
Signed-off-by: zhuoyu.qian <zhuoyu.qian@samsung.com>
6 years ago[Tizen]Implement ewk_view_main_frame_get
zhishun.zhou [Sat, 25 Oct 2014 10:10:56 +0000 (18:10 +0800)]
[Tizen]Implement ewk_view_main_frame_get

This patch implements ewk_view_main_frame_get.
This is code migration from m34 beta to DEV,
Original patch info:
http://suprem.sec.samsung.net/gerrit/#/c/5160/3

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6006
Reviewed by:  Antonio Gomes, Laszlo Gombos

Change-Id: I9c50c876abee78bbf1729a627e89c66920a9840a
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
6 years agofixup! Enable Tizen build on dev/m39_2171
SeungSeop Park [Fri, 24 Oct 2014 08:24:09 +0000 (17:24 +0900)]
fixup! Enable Tizen build on dev/m39_2171

Now the chromium version is m39_2171.
Reviewed by:  Antonio Gomes, Kangil Han

Change-Id: I9f1fada89f7f17632a6411af3639b7482447e6ad
Signed-off-by: SeungSeop Park <sns.park@samsung.com>
6 years ago[Tizen] Implement EWK API for window features
zhishun.zhou [Sat, 18 Oct 2014 09:46:54 +0000 (17:46 +0800)]
[Tizen] Implement EWK API for window features

This patch implements EWK API for window features.
This is code migration from m34 beta to DEV,
Origin patch patch info:
 http://suprem.sec.samsung.net/gerrit/#/c/6721
 and http://suprem.sec.samsung.net/gerrit/#/c/6726

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7782
Reviewed by:  Antonio Gomes

Change-Id: I1b9cdcc0d4435073b32a547b95e81256c65d335f
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
6 years agoReenable (uncomment) cleanup for unittests
Arnaud Renevier [Fri, 24 Oct 2014 01:53:38 +0000 (18:53 -0700)]
Reenable (uncomment) cleanup for unittests

Uncomment cleanup code in utc_blink_ewk_base::EwkDeinit. Before it was
trigerring a crash but this was fixed by commit 19e1f0214adaea576
(http://165.213.202.130:8080/#/c/70986/).

http://107.108.218.239/bugzilla/show_bug.cgi?id=6980
Reviewed by:  Balazs Kelemen, Antonio Gomes

Change-Id: I2a88eb88ffc6f1fdd57c25cddda77cab52051e63
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove LOG(INFO) debugging
Arnaud Renevier [Wed, 22 Oct 2014 00:02:11 +0000 (17:02 -0700)]
Remove LOG(INFO) debugging

The messages currently printed with LOG(INFO) are not really useful to
have in the standard output.

This patch also removes StartMemorySampler and StopMemorySampler apis

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7938
Reviewed by:  Viatcheslav Ostapenko

Change-Id: I22381f2d07f8289add85f26401ea6bc5e4fd226b
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[Tizen] Bringup InputPicker
zhaoze [Thu, 18 Sep 2014 15:29:27 +0000 (11:29 -0400)]
[Tizen] Bringup InputPicker

Currently in Tizen, InputPicker is not enabled, this patch
will bring it back.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4834
Reviewed by:  Antonio Gomes

Change-Id: Iaf18becf22090ee5254040d49fec7fbbaad0db6d
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years ago[Tizen] Enable use_libjpeg_turbo
zhaoze [Wed, 22 Oct 2014 22:02:02 +0000 (18:02 -0400)]
[Tizen] Enable use_libjpeg_turbo

Currently we disable use_libjpeg_turbo and use the use_system_libjpeg.
Using libjpeg_turbo is an important optimization for chromium.

From our image_decode_bench, we got the following result:

                TotalRuntime     AverageRuntime
enbale turbo    1.758999(s)       0.001759(s)
disbale turbo   3.535364(s)       0.003535(s)

Image source: http://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg

The result shows it's two times faster when decodes
the jpeg image use the libjpeg_turbo.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5197
Reviewed by:  Laszlo Gombos, Antonio Gomes

Change-Id: Ibbd76d11cbc44b31fa80f60a35423623936cd2e4
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years ago[M34-MERGE] Fixed calling WebContentsFromFrameID outside UI thread
zhuoyu.qian [Fri, 17 Oct 2014 05:00:56 +0000 (13:00 +0800)]
[M34-MERGE] Fixed calling WebContentsFromFrameID outside UI thread

Fixed calling web_contents_utils::WebContentsFromFrameID outside UI
thread in LoginDelegateEfl.
Issue manifested by test utc_blink_ewk_auth_challenge_suspend_func on desktop.
change to use the render frame not render view and check the result
when get render frame from given request

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7638

M34 commit IDs: c733fee9ee8d98c7f508ab210b6f42d649a8e9b5 &
4cac0f18419e1396c016e316b540a344ffbf4f16
Reviewed by:  Yi Shen, arno renevier, Laszlo Gombos, Antonio Gomes, Kamil Klimek

Change-Id: I28dcb00cadd731f5ebe819e3a3d4f1dd732aa972
Signed-off-by: zhuoyu.qian <zhuoyu.qian@samsung.com>
6 years agoEnable Tizen build on dev/m39_2171
Arnaud Renevier [Mon, 13 Oct 2014 17:27:27 +0000 (10:27 -0700)]
Enable Tizen build on dev/m39_2171

This patch enables Tizen build on dev/m39_2171

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7040
Reviewed by:  Laszlo Gombos

Change-Id: I934c9bc2db7d93a3579010d7aa02d91e7f1f80bb
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agofixup! Fix WebContentsDelegateEfl because of updates in chromium WebContentsDelegate
Arnaud Renevier [Mon, 20 Oct 2014 03:29:25 +0000 (20:29 -0700)]
fixup! Fix WebContentsDelegateEfl because of updates in chromium WebContentsDelegate

The LoadFinished callback is not called because of a typo in 6de7cadd

This patch fixes it.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7792
Reviewed by:  Antonio Gomes

Change-Id: Id69dd7fe3eecd9601bff05ee4cf31a13e03370c0
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoFixes crash when using virtual keyboard.
Arnaud Renevier [Thu, 16 Oct 2014 23:19:40 +0000 (16:19 -0700)]
Fixes crash when using virtual keyboard.

For whatever reason, when typing a text, once the second character has
been entered, EWebView::UpdateHitTestData is called. It crashes during
the copy of SkBitmap.

One way to prevent the crash is to avoid the copy of the
Hit_Test_Image_Buffer (and therefore the SkBitmap) in _Ewk_Hit_Test ipc
struct. Hit_Test_Image_Buffer is not used by the renderer.

In the long term, we should probably investigate more the underlying
nature of the crash. But for the moment, this patch allows the keyboard
to work without crashing.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5456
Reviewed by:  Antonio Gomes

Change-Id: I9d7061e220a17d067f2a0e2b62c0c05b0af449a1
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoEnhance Tizen device development with faster deployment
Balazs Kelemen [Mon, 6 Oct 2014 18:52:02 +0000 (14:52 -0400)]
Enhance Tizen device development with faster deployment

Add rsync based fast push script and helpers to make deployment easy and fast.
The scripts upload libs and binaries as is (no rpm install) Envsetup script
provided for device.

This workflow has been chosen since it is suitable for both gbs and
cross-compile workflow. It is a developer-only setup, not in any sense
a replacement for rpm.

rpm based workflow can also benefit from rsync (using tizensync.sh directly).

Uploading libchromium-efl.so (stripped, release) with gbs takes ~34sec in my
environment. With this scripts it went down to ~8sec and the difference can
only be bigger when reuploading after build.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6900
Reviewed by:  Viatcheslav Ostapenko, Antonio Gomes

Change-Id: I99c81a1f3b979e73a3d746cf5f4dd56b35380069
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoEwk_Frame renamed to tizen_webview::Frame
qi1988.yang [Tue, 21 Oct 2014 10:31:09 +0000 (18:31 +0800)]
Ewk_Frame renamed to tizen_webview::Frame

Origin patch(M34): http://suprem.sec.samsung.net/gerrit/#/c/5159/

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7901
Reviewed by:  Antonio Gomes, arno renevier, Laszlo Gombos, Yi Shen

Change-Id: I046381097dfb1ebc07408ebc5d37726eba6807c9
Signed-off-by: qi1988.yang <qi1988.yang@samsung.com>
6 years ago[Tizen] Switch chromium-efl / mobile development to GCC 4.8
Antonio Gomes [Tue, 21 Oct 2014 08:31:57 +0000 (17:31 +0900)]
[Tizen] Switch chromium-efl / mobile development to GCC 4.8

Patch allows building and running chromium-efl with GCC 4.8
on our current tizen mobile targets, and plus it makes it
sane to rebase against chromium.org, and its wave of C++11 features.

---Build---
Our latest mobile platform is based on Tizen 2.3 profile,
where libc 2.13 and as GCC 4.6 compatible binaries are
available. Logically, our development toolchain also provides
the same versions of such binaries by default.
In order to build things with a newer version of both libc and
GCC, a custom "supplement" repository [1] was introduced. GBS then
pulls in the appropriated versions of the packages.

[1] http://10.251.52.177/tizenrepo/eur-open/supplement_gcc48
PS: Thanks SeungSeop Park!

---Run---
Figuring out how to run a GCC 4.8-derived chromium-efl build
on our mobile target was particularly tricky.

The solution found was making use of custom libc installation
on target, allowing us to have multiple libc versions available.
While building chromium-efl, at link step, both "rpath" and
"dynamic-linker" linker options were set to this custom installation
directory, expanding our runtime search as per our needs.
This affects chromium-efl.so and chromium-ewk.so, as well as
efl_webprocess, mini_browser and efl_webview_app.

There were also stdc++ incompatibilities at runtime. This was
solved by making use of 'static-libstdc++' and 'static-libgcc'
linker options.

---Deployment---
Patch also adds a convenience-script that deploys the new libc
binaries at pre-defined location (/opt/usr/eglibc-2.18/lib) on
target. One just needs to execute it as below (to be done once,
upon device flash):

$ ./build/deploy_libc_to_target.sh

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5458

Reviewed by: SeungSeop Partk, Viatcheslav Ostapenko, Balazs Kelemen, Laszlo Gombos, Yi Shen, Arnaud Renevier.

Change-Id: Ibed11beba50f205b3d193b32e220a7ae165ca75c
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoAdd missing callback APIs used by com.samsung.browser.
zhuoyu.qian [Tue, 14 Oct 2014 08:59:44 +0000 (16:59 +0800)]
Add missing callback APIs used by com.samsung.browser.

M34 commit ID: aea2fce3b55a003ded94ce9243df52be538ac581
Add missing callback APIs that are used by com.samsung.browser.

+ "overflow,scroll,off"
+ "overflow,scroll,on"
+ "touchmove,handled"
+ "weblogin,checkbox,clicked"
+ "weblogin,checkbox,resume"
+ "weblogin,ready"

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7456
Reviewed by:  Antonio Gomes, arno renevier, Laszlo Gombos

Change-Id: I73217807b00c6e17d1706d3926f2978dd5da969b
Signed-off-by: zhuoyu.qian <zhuoyu.qian@samsung.com>
6 years agoFix WebView::SetUserAgentAppName
zhuoyu.qian [Fri, 17 Oct 2014 08:33:38 +0000 (16:33 +0800)]
Fix WebView::SetUserAgentAppName

WebView::SetUserAgentAppName was calling incorrect API, so fix it.

M34 commit ID: 146cf4767a84c1956c624f00e0b44bbe5282d38f
Issue: http://http://suprem.sec.samsung.net/jira/browse/CBWEBVIEW-893
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7744

Unit test: utc_blink_ewk_view_app_name_user_agent_set_func.cpp
Reviewed by:  Antonio Gomes, Viatcheslav Ostapenko, arno renevier, Yi Shen

Change-Id: I8ddd5bed16991fbcb723bf33492ce0b86cb181f5
Signed-off-by: zhuoyu.qian <zhuoyu.qian@samsung.com>
6 years ago[Tizen] Re-factor WebContents usage by EWK API implementation
zhaoze [Wed, 10 Sep 2014 21:06:07 +0000 (17:06 -0400)]
[Tizen] Re-factor WebContents usage by EWK API implementation

WebContents is the main object of the content API from user
perspective. The object represents a web widget with extra
logic used to manipulate it's state (LoadUrl, go back, stop
loading page, etc). A lot of this logic maps directly to what
EWebView class is supposed to do. It's can be easily said that
EWebView is a wrapper aroud WebContents.
In the current codebase the actual ownership of WebContents is
rather strange. It's not held directly by it's main user, but by
WebContentsDelegateEfl. As a direct result we:
1. Do lot of unecessary web_contents_delegate_->web_contents()
   getter calls.
2. We often pass WebContentsDelegate to objects that only need
   WebContents
3. Have bunch of unnecessary WebContents NULL checks. The
   classes which make them could not even be instantiated if
   WebContents did not exist.
This patch moves the ownership of WebContsnts to EWebView.
It also changes, wherever possible, WebContents pointers to
references.

Original patch: http://165.213.202.130:8080/#/c/69163/3
Original author: Piotr Tworek <p.tworek@samsung.com>
Reviewed by:  Antonio Gomes

Change-Id: I507f270f2fa62ca70a4d24972359c8be5b5c3175
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agofixup! Fixed return status for tv and mobile build scripts.
SeungSeop Park [Wed, 22 Oct 2014 05:52:52 +0000 (14:52 +0900)]
fixup! Fixed return status for tv and mobile build scripts.

Previoulsy the build script build/build_mobile|tv.sh always returned 1.
This is because
- if GBS_RET is 0, [ "$GBS_RET" != "0" ] is evaluated to 1,
  which in turn becomes the return value of the script.
- if GBS_RET is 1, the script exits with the value of GBS_RET.

The solution is to exit with 0 at the end of script.
Reviewed by:  Antonio Gomes, mohan reddy, Kangil Han

Change-Id: I1647dfb3d63ca9b60ac2a7b77421540ef7108175
Signed-off-by: SeungSeop Park <sns.park@samsung.com>
6 years agoFix chromium-efl installation issue on device
Youngsoo Choi [Mon, 20 Oct 2014 08:40:21 +0000 (17:40 +0900)]
Fix chromium-efl installation issue on device

[Issue]
When installing chromium-efl rpm package by using pkgcmd command,
following error is coming.
> __return_cb req_id[1] pkg_type[rpm] pkgid[org.tizen.chromium-ewk]
> key[error] val[11] error message: Manifest File Not Found

[Resolve]
The 'packaging/chromium-efl.spec' includes the line below that
will be executed during package installation.
> install -m 0644 ewk/efl_webview_app/org.tizen.chromium-efl.xml
> "%{buildroot}"%{_datadir}/packages

By the way, the chromium-efl rpm package name is "org.tizen.chromium-efl".
But in the 'org.tizen.chromium-efl.xml', a pakcage name is defined as below.
> package="org.tizen.chromium-ewk"

The installation issue has been caused by miss-matched package name.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7739

Reviewed by: Antonio Gomes, Youngbok Yoon

Change-Id: Id2575e89f8d2ff1e09856928fa52ea40da499855
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoFixed return status for tv and mobile build scripts.
Tomasz Olszak [Thu, 16 Oct 2014 14:07:01 +0000 (16:07 +0200)]
Fixed return status for tv and mobile build scripts.

Buildbot always got exit status == 0.
In case when gbs failed the exit status was overwritted by:
${SCRIPTDIR}/apply_patches.sh -r.

Change-Id: I4cc5f1afd1d5fa67d2d5a18ac7e66f445f7dc5f7
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
6 years agoRemove gl_context_glx_override.cc
Viatcheslav Ostapenko [Tue, 14 Oct 2014 21:00:27 +0000 (17:00 -0400)]
Remove gl_context_glx_override.cc

Not needed after switching of desktop to GLES2.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5599

Change-Id: Idba614df3c96ca5160a5e97280b37afc175f9fc9
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years ago[M39] Fix tv build break
Youngsoo Choi [Wed, 15 Oct 2014 11:28:32 +0000 (20:28 +0900)]
[M39] Fix tv build break

1) The character '\' is missed in 'build/build_tv.sh'.

2) The sensor library-level issue on tizen v2.1 and v2.2.1.

Error log is like below.
>> /usr/include/sensor/sensor.h:76:26: fatal error:
>> sensor_accel.h: No such file or directory

The '#include <sensor_accel.h>' is defined in 'sensor.h' that is
provided by platform rpm repository, and the 'sensor_accel.h' is
located in '/usr/include/sensor/'.

To use '#include <sensor_accel.h>' in 'sensor.h' file,
the path '/usr/include/sensor' needs to be defined in following pc file.
>> ./usr/lib/pkgconfig/capi-system-sensor.pc

However, on tizen v2.1 and v2.2.1,
the header path '/usr/include/sensor' is not included in pc file like below.
>> includedir=/usr/include/system

On the other hand, on tizen v2.3, it is properly included like below.
>> includedir=/usr/include/sensor

Therefore, the header path '/usr/include/sensor' needs to be defined in gyp file
for tizen v2.1 and v2.2.1.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5676

Change-Id: Ie372f8e685eb7c829319b735ef41d4de2824b2e7
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years agoFixes build failures in ewk/unittest
Arnaud Renevier [Wed, 1 Oct 2014 21:21:33 +0000 (14:21 -0700)]
Fixes build failures in ewk/unittest

This patch unimplemented features with #if !defined(EWK_BRINGUP). Since
g_type_init has been deprecated since glib2.36, it also adds a version
check. And lastly, it removes some unneeded .cpp includes.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5477

Change-Id: Iefee2c3868378d644d8e8342e01563c7792fdadd
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoAdded check for ccache if ccache option is used.
Tomasz Olszak [Wed, 20 Aug 2014 02:01:48 +0000 (11:01 +0900)]
Added check for ccache if ccache option is used.

It will provide more developer friendly output in case ccache is not installed.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4975

Change-Id: Ic128135191244c5633607f7c09e4a58cf428b15d
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
6 years agoUse checked-in gbs.conf by default
Tomasz Olszak [Tue, 7 Oct 2014 13:11:32 +0000 (15:11 +0200)]
Use checked-in gbs.conf by default

Also added possibility to pass profile name parameter to build scripts.
Fixed issue with not using build/gbs.conf file by default.
README.md updated with more verbose description introduced in beta/m34 branch.

Change-Id: I60bfccafc16e94bc32a1b4b4aaf4795d754d6525
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
6 years agoWebView::UrlRequestSet is crashy
Balazs Kelemen [Fri, 10 Oct 2014 22:44:38 +0000 (18:44 -0400)]
WebView::UrlRequestSet is crashy

Dereferencing uninitialized pointer is not fun.
This was also fixed in beta but I believe my fix is slightly better.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=7257

Change-Id: Ice150d05227b5092ba1d756cfb68f035123d9932
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoUse GL ES 2 on desktop.
Viatcheslav Ostapenko [Wed, 8 Oct 2014 16:37:40 +0000 (12:37 -0400)]
Use GL ES 2 on desktop.

Switch desktop build to use OpenGL ES 2.
This will make it use common rendering path with phone and a lot of graphics
features would be easier to develop.

Requires install additional ubuntu package and rebuild of dependencies.

To make it work do:

sudo apt-get install libgles2-mesa-dev
rm -rf out.x64/Dependencies/jhbuild.stamp out.x64/Dependencies/Root
./build/build_desktop.sh --debug

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5599

Change-Id: I10b67a7c8f11f6800cffd8ed1454ecc6561fb45a
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoAdded additional python accelerator packages for tv.
Tomasz Olszak [Tue, 19 Aug 2014 07:54:58 +0000 (16:54 +0900)]
Added additional python accelerator packages for tv.

Currently mobile provides some x86-arm accelerator
packages which makes possible to use x86 python
in arm sysroot. Those packages were added to supplement_tv
repository and are used only for tv build in build_tv.sh.
Using them decreases gyp_chromium script run time significantly
(on HQ build server from run time went down from 30 minute
to 1 minute)

Reviewed by: SeungSeop Park, Balazs Kelemen and Antonio Gomes.

Change-Id: If13b19a75a6919d24fc6da2f9cd28a1f970e4575
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
6 years agofixup! fixup! Add Tizen-platform implementation of Web View
zhaoze [Mon, 13 Oct 2014 19:54:13 +0000 (15:54 -0400)]
fixup! fixup! Add Tizen-platform implementation of Web View

Add Semicolon to fix build

Change-Id: I6e3691120f97d3e09905959a2f59c798c62602b9
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years ago[Tizen] Bringup Suspend/Resume JavaScript from m34
zhaoze [Thu, 11 Sep 2014 14:44:38 +0000 (10:44 -0400)]
[Tizen] Bringup Suspend/Resume JavaScript from m34

[Issue#]   CBWEBCORE-301
[Problem]  JavaScript should be executing after switch to background.
[Solution] Scheduled tasks are suspend / resume during switch to
           background.

This is related with: http://165.213.202.130:8080/#/c/69891/

Original Author: Michal Poteralski <m.poteralski@samsung.com>

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6109

Change-Id: I753a20dbdac8bc1604e4f00c3553e9726e331a9e
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
Conflicts:
impl/renderer/render_view_observer_efl.h

6 years agoccache dir moved outside source directory in gbs builds.
Tomasz Olszak [Wed, 3 Sep 2014 11:52:47 +0000 (13:52 +0200)]
ccache dir moved outside source directory in gbs builds.

Previously ccache directory for gbs was placed in
chromium-efl directory. It was reusable because by default all builds
were made with --incremental flag so chromium-efl repo dir
was mounted into gbs build root. Without -incremental flag
it is not possible anymore. However we can use /.ccache directory inside
gbs sysroot for that. It is not removed even when different package is
built or -C flag is passed.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5263

Change-Id: Iab7481f38916f19877eeed0dde96fd11e45fb365
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
6 years agofixup! Add Tizen-platform implementation of Web View
zhaoze [Wed, 8 Oct 2014 21:01:25 +0000 (17:01 -0400)]
fixup! Add Tizen-platform implementation of Web View

Change "if(..)ASSERT();" to CHECK.

Change-Id: If2222a46690fff3b5e9233257b4ec291e9a8f418
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agogbs.conf updated (golf and hawk tv profiles added, mobile repos url updated)
Tomasz Olszak [Thu, 9 Oct 2014 11:43:08 +0000 (13:43 +0200)]
gbs.conf updated (golf and hawk tv profiles added, mobile repos url updated)

Change-Id: I66c69713263e16d4001443da9cd1be7e67a4e018
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
6 years agofixup! Merge New ewk_view_hit_test_request API proposal from M34
Arnaud Renevier [Thu, 9 Oct 2014 00:08:08 +0000 (17:08 -0700)]
fixup! Merge New ewk_view_hit_test_request API proposal from M34

Fixes build error after 1600689c7066

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6388

Change-Id: I9b101712d1d165f8f47c8ebb73087442308cf4e5
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoChange base platform for TV to pre-hawk repo
SeungSeop Park [Mon, 6 Oct 2014 06:52:56 +0000 (15:52 +0900)]
Change base platform for TV to pre-hawk repo

Updated build/gbs.conf to have proper repo urls.

Change-Id: I8eda451c194f3ca9251b2747bc9e1eecb6a39f2a
Signed-off-by: SeungSeop Park <sns.park@samsung.com>
6 years ago[Tizen] Bringup DidChangeContentsSize
zhaoze [Tue, 23 Sep 2014 21:06:00 +0000 (17:06 -0400)]
[Tizen] Bringup DidChangeContentsSize

Notify RenderView Observers when Contents Size Change
This allows EFL WebView to update it's content size.

Original author: SeungSeop Park <sns.park@samsung.com>

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4415

Change-Id: I674fdf43e65094019c596ffd3ebb139b3a4c61c4
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agoMerge New ewk_view_hit_test_request API proposal from M34
zhaoze [Mon, 15 Sep 2014 20:05:08 +0000 (16:05 -0400)]
Merge New ewk_view_hit_test_request API proposal from M34

Issue: CBWEBVIEW-882

This patch is used to bring up ewk_view_hit_test_request from
m34 to the new branch.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6388

Change-Id: Iba04604996b5379bab9f8466b700e3532d5965d9
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agoAdd gl error logging and fix GL shaders fail to compile on Mesa.
Viatcheslav Ostapenko [Thu, 2 Oct 2014 06:49:01 +0000 (02:49 -0400)]
Add gl error logging and fix GL shaders fail to compile on Mesa.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5599

Change-Id: I499bb0ca88a13c00b96efde64f5a06cb4c932352
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agofixup! Build ewk with gyp instead of cmake
Antonio Gomes [Tue, 7 Oct 2014 18:09:09 +0000 (11:09 -0700)]
fixup! Build ewk with gyp instead of cmake

Before [1], we use to build EWK from a separate repo
using CMake and unittests were disabled by default.
Once [1] landed, the EWK build was integrated to the
GYP build, but unittests target continued optional for both
mobile and TV builds. On desktop build though, no
targets were never specified to GYP, so all targets
including the unsopported unittests target, were being
build. This broke the desktop build.

[1] http://165.213.202.130:8080/#/c/70211/

Patch changes the build_desktop.sh script so that
the same targets are build for both desktop, tv and
mobile builds, being 'unittests' target optional.
By doing this, the desktop build is fixed.

Also, it rename build_ewk_test to build_ewk_tests in
packaging/chromium-efl.spec

Change-Id: Ibbe455ed411180f7b93c396512221c6cfdd5547c
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agofixup! Build ewk with gyp instead of cmake
Balazs Kelemen [Tue, 7 Oct 2014 17:23:17 +0000 (13:23 -0400)]
fixup! Build ewk with gyp instead of cmake

Remove left-over from build_mobile.sh.

http://107.108.218.239/bugzilla/show_bug.cgi?id=6096

Change-Id: I34fdf8b9301bff185570cd0e69203100738d3bf3
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoBuild ewk with gyp instead of cmake
Arnaud Renevier [Wed, 1 Oct 2014 21:22:44 +0000 (14:22 -0700)]
Build ewk with gyp instead of cmake

As of now, one executable is created for each unittest. There are about
300 of them. The gyp code to handle that would be cumbersome to write.
Also, in chromium upstream, all unittests of a specific subdirectory
create only one executable. So, we don't build the unittests for now. We
will first need to figure out what to do with them.

Also, modify spec files so that files which were previously in
chromium-ewk rpm are now included in chromium-efl

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6096

Change-Id: I14e47fb42234122ce44a4ad6c169342dea1054d4
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRevert [Tizen][Debug] Assert @gpu_process_host_ui_shim.cc(224)"
Viatcheslav Ostapenko [Fri, 3 Oct 2014 21:10:52 +0000 (17:10 -0400)]
Revert [Tizen][Debug] Assert @gpu_process_host_ui_shim.cc(224)"

This reverts commits da0100530a453b8f2b331a2af4bdd9203314ac36 and
5898ae064fd5cce08bb82add201884356661ed3e .

Not needed anymore.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4963

Change-Id: I0b797754a9f97706657a6ab97286b5cf10e4aa95
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoBuild efl_webview_app and mini_browser with tizen 2.3
Arnaud Renevier [Wed, 1 Oct 2014 17:55:39 +0000 (10:55 -0700)]
Build efl_webview_app and mini_browser with tizen 2.3

This patch modifies app.c and mini_browser.c so that they can build with
tizen2.3. The modifications are related to the api of haptic being
different

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5477

Change-Id: I38e50b4caf8ed0b472f879b5a9f4c2b2b5bab91f
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoEnable Tizen build on dev/m39_2166
Yi Shen [Tue, 30 Sep 2014 01:11:21 +0000 (18:11 -0700)]
Enable Tizen build on dev/m39_2166

This patch enables Tizen build on dev/m39_2166.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6664

Change-Id: Ic86e3c03418b09e50560772090905bef1682a7bb
Signed-off-by: Yi Shen <yi.shen@samsung.com>
6 years ago[Tizen] Bringup DidFirstVisuallyNonEmptyLayout
zhaoze [Tue, 23 Sep 2014 20:49:31 +0000 (16:49 -0400)]
[Tizen] Bringup DidFirstVisuallyNonEmptyLayout

This patch is trying to bring m34 features to the new branch.

Notify RenderView observers when the first visually non empty layout happens.
Renderer sends a routed message to the browser on the first visually non empty
layout.

Original author: SeungSeop Park <sns.park@samsung.com>

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6471

Change-Id: Iff19480f50e13bad2c2b45d35a9b619e7e4fe0b0
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agoRemoving gconf dependency
Youngsoo Choi [Wed, 1 Oct 2014 12:06:03 +0000 (21:06 +0900)]
Removing gconf dependency

The gconf library is for GNOME configuration of GTK.
Chromium on Tizen only supports EFL port.
Moreover, gconf library is no longer supported by tizen gbs repository.
Therefore, the dependency needs to be removed.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5513

Change-Id: I705c1579a236516c55c96cfecf2dd5d9c987320b
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
6 years ago[Tizen][dev] Fix TV build
Antonio Gomes [Tue, 23 Sep 2014 22:51:11 +0000 (18:51 -0400)]
[Tizen][dev] Fix TV build

TV profile builds with "legacy" Tizen 2.2.1
packages.

Patch adapts our build so mobile (now with Tizen 2.3)
and TV profiles able to co-exist.

Additionally, since common trunk switched to m39-based
chromium sourcebase, ld step fails with "memory exhausted"
error (bug 6629) and cpio fails to create dev packages off
of the 2.1Gb libchromium-efl.so (bug 6457).
In order to unblock developers, patch extends the solution
used in debug builds already: set 'no-keep-memory' linker option.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5676

Change-Id: I56108fe50abb7296c0fc27be7bd055fa237c84ca
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years ago[Meta][Tizen][dev] Support 2.3 profile
Antonio Gomes [Mon, 29 Sep 2014 02:15:18 +0000 (11:15 +0900)]
[Meta][Tizen][dev] Support 2.3 profile

ewebkit-ext package is only available on Tizen 2.1
package repositories. Given that 'dev' branch only
supports Tizen 2.3 for mobile builds now, lets remove
this dependency.

Note that 'beta' branch still has guard checks with
"if tizen_profile == 2.1" for including this package;
it conditionally enables TIZEN_CONTENT_DETECTION
feature in Tizen 2.1 builds by make use of 'ewebkit-ext'.
However, TV does not need this feature, and Tizen 2.3
mobile will reimplement this dependency to avoid
depending on WebKit packages.

It is safe to remove.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5477

Change-Id: Ie5fab3856553c406bc2fcce4866072a6d5abb605
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoFixes: ewk_export.h was not defining EAPI
Arnaud Renevier [Tue, 30 Sep 2014 01:57:50 +0000 (18:57 -0700)]
Fixes: ewk_export.h was not defining EAPI

Currently, ewk_export.h does not work properly: it undefines EAPI, but
doesn't redefine it again. This patch fixes the problem by defining EAPI
in the same way as eina and evas do it.

Also, for consistency, all public files who use EAPI now include
ewk_export.h, instead of relying on the definitions of Eina.h and Evas.h

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6096

Change-Id: I4c6bcaaa039c528820a47072adf9e27d0067c657
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoMove gesture handling logic to RWHV exclusively
Balazs Kelemen [Mon, 29 Sep 2014 18:08:22 +0000 (14:08 -0400)]
Move gesture handling logic to RWHV exclusively

Every port does this in RenderWidgetHostView except we.
We do half there and the other half in EWebView. Clean it up.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5593

Change-Id: I4593aa86f04508a3378152c251a4e5ec7e2cc8fc
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoFix gestures with m39
Balazs Kelemen [Thu, 25 Sep 2014 18:51:35 +0000 (14:51 -0400)]
Fix gestures with m39

Chromium doesn't handle or want to see touch-still (i.e. EVAS_TOUCH_POINT_STILL)
events. In debug it leads to a NOTREACHED in aura code, in release it confuses
the gesture handler so it doesn't function correctly. It seems like we can
simply ignore these events.

Note that this doesn't solve the bringup of impl level touch features such as
selection or overscroll effect.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5593

Change-Id: Ia8fe780d2ca507481641ee0ce9feb497783cfc7d
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agofixup! Switch to Tizen 2.3
Yi Shen [Fri, 26 Sep 2014 21:31:38 +0000 (14:31 -0700)]
fixup! Switch to Tizen 2.3

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5477

Change-Id: I88d592522efeaffe91705eaa09d2ca259cb47054
Signed-off-by: Yi Shen <yi.shen@samsung.com>
6 years agoSwitch to Tizen 2.3
Balazs Kelemen [Tue, 23 Sep 2014 22:51:11 +0000 (18:51 -0400)]
Switch to Tizen 2.3

Minimal changes to be able to build with Tizen 2.3. Some features have been
disabled because of API changes. Fixing them is TODO.

The webrtc patch had to be resurrected to fix debug build (partially).

I switched to patching approach instead of copying patched files because
I believe it is more flexible and it shows if the patch is out-of-date more
directly.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5477

Change-Id: I67606fca32e1af62552a084d3f850d556e2b848a
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoMerge branch 'dev/ewk_test_base' into dev/ewk_test
Viatcheslav Ostapenko [Wed, 24 Sep 2014 16:11:00 +0000 (12:11 -0400)]
Merge branch 'dev/ewk_test_base' into dev/ewk_test

Conflicts:
.gitignore

6 years agoSwitch to the branch dev/m39_2150
Viatcheslav Ostapenko [Mon, 22 Sep 2014 18:30:22 +0000 (14:30 -0400)]
Switch to the branch dev/m39_2150

Known issues:
RenderWidgetHostViewEfl::GetLastScrollOffset() always returns (0, 0) because old
way of updating scroll offset was removed and now it is required to use
ui::Compositor to get scroll offset.
Figure out where to move code from EWebView::DispatchPostponedGestureEvent()
because DispatchPostponedGestureEvent() is not exist anymore in chromium.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I34e6bff6405a61200d9148056e8efdbf3d350061
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoRevert "Remove un-needed EWK-BRINGUP"
Viatcheslav Ostapenko [Thu, 18 Sep 2014 21:05:29 +0000 (17:05 -0400)]
Revert "Remove un-needed EWK-BRINGUP"

This reverts commit 401e42370f43633c839853b4ba7492d4ac84860a.

Breaks "mobile" build.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I26c37d36de5cd16ecce122ab87422025f4613cc6
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoRevert "Remove duplicated flag disable"
Viatcheslav Ostapenko [Thu, 18 Sep 2014 20:58:08 +0000 (16:58 -0400)]
Revert "Remove duplicated flag disable"

This reverts commit 38a156fa24a0667b421e7920a0ffdfd45b06aeb4.

Breaks "mobile" build of chromium-efl.
Have to figure out why this setting is not propageted from supplement.gypi on "mobile" build.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5461

Change-Id: Iaf2501129ca32610de400586571998df481ea72e
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoFix touch gesture handling
Balazs Kelemen [Wed, 17 Sep 2014 19:45:39 +0000 (15:45 -0400)]
Fix touch gesture handling

Open source changes in GestureRecognizer and other areas made our previous
logic incorrect. This CL adapts us to m38 by calling the right
GestureRecognizer::ProcessTouchEvent* method according to the actual state
of the event handling process.

Links, textboxes, scroll, pinch zooming now works!

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5593

Change-Id: I5032b49969a5139ef35bbe8749b767f54f63fc5a
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoRemove un-needed EWK-BRINGUP
zhaoze [Mon, 8 Sep 2014 20:21:36 +0000 (16:21 -0400)]
Remove un-needed EWK-BRINGUP

EWK-BRINGUP is a temporary solution of transition from m34 to m38, this
patch is trying to remove it.
Note these functionalities are already implemented, so it's easy to
remove the EWK_BRINGUP and didn't break anything.

Bug:http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I152110a1b95dc1d0b90eea696f4e02891a1b9364
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agoInproper uppercase letter prevented.
zhaoze [Fri, 5 Sep 2014 23:19:08 +0000 (19:19 -0400)]
Inproper uppercase letter prevented.

When upper case letter is prevented, keypress event is not prevented
and inputed key is inserted to input field.

In RenderWidgetHostViewEfl::OnDidInputEventHandled added checking
if there is Shift key handled and setting is_modifier_key_ flag
to true for further handling.

This patch is from m34, http://165.213.202.130:8080/#/c/68822/.

Original author: Karol Furmaniak <k.furmaniak@samsung.com>
Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5218

Change-Id: I966a9db967b83f39ecf5e94ce5f6079f7d436782
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agoRemove duplicated flag disable
zhaoze [Wed, 3 Sep 2014 22:12:27 +0000 (18:12 -0400)]
Remove duplicated flag disable

In the http://165.213.202.130:8080/#/c/68710/ , the use_kerberos flag
has already been disabled. This patch removes the duplication.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5461

Change-Id: Ic81fa9a20fd8ba09e88db3c5570d7cda02a4087e
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agoRemove obsolete memory sampler and backing store code lines
JungJik Lee [Tue, 16 Sep 2014 08:30:51 +0000 (17:30 +0900)]
Remove obsolete memory sampler and backing store code lines

memory sampler and backing store is deprecated.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6134

Change-Id: I6194ab0479b000deaa8b84372f49848e680a41ae
Signed-off-by: JungJik Lee <jungjik.lee@samsung.com>
6 years agofixup! [TIZEN] Port build system from beta/forct/m34_1847
Kangil Han [Wed, 17 Sep 2014 02:59:26 +0000 (11:59 +0900)]
fixup! [TIZEN] Port build system from beta/forct/m34_1847

Unreviewed ewk build fix.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4938

Change-Id: I6fae6406e293479d532bdb0c2591c3d955995d4c
Signed-off-by: Kangil Han <kangil.han@samsung.com>
6 years agofixup! [TIZEN] Port build system from beta/forct/m34_1847
Kangil Han [Tue, 16 Sep 2014 04:54:42 +0000 (13:54 +0900)]
fixup! [TIZEN] Port build system from beta/forct/m34_1847

Unreviewed build fix.
Need to export GYP_GENERATOR_OUTPUT for python script.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4938

Change-Id: I9c1046dc63ec7618c41bc0a441156b4695cd296b
Signed-off-by: Kangil Han <kangil.han@samsung.com>
6 years agofixup! [Tizen][Build] Restore gyp files after build
Balazs Kelemen [Mon, 15 Sep 2014 16:08:23 +0000 (12:08 -0400)]
fixup! [Tizen][Build] Restore gyp files after build

bash error in desktop build, cannot 'return' from global scope.
Use exit instead.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6110

Change-Id: Id1b423f5dc24c675f7cabdeaa9aa524f815c1ea7
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoRestore gyp files after build
Balazs Kelemen [Fri, 12 Sep 2014 21:27:39 +0000 (17:27 -0400)]
Restore gyp files after build

Better if developers don't have to deal with the changes that we made during
build so they can make good commits without too much pain.
This is partially a merge of d06a237f85f382eac8b741f24e8cb1a2e714801d from m34_1847.
I made 2 cleanups:
  - disable error-on-exit (set +e, previously set by set -e) otherwise we don't have
    a chance to restore if the build fails
  - replace_gyp_files.py lately supports undoing the changes, so we don't need to have
    our own script for this task

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6110

Change-Id: I542b0c845c1f297f2e4a192ceb41c14beea1011e
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years ago[Tizen][Build] Disable component build automagically
Balazs Kelemen [Wed, 10 Sep 2014 23:30:34 +0000 (19:30 -0400)]
[Tizen][Build] Disable component build automagically

I regularly run into this. For open source developement the component
build is a great feature so it should be ok to keep it to be on by default.
This change adds a tiny bit of logic to the build system to disable it
automatically as it is not compatible with chromium-efl.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6110

Change-Id: Ifcbbee3d8763f299752584b804108f41bac67b41
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years ago[Tizen][Build] Clean up dependency handling
Balazs Kelemen [Fri, 12 Sep 2014 18:44:53 +0000 (14:44 -0400)]
[Tizen][Build] Clean up dependency handling

Currently the depedency handling is done in a rather obscure way.
We add the dependencies needed by chromium-efl as target_defaults via
chromium-ef.gypi. This means that each and every target will use efl and other
include paths, link flags and the like. Obviously internal chromium modules
do not need this. One practical negative side-effect of this is that we execute
pkg-config thousands of times for a build.

This change refactors this by moving the dependencies to a new gyp file that
use targets that define the dependencies much like system.gyp does it in
chroimium. Now only the top level chromium-efl target will use the dependencies
resulting in simpler and faster build.

Tested with desktop and mobile build.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6110

Change-Id: I4afd4576c8eed022c648be274a50ac3c3b3cd07e
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years ago[Tizen][Build] Move jhbuild handling to build_desktop.sh
Balazs Kelemen [Thu, 11 Sep 2014 20:07:11 +0000 (16:07 -0400)]
[Tizen][Build] Move jhbuild handling to build_desktop.sh

This is desktop specific so better if the desktop specific script handles it.
Also this removed some duplication. Additional goodie is stamp file for jhbuild
to avoid rerunning it once it is already done.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6110

Change-Id: I5adbd8ce265849edb82286c349497db73eea543f
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years ago[Tizen][Build] Allow setting custom number of jobs
Balazs Kelemen [Thu, 11 Sep 2014 20:22:34 +0000 (16:22 -0400)]
[Tizen][Build] Allow setting custom number of jobs

This is a must have for desktop build with icecc setup.

Change-Id: I0c0ba6d3c2d0d488b583ac0391422260792eee39
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoUse correct version number in chromium-efl.spec .
Viatcheslav Ostapenko [Thu, 11 Sep 2014 23:26:06 +0000 (19:26 -0400)]
Use correct version number in chromium-efl.spec .

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: Ie18eb26af4bfb75589c9b385cd8e64195c28d04f
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoRevert "Workaround to disable asserts in content/common/gpu/"
Viatcheslav Ostapenko [Thu, 11 Sep 2014 23:38:14 +0000 (19:38 -0400)]
Revert "Workaround to disable asserts in content/common/gpu/"

This reverts commit 7ec23d97994e46d24a376272f3c2c22eb6d00634.

Not needed anymore with current graphics implementation.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4906

Change-Id: I804461900072c91fed9ba7dc67c81ecc502a97e9
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years ago[Tizen] Replace glib and libevent X11 even sources in chromium with dummy efl event...
Viatcheslav Ostapenko [Thu, 11 Sep 2014 01:15:01 +0000 (21:15 -0400)]
[Tizen] Replace glib and libevent X11 even sources in chromium with dummy efl event source.

X11EventSourceGlib and X11EventSourceLibevent were stealing X11 events from
ecore and evas.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=6074

Change-Id: Id6e19195b6ab202c29d5c7883f4ba1e10fad31bd
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoAdd the initial owners of the top directory
Dongwoo Joshua Im [Fri, 5 Sep 2014 02:05:15 +0000 (11:05 +0900)]
Add the initial owners of the top directory

Add the initial owners of the top directory of the new repository.
This has been announced to all of the owners.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4540

Change-Id: Ib24623e29b3b02ee845a25fc046fed5f43a01fd5
Signed-off-by: Dongwoo Joshua Im <dw.im@samsung.com>
6 years agoEnable impl side painting.
Viatcheslav Ostapenko [Wed, 3 Sep 2014 23:32:31 +0000 (19:32 -0400)]
Enable impl side painting.

Smoke tested on desktop on on Tizen 2.2.1 device. Same change has been
made on beta/M34.

http://107.108.218.239/bugzilla/show_bug.cgi?id=5599

Change-Id: I672a522a5ca8c194e648b5a2e19cda37315349d7
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years ago[Tizen][m38] Fix TV build
Antonio Gomes [Wed, 3 Sep 2014 16:17:17 +0000 (12:17 -0400)]
[Tizen][m38] Fix TV build

Patch excludes print related code from mobile AND TV
(fixing an undefined reference problem) when building
for target.

Patch also fixes the build_tv.sh script which was simply
not right: it was building for mobile.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5676

Change-Id: Ib0de8ee3ef8bf0faf2b91d78b96ed0a21f2ba697
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoRevert "log"
Balazs Kelemen [Thu, 4 Sep 2014 20:28:27 +0000 (16:28 -0400)]
Revert "log"

This reverts commit 9370108b4871e73329adc872465223a7c928525b.
Sorry, another accidental push :(

6 years agoProduce SCRIPTDIR instead of SCRIPT_PATH in common.sh
Viatcheslav Ostapenko [Wed, 3 Sep 2014 18:53:30 +0000 (14:53 -0400)]
Produce SCRIPTDIR instead of SCRIPT_PATH in common.sh

Align it with other scripts.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I4dbfdfc0ebb64b379d41f8a294481b01a114097d
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoRevert "Disable component build automagically"
Balazs Kelemen [Thu, 4 Sep 2014 20:05:53 +0000 (16:05 -0400)]
Revert "Disable component build automagically"

This reverts commit 03a11a8fa7b46a811bb3043abbc53989989b0d6b.
Sorry, I accidentally pushed it without review. Reverting for now.

6 years agoDisable component build automagically
Balazs Kelemen [Thu, 4 Sep 2014 20:01:46 +0000 (16:01 -0400)]
Disable component build automagically

I regularly run into this. For open source developement the component
build is a great feature so it should be ok to keep it to be on by default.
This change adds a tiny bit of logic to the build system to disable it
automatically as it is not compatible with chromium-efl.

Bug: N/A

Change-Id: Ifcbbee3d8763f299752584b804108f41bac67b41
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agoFix for graphics on tizen/desktop
Viatcheslav Ostapenko [Sat, 30 Aug 2014 02:21:34 +0000 (22:21 -0400)]
Fix for graphics on tizen/desktop

1. Temporary implementation using transport texture surface. Should be replaced
with ui::Compositor approach.
2. Has minimal differences in render path between desktop and tizen.
3. Has no changes in chromium code.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5599

Change-Id: I68f91ca302be77364ccb394bbf9523d3967e4910
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agolog
Balazs Kelemen [Wed, 3 Sep 2014 22:36:38 +0000 (18:36 -0400)]
log

Change-Id: I644e3d0db4d840fc0408f1eae3a0fbb4bd6e5d1a

6 years agoUse "cp -a" in copy_patched_files.sh in order to minimize rebuiliding for mobile...
Viatcheslav Ostapenko [Tue, 2 Sep 2014 17:01:07 +0000 (13:01 -0400)]
Use "cp -a" in copy_patched_files.sh in order to minimize rebuiliding for mobile builds.

Preserve timestamps and attributes on copied file so build system doesn't detect changes
in copied files on the next build.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I8549f171fb6a53e616be19ffd72eff4e64193aeb
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years ago[TIZEN][M38] Add some additional include paths when building
Antonio Gomes [Tue, 2 Sep 2014 06:22:59 +0000 (02:22 -0400)]
[TIZEN][M38] Add some additional include paths when building

When building EWK on top of dev/m38, one extra include
path is needed: out.{target}/{build_type}/gen.
Patch adds such extra include path into the generated
chromium-efl.pc content.

Note that it was chosen to not add an absolute 'outdir' path
to the include path; instead a relative path is added. This keeps
it consistent with the other existing include path (src, impl, etc).

For the record, the original approach was abandoned. See it in
http://165.213.202.130:8080/#/c/68955/ .

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5472

Change-Id: I0602e0df3f1a32e11c175ee9c17528a7de4775e8
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoRemove duplicated rules and unused macros
zhaoze [Fri, 29 Aug 2014 14:01:01 +0000 (10:01 -0400)]
Remove duplicated rules and unused macros

In impl/chromium-efl.gypi, we have defined ENABLE_ORIENTATION_EVENTS.
This define is no longer used in the source tree, so we should remove it.

use_gnome_keyring flag is already set to 0 in the
src/build/supplement.gypi, this patch remove this duplication.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I35d3abcf1587a64ab66b57122cfe7974d6f57e3c
Signed-off-by: zhaoze <zhaoze.zhou@partner.samsung.com>
6 years agoSwitch to the branch dev/m38_2125
Balazs Kelemen [Fri, 29 Aug 2014 21:15:35 +0000 (17:15 -0400)]
Switch to the branch dev/m38_2125

Printing and kerberos has to be disabled for mobile due to unsatisfied
dependencies.

TODO: * rationalize build (set flags in gyp files, preferably supplement.gypi)
      * add cups to gbs to reenable printing

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I7dc8aac41e359d24cd35e46b7763a6ed1050846f
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agofixup! is_hw_accelerated should be initialized before set_eweb_view() and host->SetView()
Balazs Kelemen [Thu, 28 Aug 2014 21:25:17 +0000 (17:25 -0400)]
fixup! is_hw_accelerated should be initialized before set_eweb_view() and host->SetView()

Original patch reverted accidentally reverted a previous fix.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I2a16e0771bc753afb74efc7faadc4c58c45df000
Signed-off-by: Balazs Kelemen <b.kelemen@samsung.com>
6 years agofixup! [TIZEN] Port build system from beta/m34_1847
Antonio Gomes [Tue, 26 Aug 2014 21:17:15 +0000 (17:17 -0400)]
fixup! [TIZEN] Port build system from beta/m34_1847

Include path/to/JHBuild/bin to PATH so we can invoke stuff
from there (e.g. edje_cc).

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4938

Change-Id: Ic4ffb2bdde62f317d7936ffeedeabafb79ddfce2
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agois_hw_accelerated should be initialized before set_eweb_view() and host->SetView()
Viatcheslav Ostapenko [Tue, 26 Aug 2014 06:12:24 +0000 (02:12 -0400)]
is_hw_accelerated should be initialized before set_eweb_view() and host->SetView()

It is used in those calls. In set_eweb_view() directly and in host->SetView()
through chain call to GetNativeViewId().

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I3fc25b0227cd2eeb180b487d82a43824c6086271
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years ago[TIZEN] Port build system from beta/forct/m34_1847
Antonio Gomes [Mon, 25 Aug 2014 14:34:03 +0000 (10:34 -0400)]
[TIZEN] Port build system from beta/forct/m34_1847

The build system in branch beta/m34_1847 has
refactored in commits [1] and [2].

Patch ports these two CLs to chromium-efl's m38_2121
branch. The following changes were made on top of the
original work:

1) our homemade build/gyp_chromiumefl is kept as the GYP entry
   point still, so that we can override CalculateVariables
   from ./src/tools/gyp. beta/m34 calls src/build/gyp_chromium
   directly, but patches src/tools/gyp.
2) impl/pkgconfig/gen_pkgconfigs.py was fixed to run
   build/util/version.py instead of chrome/tools/build/version.py
   (after https://codereview.chromium.org/165893002)
3) 'host_arch' was defined in gyp_chromiumefl.sh so that we
   do not have dependency problems in src/build/common.gypi
   with arm-linux-gnueabihf-gcc.
4) Patched-files-copy logic was also added
   (see build/copy_patched_files.sh and build/patched_files/).
5) Package version updated from 34_1847 to 38_2121.

[1] http://165.213.202.130:8080/#/c/68416/
(by Tomasz Olszak <t.olszak@samsung.com>)
[2] http://suprem.sec.samsung.net/gerrit/#/c/4150/
(by Piotr Tworek <p.tworek@samsung.com>)

Build syntax is now:
./build/build_{desktop,mobile,tv}.sh {--debug}

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4938

Change-Id: I770c180df9fca385d086a6244fc152fbac1c8b55
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
6 years agoAdd early initilization workaround for base::CPU to avoid asserts on IO thread.
Viatcheslav Ostapenko [Thu, 21 Aug 2014 23:46:42 +0000 (19:46 -0400)]
Add early initilization workaround for base::CPU to avoid asserts on IO thread.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5049

Change-Id: Id7e9799fade6ba9c787f12948a3906d66535ffdc
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years ago[Tizen][Debug] Assert @gpu_process_host_ui_shim.cc(224)
Antonio Gomes [Wed, 20 Aug 2014 18:04:25 +0000 (14:04 -0400)]
[Tizen][Debug] Assert @gpu_process_host_ui_shim.cc(224)

https://codereview.chromium.org/369003002/ has removed the
handler of GpuHostMsg_UpdateVSyncParameters from GpuProcssHostUIShim.
Our chromium-efl downstream port was the last client of it.

In order to not leave this message unhandled (and hit an assert)
patch adds a filter for it in RenderWidgetHostViewEfl. To to hook
it up, it abuses the existing :RWHVEfl:AcceleratedSurfaceInitialized
callback, which is known to be called when the Gpu process is set up.

Code is based on BrowserCompositorOutputSurfaceProxy::ConnectToGpuProcessHost.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4963

Change-Id: I2980b158eae1f7f882baf477f6ce1961ec8cf9a1
Signed-off-by: Antonio Gomes <a1.gomes@sisa.samsung.com>
Conflicts:
impl/browser/renderer_host/render_widget_host_view_efl.cc

6 years agoAvoid initializing creating gfx::GLSurfaceHandle with null window handle.
Viatcheslav Ostapenko [Wed, 20 Aug 2014 00:23:00 +0000 (20:23 -0400)]
Avoid initializing creating gfx::GLSurfaceHandle with null window handle.

When RenderWidgetHostViewEfl is created it imediately initialized in constructor
creating GLSurfaceHandle from null evas_ member.
This patch adds eweb_view parameter and call to set_eweb_view which initalizes
evas_ and other efl related members.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: If53cc10a6d4ecab81599fdc79b2b3d948db33fac
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoWorkaround to disable asserts in content/common/gpu/
Viatcheslav Ostapenko [Tue, 19 Aug 2014 15:41:27 +0000 (11:41 -0400)]
Workaround to disable asserts in content/common/gpu/

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4906

Change-Id: Ic07c85eef8b848e7b730a4ce705537f81e652faa
Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
6 years agoRemove unnecessary chromium gyp settings for tizen mobile platform.
Laszlo Gombos [Sat, 16 Aug 2014 02:00:32 +0000 (22:00 -0400)]
Remove unnecessary chromium gyp settings for tizen mobile platform.

Re-setting flags to their defaults are confusing as it gives
an impression that we use different defaults for tizen.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Change-Id: I6f9e3ed4fcbd262e01766e1fdb0310a3ace52173
Signed-off-by: Laszlo Gombos <l.gombos@samsung.com>
6 years agoSwitch to the branch dev/m38_2121
Viatcheslav Ostapenko [Fri, 15 Aug 2014 20:45:19 +0000 (16:45 -0400)]
Switch to the branch dev/m38_2121

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4403

Signed-off-by: Viatcheslav Ostapenko <sl.ostapenko@samsung.com>
Change-Id: Ia109f3a58353337110e2e7049714fba527e9562f

6 years agobreak dependency to Ewk_View_Smart_Class(removed ewk_view.h), and Finish to remove...
SeungSeop Park [Fri, 8 Aug 2014 19:46:03 +0000 (15:46 -0400)]
break dependency to Ewk_View_Smart_Class(removed ewk_view.h), and Finish to remove ewk headers

Noting that the definition for Ewk_View_Smart_Class may vary depending on the
ewk api version (e.g, tv and mobile), a delegate class has been introduced to
query smart data information from given webview evas object. And evas event
handling has been improved.

In detail, this commit does followings:
- The static members of EWebView which were bound to Ewk smart api are made
  as free functions, and have been moved to ewk layer.
- Move initialization code for EWK Smart API from chromium to ewk layer. The
  smart apis of webview are bound to above mentioned free functions in ewk side.
- Change type of Ewk_View_Smart_Data::priv : EWebView* -> tizen_webview::WebView*
- Add WebViewDelegate class to get access to needed information from a webview
  smart evas object. Although the delegate class is being introduced in order to
  break EWK dependency in chromium, it is a good entry point to get other useful
  information from client side and may be extended in the future.
- Added tizen_webview::WebViewEvasEventHandler class to handle evas event and
  smart callback.
  What it does are:
  . bind/unbind callbacks for evas event and smart event to/from Evas_Object
  . what the callback basically does is to dispatch a given event to webview
    client (via Delegate interface) or default event handler.
  So, the basic flow of the dispatch is as follows:
  1. ask WebViewDelegate to handle event
  2. If WebViewDelegate returns true, the event is not processed any more.
  3. Otherwise, forward the event to the default handler of WebViewEventHandler

Added classes:
- tizen_webview::SelectionController
- tizen_webview::ContextMenuContorller
- tizen_webview::WebViewDelegate
- tizen_webview::WebViewEvasEventHandler

In addition, this commit finalizes the task of removing ewk header dependency
from chromium. Hence the include path to ewk headers has been removed from
the gyp file.

Change-Id: If714e2863d1a08d5a0e4ba44e486208538209b92
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>