platform/framework/web/chromium-efl.git
6 years agoUse different PATH_START values for paths_efl.
Piotr Tworek [Wed, 18 Mar 2015 10:10:15 +0000 (11:10 +0100)]
Use different PATH_START values for paths_efl.

The current value is the same as PATHS_START from xwalk. This makes
it impossible to use paths_efl in xwalk. Change our EFL defaults to
avoid patching xwalk.

Change-Id: I9c349843ee050eb67fcf004ada9e8c0fdda2964f
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoRemove EWK_BRINGUP guards from SelectLink And SelectClosesWord impl.
Piotr Tworek [Tue, 17 Mar 2015 13:52:14 +0000 (14:52 +0100)]
Remove EWK_BRINGUP guards from SelectLink And SelectClosesWord impl.

Since we're using beta/m40 code for all the components we no longer need
those guards. The code compiles without them.

Change-Id: I239b8023d61e6b656c7955d5ab56ffed028eb30f
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoDrop old and no longer used code from impl/browser/web_contents.
Piotr Tworek [Tue, 17 Mar 2015 13:02:39 +0000 (14:02 +0100)]
Drop old and no longer used code from impl/browser/web_contents.

This was only kept for reference until all the features original
implementation had have been reimplemented on the refactoring branch.
Since both D&D support and SetViewMode have been fixed this code no
longer serves any purpose. Let's just purge it from the repo.

Change-Id: I6ea8f26e78f535630107b8b62c974e9d09f032dd
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoRemove WebPopupItem
Arnaud Renevier [Wed, 18 Mar 2015 19:36:13 +0000 (12:36 -0700)]
Remove WebPopupItem

WebPopupItem is not strictly needed: We can build Popup_Menu_Item
directly from content::MenuItem instead of using an additional
WebPopupItem temporary object.

We also remove the WebPopupItem::create method. Instead, EWebView
creates the WebPopupItem directly with the new operator.

Change-Id: I00242c85bd2d99e6baa18c6520adb4d60b6c8516
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove tw_policy_decision.*
Arnaud Renevier [Wed, 18 Mar 2015 21:09:37 +0000 (14:09 -0700)]
Remove tw_policy_decision.*

There were two distinct classes: Ewk_Policy_Decision and
_Ewk_Policy_Decision. _Ewk_Policy_Decision was a subclass of
tizen_webview::PolicyDecision. Ewk_Policy_Decision owned an
_Ewk_Policy_Decision and forwarded it it's method.

This patch simplifies everything: there is now only
_Ewk_Policy_Decision, and Ewk_Policy_Decision is an alias to it.

Change-Id: I74c5187dda6afc7f3cd362d0107d1f8e52ec1245
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove URLRequestContextGetterEfl dependency on CookieManager
Arnaud Renevier [Fri, 13 Mar 2015 23:07:55 +0000 (16:07 -0700)]
Remove URLRequestContextGetterEfl dependency on CookieManager

Right now, URLRequestContextGetterEfl depends on CookieManager
(scoped_refptr on it), and CookieManager depends on
URLRequestContextGetterEfl (with a WeakPtr).

This isn't a problem yet, because the headers are always called in a
specific way that. But trying to include
url_request_context_getter_efl.h in another file results in a build
error: invalid use of incomplete type â€˜class CookieManager’ Trying
either to include url_request_context_getter_efl.h in cookie_manager.h
or cookie_manager.h in url_request_context_getter_efl.h doesn't work
because of the cycle dependency.

This patch removes URLRequestContextGetterEfl dependency on
CookieManager.

In order to avoid that kind of problem in the future, it also includes
headers needed for objects who have scoped_ptr members in
url_request_context_getter_efl.h

Change-Id: Ib2850258849981fee426238de6b91d86d15bafc8
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoUse blink::WebTextDirection instead of blink::TextDirection
Arnaud Renevier [Tue, 17 Mar 2015 18:11:04 +0000 (11:11 -0700)]
Use blink::WebTextDirection instead of blink::TextDirection

For popup menu items, we need to use text directions. But it's better to
use WebTextDirection instead of TextDirection. Indeed, WebTextDirection
is exposed in the public headers of blink. While TextDirection is
exposed in the internal headers

Change-Id: Ia42ed5da5adb6a3c15b3d11ae94aaa6017dd3bcd
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove tw_error.h
Arnaud Renevier [Wed, 18 Mar 2015 18:36:43 +0000 (11:36 -0700)]
Remove tw_error.h

tizen_webview::Error were just used as ipc parameters. Now, we use
instead a ErrorParams class

Change-Id: I8a2a7e767c6b8dce6d3f509f857bb9e76c23b89f
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agofixup! Handle ewk ipc messages in WebViewBrowserMessageFilter
yh106.jung [Wed, 18 Mar 2015 01:19:17 +0000 (10:19 +0900)]
fixup! Handle ewk ipc messages in WebViewBrowserMessageFilter

Some IPC messages should be handled on browser UI thread.
So, need to override thread for the IPC messages.

Change-Id: Ic9e7a2f397a7f7bc2814f81186dcf1362056a589
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agoRemove various enums in tizen_webview/public
Arnaud Renevier [Sun, 15 Mar 2015 00:31:12 +0000 (17:31 -0700)]
Remove various enums in tizen_webview/public

Remove tw_cache_model.h, tw_content_security_policy.h,
tw_cookie_accept_policy.h, tw_find_options.h, tw_legacy_font_size_mode.h
and tw_touch_event.h

Change-Id: I0794b380d625335fca98fbd19e82b3ef83826741
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoRestore support for ewk_view_set_mode function.
Piotr Tworek [Tue, 17 Mar 2015 12:58:27 +0000 (13:58 +0100)]
Restore support for ewk_view_set_mode function.

The refactoring branch broke support for sending ViewMsg_SetViewMode
because it was handled directly in RenderWidgetHostViewEfl and the
message is EWK specific extension. Still we can send the message
directly from EWebView, we don't need to use RWHV for that. This patch
does exactly that.

Change-Id: I08726e96caafb86ba6270346c44a901577936d47
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix drag & drop support broken during initial refactoring work.
Piotr Tworek [Tue, 17 Mar 2015 11:44:32 +0000 (12:44 +0100)]
Fix drag & drop support broken during initial refactoring work.

This commit restores D&D support in EWK. To go with the spirit of the
refactoring work it also fixes the code to work in generic content API
based apps like xwalk or content_shell. It's a generic feature so it
should work everywhere. To make it testable on content_shell an
additional option is added to content_shell context menu implementation.

To test the code in content_shell the following command can be used:
$ ./out.x64/Debug/content_shell --no-sandbox  http://html5demos.com/drag

After the page loads move your mouse pointer to any of the dragable
elements, long press left mouse button and wiggle it a bit to show
context menu. From the menu select "Start dragging" option and drop the
now draggable element to the trash bin image.

Note: In case where touch events are disabled content_shell context menu
can be triggered with right mouse button click.

Change-Id: I6bc42b9ae38967992d0f35addcc0163a96c462dc
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoDrop old chromium-efl gyp files
Piotr Tworek [Tue, 17 Mar 2015 09:52:45 +0000 (10:52 +0100)]
Drop old chromium-efl gyp files

They are not used for anything. I've kept them only for reference. Since
it does not seem we still need to migrate anything from them, lets just
get rid of the old junk.

Change-Id: Ie9918957365c612b6fc702caabbcc96dfa7eebbc
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoRefactor overscroll notification effect implementation (aka EdgeEffect)
Piotr Tworek [Mon, 16 Mar 2015 15:52:18 +0000 (16:52 +0100)]
Refactor overscroll notification effect implementation (aka EdgeEffect)

Very similar functionality is available in upsteam android port under
OverscrollGlow name. The code does reside in content. This patch
refactors our EWK specific implementation of the feature into a more
generic version that can be shared by both EWK and content based apps.

The code should be testable on both tizen and desktop, provided the
following conditions are met:
* Support for overscroll notifications is enabled in chromium
  (--enable-overscroll-notifications flag)
* Touch events are being used
* The currently displayed page is scrollable.

To test the code on desktop the following commands can be used:
$ ./out.x64/Debug/content_shell --no-sandbox --touch-events=enabled \
      --enable-overscroll-notifications http://xkcd.com
Or:
$ ./out.x64/Debug/ubrowser.sh --enable-overscroll-notifications \
      --touch-events=enabled http://xkcd.com

In both cases scrolling the page to the top/bottom should trigger the
overscroll notification effect.

Change-Id: Iaab660b456dc33f0afcbaf78785b15bf735d8387
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoHandle ewk ipc messages in WebViewBrowserMessageFilter
Arnaud Renevier [Mon, 16 Mar 2015 23:03:08 +0000 (16:03 -0700)]
Handle ewk ipc messages in WebViewBrowserMessageFilter

Many ipc messages were sent from RenderViewObserverEfl, and received in
RenderWidgetHostViewEfl. From them, some actions were performed on
EWebView.

But now, that ewk is isolated from chromium-efl, we need to receive
those messages in ewk layer. We use WebViewBrowserMessageFilter for
that.

This patch also removes WebViewBrowserMessageFilter class which was
defined in eweb_view.cc but never used.

Change-Id: Ia85f699b8a32ecd9e4907549fcc01478f784244a
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRevert "Modify the DEPS.xwalk config to pull from beta/m40 branch."
Piotr Tworek [Tue, 17 Mar 2015 15:58:17 +0000 (00:58 +0900)]
Revert "Modify the DEPS.xwalk config to pull from beta/m40 branch."

This reverts commit b302d2a9c17653024c61721930c2cd7c0a5e8109.

Change-Id: Iad05961f780d0e4dcb3049759787d826327480fb
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoModify the DEPS.xwalk config to pull from beta/m40 branch.
Taeho Kim [Tue, 17 Mar 2015 13:01:22 +0000 (22:01 +0900)]
Modify the DEPS.xwalk config to pull from beta/m40 branch.

This will fetch the branch as below:
This patch will pull the source from
'beta/m40_2214_t' branch of blink, skia and v8,
'experimental/beta/m40_2214_t' branch of s-chromium.

Change-Id: If7e5f917c9458cf698cef77ff59ce5f50b4c21ff
Signed-off-by: Taeho Kim <th81.kim@samsung.com>
6 years agoMake sure we recreate Evas_GL_Surface on native widget resize
Piotr Tworek [Mon, 16 Mar 2015 14:38:23 +0000 (15:38 +0100)]
Make sure we recreate Evas_GL_Surface on native widget resize

In EFL 1.13 we need to re-create our Evas_GL_Surface whenever native
image bound to it changes it's size. I don't exactly know what change in
EFL made in necessary, but some of the EFL docs do actually show that
this needs to be done this way (see "Evas GL Widget Tutorial" on
tizen.org). With this patch in place rendering works correctly again
on Odroid with images newer than 27.02.2015. There is no need to install
old EFL version anymore.

Change-Id: I769301a5c1f887d4d0923916c3a459f75a5b6933
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoRemove tw_back_forward_list_impl.h and tw_back_forward_history.h
Arnaud Renevier [Thu, 12 Mar 2015 23:57:12 +0000 (16:57 -0700)]
Remove tw_back_forward_list_impl.h and tw_back_forward_history.h

Use _Ewk_Back_Forward_List struct directly instead of
tizen_webview::BackForwardList. And use +_Ewk_History struct instead of
tizen_webview::BackForwardHistory

Change-Id: I881ff0623cd096ac53188506355517a0f8ed7302
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoEnable EWebView::MoveCaret()
yh106.jung [Tue, 17 Mar 2015 04:08:04 +0000 (13:08 +0900)]
Enable EWebView::MoveCaret()

This pathc make EWebView::MoveCaret() is available

Change-Id: Ic3d6a3010989993d2e9418d5e5785e2eaffa108e
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agoDon't use forward delaration of Elm_Object_Item.
Piotr Tworek [Mon, 16 Mar 2015 14:36:15 +0000 (15:36 +0100)]
Don't use forward delaration of Elm_Object_Item.

The definition of the object is different in Elementary 1.13. Since this
is what Tizen 3.0 currently uses the code failed to compile. Instead of
using forward delclarations simply include Elementary.h header. This
should ensure the code builds no matter what version of EFL/Elementary
is being used.

Change-Id: Id5eb1fde0aa16ab651538755d1aac67edd0e9011
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Switch to TV 3.0 as the default target for build_tv.sh
Piotr Tworek [Mon, 16 Mar 2015 14:34:46 +0000 (15:34 +0100)]
fixup! Switch to TV 3.0 as the default target for build_tv.sh

Move extra python package handling to common.sh. Without it build
without -P tztv_v3.0 would still fail as PROFILE_NAME did not have any
default values in build_tv.sh.

Change-Id: I95b507d4156ac8aff6fe6335d7b9d7b3e4047421
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agofixup! Allow building content shell when xwalk directory is absent
Piotr Tworek [Mon, 16 Mar 2015 14:31:26 +0000 (15:31 +0100)]
fixup! Allow building content shell when xwalk directory is absent

Fix TV/Odroid xwalk build break introduced by the original patch. We
need to pass --xwalk gyp flag to make sure appropriate ninja files are
generated.

Change-Id: I35666f8458f82113a41df640386012d7b3dee79b
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoRevert "Use 3.0 rpm feed from 27.02.2015 as all the newer ones are broken"
Piotr Tworek [Mon, 16 Mar 2015 10:35:43 +0000 (11:35 +0100)]
Revert "Use 3.0 rpm feed from 27.02.2015 as all the newer ones are broken"

Unfortunately the snapshot was removed from the server.

This reverts commit cf4d327d18a3e856bc04ebe8e67db87c25794fbb.

Change-Id: Ib2e4a639c44984c5f300a9967ba109b7d25e256d
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[beta merge] Remove tw_macro.h and tw_ref_counted.h
Arnaud Renevier [Thu, 12 Mar 2015 23:01:18 +0000 (16:01 -0700)]
[beta merge] Remove tw_macro.h and tw_ref_counted.h

tw_macro.h and tw_ref_counted.h are simplified copies of base/macros.h
and base/memory/ref_counted.h. They had been introduced for the sole
purpose of not including chromium includes. But we don't have that
requirement anymore. So we can use macros.h and ref_counted.h header
files directly.

Change-Id: I395c7cd3c17a077834d6bbde877a6af70059a88c
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years ago[beta merge] Remove tw_export.h
Arnaud Renevier [Thu, 12 Mar 2015 22:54:53 +0000 (15:54 -0700)]
[beta merge] Remove tw_export.h

Since we aim to remove the layer tizen_webview, tw_export.h doesn't make
sense anymore.

Change-Id: I9a12b1df74c6b83b6f098b56c9ba242a78f5f850
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoEnable ewk_view_feed_touch_event
yh106.jung [Mon, 16 Mar 2015 04:59:17 +0000 (13:59 +0900)]
Enable ewk_view_feed_touch_event

Make ewk_view_feed_touch_event is available.
Currently use tizen webview interface, but tizen webview interface will be
removed later.

Change-Id: I18d39d45280808a253ad7ed139cb777354b25221
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agoRemove tw_frame.h
Arnaud Renevier [Thu, 12 Mar 2015 18:31:18 +0000 (11:31 -0700)]
Remove tw_frame.h

Use _Ewk_Frame struct directly instead of tizen_webview::Frame

Change-Id: I67f8fd2bfc3336573978e47498b67e45303eddac
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove tw_cache_model.h
Arnaud Renevier [Wed, 11 Mar 2015 23:27:34 +0000 (16:27 -0700)]
Remove tw_cache_model.h

Use Ewk_Cache_Model enum directly instead of tizen_webview::Cache_Model

Change-Id: Ib76254a6ae2cbbe90c288319aff55e3d12de3aec
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove tw_custom_handlers.h
Arnaud Renevier [Wed, 11 Mar 2015 20:49:15 +0000 (13:49 -0700)]
Remove tw_custom_handlers.h

Use Ewk_Custom_Handlers_Data struct directly instead of
tizen_webview::Custom_Handlers_Data

Change-Id: If9603f41394fd9003332baa1426d4520e431605d
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoAdd a gyp depency to wtf
Arnaud Renevier [Thu, 12 Mar 2015 18:17:32 +0000 (11:17 -0700)]
Add a gyp depency to wtf

Efl Render View Observer depends on blink FontCache.h Currently, building
content shell fails with the following error:

In file included from ../../third_party/WebKit/Source/wtf/unicode/Unicode.h:31:0,
                 from ../../third_party/WebKit/Source/wtf/StringHasher.h:25,
                 from ../../third_party/WebKit/Source/platform/fonts/FontFaceCreationParams.h:35,
                 from ../../third_party/WebKit/Source/platform/fonts/FontCache.h:35,
                 from ../../tizen_src/ewk/efl_integration/renderer/render_view_observer_efl.cc:38:
../../third_party/WebKit/Source/wtf/unicode/icu/UnicodeIcu.h:26:27: fatal error: unicode/uchar.h: No such file or directory

This patch adds a gyp dependency on wtf to fix the issue. (Adding a dependency
to blink_platform doesn't fix the issue)

Change-Id: I8add9018fe406b118c479de1bcb417ee299477d7
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoFixes ccache_env.sh path
Arnaud Renevier [Mon, 9 Mar 2015 22:54:07 +0000 (15:54 -0700)]
Fixes ccache_env.sh path

Currently, trying to build with --ccache results in the following error:
src/tizen_src/build/common.sh: line 97: src/build/ccache_env.sh: No such
file or directory

This patch fixes ccache_env.sh path

Change-Id: Iae86efdd8f8165b27dfa034f190978e706d01c69
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoFix EWK support for switching between mouse and touch events
Piotr Tworek [Fri, 13 Mar 2015 12:22:08 +0000 (13:22 +0100)]
Fix EWK support for switching between mouse and touch events

EWK functions switching between mouse and touch events operate on the
view object. Unfortunately our current implementation operated on the
RenderWidgetHostView objects. There is no 1:1 translation between EWK
view and RenderWidgetHostView. As a result any modifications the
functions made were only valid until chromium decided to create a new
RWHV. Take the following use case.

  1. Launch ubrowser
  2. Load some page, for example google.com
  3. Enable touch events via extra actions menu.
  4. Load different page, ex xkcd.com

In such scenarion touch events should be still enabled for xkcd.com. The
problem is they weren't. Chromium creates new RWHVs for pages being
loaded from different domain. As a result loading xkcd page disabled
touch events once again.

This patch fixes the problem by moving input event toggling code the the
WebContentsView object. There is always only one object of that type per
WebContents/EWebView.

Change-Id: I6d16ded8cdbf252b1e12b34cc02f43f7566af5d3
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoubrowser: Fix EFL error trigger by incorrect call to elm focus_set func.
Piotr Tworek [Fri, 13 Mar 2015 11:54:44 +0000 (12:54 +0100)]
ubrowser: Fix EFL error trigger by incorrect call to elm focus_set func.

Technically the Ewk WebView object is not an elementary widget. Its a
smart object build from elementary widgets. We should not pass the
object to any elm function calls as they will only trigger runtime
errors without doing anything.

This patch fixes the following runtime EFL error message seen during
ubrowser startup:

  ERR<18221>:eo lib/eo/eo.c:676 _eo_call_resolve() in elm_widget.eo.c:111:
      func 'elm_obj_widget_can_focus_set' (304) could not be resolved for
      class 'Evas_Object_Smart'.

Change-Id: I8d3587c72dd911648a431a2f822b5806b634e36f
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix elementary widget stacking
Piotr Tworek [Fri, 13 Mar 2015 11:48:46 +0000 (12:48 +0100)]
Fix elementary widget stacking

The problem could be observed by showing extra actions menu in ubrowser
(rightmost button in the navigation bar). When shown large part of the
menu would be improperly stacked below the webview widget.

The root cause was in the fact that after the refactoring branch changes
both the NativeView and ContentNativeView widgets were not added to the
view smart object. This patch fixes that.

Change-Id: I38213ba03c1b08feb0643f661f063e1c530fc78f
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix EFL errors triggered by SelectionMagnifier
Piotr Tworek [Fri, 13 Mar 2015 11:45:32 +0000 (12:45 +0100)]
Fix EFL errors triggered by SelectionMagnifier

When starting any of the reference apps the following EFL error could be
ovserved:

  ERR<24658>: elm_main.c:1566 elm_object_top_widget_get() safety check failed:
      obj == NULL
  ERR<24658>:eo lib/eo/eo.c:676 _eo_call_resolve() in elm_widget.eo.c:315:
      func 'elm_obj_widget_sub_object_add' (253) could not be resolved for
      class 'Evas_Object_Smart'.

The root cause for the issue was in the logic looking for the parent of
the magnifier widget. The widget parent should be the NativeView for the
WebContents displaying the magnifier. This patch fixes that.

Change-Id: I7084044699d7c41fbced80fc193579740850a0d9
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix runtime EFL errors triggered by EWK context menu implementation
Piotr Tworek [Fri, 13 Mar 2015 10:14:23 +0000 (11:14 +0100)]
Fix runtime EFL errors triggered by EWK context menu implementation

Our current EWK implementation of context menus triggers the following
EFL runtime errors whenever its shown:

  ERR<23471>:eo lib/eo/eo.c:676 _eo_call_resolve() in elm_widget.eo.c:315:
  func 'elm_obj_widget_sub_object_add' (253) could not be resolved for class
  'Evas_Object_Smart'.
  ERR<23471>:eo lib/eo/eo.c:676 _eo_call_resolve() in elm_widget.eo.c:315:
  func 'elm_obj_widget_sub_object_add' (253) could not be resolved for class
  'Evas_Object_Smart'.

This basically means we're adding context menu to a wrong parent. Its
parent should be the Evas_Object representing the view, not the Smart
object wrapping it. This patch fixes the mistake. With it in place
showing context menus in ubrowser or efl_webview_app does not produce
any runtime EFL errors.

The problem is also present on beta/m40 branch.

Change-Id: I70091a5d161a5f4b5d70d232f7613d80967c1839
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoubrowser: Remove web_view_elm_host_ hack from the app.
Piotr Tworek [Thu, 12 Mar 2015 17:22:50 +0000 (18:22 +0100)]
ubrowser: Remove web_view_elm_host_ hack from the app.

Since the RWHV we currently use does try to integrate into elementary
focus tree we no longer need this workaround in ubrowser. WebView object
itsenfl should properly handle both evas and elementary focuses.

Change-Id: Ic6fadcb3fed3fc3a0c309f1d818c67e813f56ab0
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix a bunch of EFL warnings we can see during EWK apps startup.
Piotr Tworek [Fri, 13 Mar 2015 09:23:01 +0000 (10:23 +0100)]
Fix a bunch of EFL warnings we can see during EWK apps startup.

The EWebView::evas_object_ is an Evas_Smart object. We should not as
argument for any of the elm_ or many of the evas_ functions. Instead
we should use the object returned btWebContentsView::GetNativeView
call. For convenience it's also available in EWebView::native_view_.

Another part of the patch implements a better mechanism for finding
valid elementary root object for current EWK view. In general if we want
to seamlesly integrate with elementary focus tree we should make sure
our elm objects are always added for elementary parents. Adding elm
objects for random Evas_Objects works in most cases, but it does
trigger an EFL warning and usually breaks focus traversal.

Besides making our EWK app startup cleaner this patch should also fix
url bar focus handling in mini_browser and ubrowser. To see the problem
click on the url bar to show the carret then click anywhere in the web
view widget. Clicking on the webview widget should always take focus
away from the urlbar (caret should disappear). Without this patch this
scenario works as it should in content_shell, but not in EWK apps.

Change-Id: I518da262366eec6752a8b09fc61029982f8b58bc
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoGet rid of Evas image object from Ewk_View_Smart_Data
Piotr Tworek [Fri, 13 Mar 2015 09:17:25 +0000 (10:17 +0100)]
Get rid of Evas image object from Ewk_View_Smart_Data

The actual image object is now created and managed inside
RenderWidgetHostViewEfl. The one left over in EWK layer is not used for
anything and should be removed.

Change-Id: I858b21f8d7b57cafe715a92fb370333f442103df
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoAllow building content shell when xwalk directory is absent
Arnaud Renevier [Thu, 12 Mar 2015 17:52:40 +0000 (10:52 -0700)]
Allow building content shell when xwalk directory is absent

Currently, it's not possible to build anything if xwalk directory is not
present. It would be great if we could, because xwalk is on a separate
repository, and might not always be available.

This patch sources gyp xwalk related files only if they are to be used.
Instead of passing xwalk.gyp path to gyp_chromiumefl, a flag --xwalk is
now passed. If and only if set, gyp_chromiumefl will source xwalk.gyp
and other xwalk related gyp files.

Change-Id: I872985cbe25a684cb8e325173e21a1a09cff313b
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoWrong values are shown in inputpicker
Dongjun Kim [Wed, 4 Mar 2015 17:24:39 +0000 (02:24 +0900)]
Wrong values are shown in inputpicker

It has some problem with conversion from string to double.
Even, some values are omitted while conversion.

We need to change for solving this problem.
1. Change mechanism of date conversion.
2. Change to "String" which type of date parameter from renderer.

Together with: If769a0500f0a58f6b4457bf4bc62c107ead4486f

BUG: http://168.219.209.56/jira/browse/TNEF-531
Reviewed by: Hyunhak Kim, Jaesik Chang, Piotr Grad

Change-Id: I12ea9fdee6dad8e505e6c4df852f5609f30e7659
Signed-off-by: Dongjun Kim <djmix.kim@samsung.com>
6 years agoRestore run-layout-test script into working condition.
Piotr Tworek [Thu, 12 Mar 2015 14:56:14 +0000 (15:56 +0100)]
Restore run-layout-test script into working condition.

We shuld probably start caring about running layout tests. This commit
makes it possible to do it one again after the refactoring branch
changes. It also makes sure tools needed by layout tests are build
togeter with content_shell app.

Change-Id: Id5db5b72ece5e547684bf0e932349352a039355a
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix paths_efl.cc build warnings
Piotr Tworek [Thu, 12 Mar 2015 13:50:49 +0000 (14:50 +0100)]
Fix paths_efl.cc build warnings

The kDataPath, kExePath, kLocalePath vars are only used when OS_TIZEN is
defined so also keep their declarations in the same ifdef.

Change-Id: I5ce4e68d5f783eae2ffe5f1df96d732cdfce639d
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix favicon_commands.h clang build warnings.
Piotr Tworek [Thu, 12 Mar 2015 13:48:18 +0000 (14:48 +0100)]
Fix favicon_commands.h clang build warnings.

Chromium coding style requires overriding methods to be marked with
override keyword. Clang chromium-style also complains about. Let's add
it to make our lives easier.

Change-Id: I87ff1cc77742a7e8e20f10c6dbba792c3ee590f8
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoSwitch to TV 3.0 as the default target for build_tv.sh
Piotr Tworek [Thu, 12 Mar 2015 13:47:05 +0000 (14:47 +0100)]
Switch to TV 3.0 as the default target for build_tv.sh

Since this is the main target we care about lets use it by default. This
way we won't have to specify -P tztv_v3.0 flag when using the script.

Change-Id: I0be0eef27c79657ed517d4d5da6f7e6e335e4d44
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoEnable support for chromium extensions.
Piotr Tworek [Thu, 12 Mar 2015 13:44:45 +0000 (14:44 +0100)]
Enable support for chromium extensions.

This is required by crosswalk. Without the feature enabled the app fails
to compile.

Change-Id: I67d2c5aa206a66b7b654123fde28d493113bd338
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMake EWK use WebContentsViewDelegate for SetPageTitle handling.
hh4813.kim [Thu, 12 Mar 2015 14:14:44 +0000 (23:14 +0900)]
Make EWK use WebContentsViewDelegate for SetPageTitle handling.

This patch makes EWK to set page title via WebContentsViewDelegate::SetPageTitle fucntion.

Change-Id: I88d4011bb946d78515ff0e4d67a27a9e42f44d25
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoGet rid of old and dead event handling code.
Piotr Tworek [Wed, 11 Mar 2015 14:36:29 +0000 (15:36 +0100)]
Get rid of old and dead event handling code.

Majority of EWK even handling code has been reimplemented inside RWHV.
Right now EWebView should not even care about mouse/touch/keyboard/focus
events. Remove the old and unnecessary code.

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

Change-Id: I027fa0ef4675f1f2caa14d44bd80a2859d61cbd5
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoRemove tw_security_origin.h
Arnaud Renevier [Wed, 11 Mar 2015 22:25:09 +0000 (15:25 -0700)]
Remove tw_security_origin.h

Use _Ewk_Security_Origin struct directly instead of
tizen_webview::Security_Origin

Change-Id: I44c08d968288af28edd14e60834eb1236a024d8c
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoUse WebcontentViewDelegate for show context menu
yh106.jung [Thu, 12 Mar 2015 13:29:03 +0000 (22:29 +0900)]
Use WebcontentViewDelegate for show context menu

Make EWK uses WebcontentViewDelegate for show context menuK

Change-Id: I06fdffcb019f648164187d970e06d27c110bba87
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agofixup! remove tw_wrt.h
yh106.jung [Thu, 12 Mar 2015 13:25:47 +0000 (22:25 +0900)]
fixup! remove tw_wrt.h

remove tw_wrt.h|cc from gypi file

Change-Id: Ife5dea2ae2600665619d913b3feaceabd90d3e4a
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agofixup! Merge efl-port POC code into tizen_src
Piotr Tworek [Wed, 11 Mar 2015 14:18:04 +0000 (15:18 +0100)]
fixup! Merge efl-port POC code into tizen_src

Wno-extern-c-compat flag is only used by clang, gcc does not care about
it and actually complains this flag does not exist.

Change-Id: Ib4d46a0f4a9a1e169d5503364e4999abc23cb194
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoUse 3.0 rpm feed from 27.02.2015 as all the newer ones are broken
Piotr Tworek [Wed, 11 Mar 2015 12:23:05 +0000 (13:23 +0100)]
Use 3.0 rpm feed from 27.02.2015 as all the newer ones are broken

It seems newer feeds provide EFL 1.13 which breaks both the refactoring
branch and beta/m40. Since fixing it is a separate task not really
related to refactoring let's use a known good snapshot for now.

Please keep in mind that we should also use odroid images matching the
package feed.

Change-Id: I05219e1536cb355a57abcfaac60962f826911167
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMake EWK use WebContentsViewDelegate for popup menu handling.
Piotr Tworek [Wed, 11 Mar 2015 12:02:20 +0000 (13:02 +0100)]
Make EWK use WebContentsViewDelegate for popup menu handling.

Apps wishing to show custom popup menus should implement
WebContentsViewDelegate::ShowPopupMenu function. This patch does it for
EWK.

Change-Id: Id587ac954c3d016c5a0717eca365610aec1e2a82
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoUse WebContentsViewDelegate to delegate popup handling to the app
Piotr Tworek [Wed, 11 Mar 2015 11:59:34 +0000 (12:59 +0100)]
Use WebContentsViewDelegate to delegate popup handling to the app

We can't use the old code which expected it always got EFL version of
WebContentsDelegate class. We can however use WebContentsViewDelegate
which with an additional patch to src/ gains support for informing the
app about the need for a popup menu.

Change-Id: I7df5e53ebdc6db1be93388c3db8d82db5b3a9050
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Merge efl-port POC code into tizen_src
Piotr Tworek [Wed, 11 Mar 2015 09:35:10 +0000 (10:35 +0100)]
fixup! Merge efl-port POC code into tizen_src

Drop SHELL_USE_CUSTOM_JS_DIALOG_MANAGER define since it's no longer used
by the content_shell patch from chromium src. Right now default
content_shell JavaScriptDialogManager is always disabled when USE_EFL is
defined.

Change-Id: I96bb79e05ae46b4a2338ecabee06441751b70077
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoIntegrate crosswalk build with chromium-ewk build scripts
Piotr Tworek [Tue, 10 Mar 2015 15:27:52 +0000 (16:27 +0100)]
Integrate crosswalk build with chromium-ewk build scripts

The goal of the patch is simple, it should be possible to build
crosswalk for both desktop and tizen using the same scripts as we use
for chromium-ewk. The actual change is simple, but we have to take into
account the fact that we do configure chromium sligtly different than
crosswalk does. I does not seems to matter much for crosswalk, but it
means we'll have to test such setup at some point. Still this is the
only way to go if we intent to ship chromium code as a shared library
used by both xwalk binary and chromium-ewk lib at some point.

Change-Id: I212a38093b67ccb2f99b423177ad17599df3f7bf
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
6 years agoRemove tizen_webview/public/tw_url.h and tizen_webview/public/tw_misc.*
Arnaud Renevier [Wed, 11 Mar 2015 22:23:35 +0000 (15:23 -0700)]
Remove tizen_webview/public/tw_url.h and tizen_webview/public/tw_misc.*

With this patch, we don't use tw::URL but instead, we use directly GURL

Change-Id: Ic2ebb9f86c8e9479f787f4abc614bf15ba5aeb2e
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove tw_notification.h
Arnaud Renevier [Wed, 11 Mar 2015 17:58:23 +0000 (10:58 -0700)]
Remove tw_notification.h

Use Ewk_Notification struct directly instead of tizen_webview::Notification

Change-Id: Ib0c2d43b839b58675f106f70ddbf0d6e93b08c83
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoRemove tw_wrt.h
Arnaud Renevier [Mon, 9 Mar 2015 23:47:19 +0000 (16:47 -0700)]
Remove tw_wrt.h

Use Ewk_Wrt_Message_Data struct directly instead of
tizen_webview::WrtIpcMessageData

Change-Id: I5070dd261e72ca1dccd947f4ba2606840598f035
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
6 years agoMake EWK buildable again for Tizen Mobile (part II)
Antonio Gomes [Sun, 8 Mar 2015 12:58:43 +0000 (05:58 -0700)]
Make EWK buildable again for Tizen Mobile (part II)

Patch adds some missing dependencies so that Tizen
mobile builds succeed. Namely, the following dependencies
were missing:
- ui-gadget
- efl-assist
- capi-system-device
- capi-system-sensor
- capi-media-camera

Also some extra code is guarded under EWK_REFACTOR.

Change-Id: I8d406ed9e067241a3ce06582734befb1162dd3e4

6 years agoEnable SetTouchEventsEnabled, SetMouseEventsEnabled
yh106.jung [Tue, 10 Mar 2015 12:22:18 +0000 (21:22 +0900)]
Enable SetTouchEventsEnabled, SetMouseEventsEnabled

This commit enables SetTouchEventsEnabled, SetMouseEventsEnabled in EWebView

Change-Id: Ibc4ce41ec6588f2433d52bf6761aa89c467d5fa9
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agofixup! Make sure we compile chromium code with the same defines as chromium-efl
Piotr Tworek [Tue, 10 Mar 2015 07:53:29 +0000 (08:53 +0100)]
fixup! Make sure we compile chromium code with the same defines as chromium-efl

The USE_DL_PREFIX define is used only by dlmalloc shipped with
native_client code. Chromium does not support shipping nacl with
prefixed malloc so the define actually breaks NaCl support in crosswalk.
Get rid of the extra unnecessary define.

Change-Id: I875c2afc95c051cdfbb0985e43b457be74e93f82
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMake EWK buildable again for Tizen Mobile
Antonio Gomes [Sun, 8 Mar 2015 12:45:24 +0000 (05:45 -0700)]
Make EWK buildable again for Tizen Mobile

Fix some code guarded by OS_TIZEN_MOBILE of
various small bugs: incomplete include patch,
extensions of EWK_REFACTOR, etc.

Change-Id: I90dbcda1404272b7208b833f83829892efe33ee7

6 years agofixup! Move EWK implementation code into ewk/ directory where it belongs.
Antonio Gomes [Sun, 8 Mar 2015 11:59:54 +0000 (04:59 -0700)]
fixup! Move EWK implementation code into ewk/ directory where it belongs.

Fix the gcc 4.6 check.

One step towards building Tizen 2.4 / mobile
on the refator branch.

Change-Id: I8a83e71582838d5db920abdb9307a2673869d1fb

6 years agoDeclare/define ewk_bringup in supplyment.gyp
Antonio Gomes [Sun, 8 Mar 2015 11:57:35 +0000 (04:57 -0700)]
Declare/define ewk_bringup in supplyment.gyp

That way, it is visible to all targets.

One step towards building Tizen 2.4 / mobile
on the refator branch.

Change-Id: Ib5f68f2969d49822857196b4bece8dd44e8f100d

6 years agoMake ubrowser script executable
yh106.jung [Mon, 9 Mar 2015 06:54:19 +0000 (15:54 +0900)]
Make ubrowser script executable

Change-Id: Idacc23b754f28808eb3bff75d5ef3be0957fc954
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
6 years agofixup! Merge efl-port POC code into tizen_src
Piotr Tworek [Fri, 6 Mar 2015 11:34:18 +0000 (20:34 +0900)]
fixup! Merge efl-port POC code into tizen_src

It seems the previous patch for tizen stylesheet generation issue did
not really take care of the problem. The problem was still reproducible
on build server with 80 cores. The root cause seems to be in a fact that
in generic blink we do actually have 2 targets for the autogenerated
files. One generates it, while the other is supposed to build it. Lets
follow that approach.

Change-Id: I35b391ba2674829a4e36e46d6084ef6dc9fd6c5a
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Merge efl-port POC code into tizen_src
Piotr Tworek [Fri, 6 Mar 2015 09:15:57 +0000 (18:15 +0900)]
fixup! Merge efl-port POC code into tizen_src

Get rid of tabs.

Change-Id: Id30d833cf6e45db865322a5c6541a4b0992d42ee
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMake EWK buildable again for TV 3.0
Piotr Tworek [Fri, 6 Mar 2015 06:24:04 +0000 (15:24 +0900)]
Make EWK buildable again for TV 3.0

With this patch and the previous one for our build scripts the
build_tv.sh -P tztv_v3.0 shoule once again produce working packages for
3.0 odroid target.

Change-Id: I750c2437f35b9417eb7fc036468052aa4d6d9a70
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Move EWK implementation code into ewk/ directory where it belongs.
Piotr Tworek [Fri, 6 Mar 2015 04:09:59 +0000 (13:09 +0900)]
fixup! Move EWK implementation code into ewk/ directory where it belongs.

Add EWK_BRINGUP guards around kForceAccelerated2dCanvas command line
switch. It seems this flag was added by one of the patches for src/.

Change-Id: Ic6caebaf290a529a0ebd89d626a2b053727e6603
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMake build_tv.sh script usable again.
Piotr Tworek [Fri, 6 Mar 2015 04:07:20 +0000 (13:07 +0900)]
Make build_tv.sh script usable again.

Since chromium-efl sources are now storred in tizen_src subdirectory of
chromium the build script and spec file need to be adjusted.

Change-Id: I0dfa0af256447a496938b21b4569afa24aa09045
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Move EWK implementation code into ewk/ directory where it belongs.
Piotr Tworek [Fri, 6 Mar 2015 03:05:08 +0000 (12:05 +0900)]
fixup! Move EWK implementation code into ewk/ directory where it belongs.

Fix building EWK unit tests. Some trivial gyp changes make the code
buildable once again.

Change-Id: Id6077020d4c4ebb863087a7294284f06e42b15a0
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Merge efl-port POC code into tizen_src
Piotr Tworek [Fri, 6 Mar 2015 03:03:22 +0000 (12:03 +0900)]
fixup! Merge efl-port POC code into tizen_src

Make sure we don't need to specify building_for_tizen_mobile gyp flag.
The default value of 0 should be used when the user does not define the
flag.

Change-Id: I142514d399d8c5157012ab37095e7de6e33b2c19
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Move EWK implementation code into ewk/ directory where it belongs.
Piotr Tworek [Fri, 6 Mar 2015 03:02:26 +0000 (12:02 +0900)]
fixup! Move EWK implementation code into ewk/ directory where it belongs.

Adjust EWK code to new multimedia related code naming scheme.

Change-Id: If3e96b010ab4a954dd31d6e117b002c7840bd779
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Migrate multimedia support code to new chromium_impl structure.
Piotr Tworek [Fri, 6 Mar 2015 03:00:52 +0000 (12:00 +0900)]
fixup! Migrate multimedia support code to new chromium_impl structure.

Trivial mistake in header include guard.

Change-Id: I24b2c9330b46ba8c7045fbb057e12be9cc4a9c9b
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Merge efl-port POC code into tizen_src
Piotr Tworek [Fri, 6 Mar 2015 02:23:21 +0000 (11:23 +0900)]
fixup! Merge efl-port POC code into tizen_src

It seems actions defined by our webcore_generated injection target
sometimes did not get executed before ninja started building
webcore_rendering target. Not a nicest solution but adding explicit
dependency on webcore_generated to content_renderer makes sure the tizen
specific files are generated before we start compiling blink code.

Change-Id: I9f83b8e40f57b1554ea3b1eb6962898d4701cc52
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Move EWK implementation code into ewk/ directory where it belongs.
Piotr Tworek [Thu, 5 Mar 2015 11:41:00 +0000 (20:41 +0900)]
fixup! Move EWK implementation code into ewk/ directory where it belongs.

Make sure our message filters use EwkMsgStart ID instead of
ChromeMsgStart. This fixes problems with running RWK in multiprocess mode,
--single-process flag should no longer be required to run ubrowser or
efl_webview_app.

Change-Id: If6f839d757c218d83d71e51973e0b11f7ece6d5b
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoReuse efl initialization code from chromium_impl in ewk
Piotr Tworek [Thu, 5 Mar 2015 11:36:08 +0000 (20:36 +0900)]
Reuse efl initialization code from chromium_impl in ewk

AppendPortParams is supposed to contain the necesary minimum to
bootstrap working EFL version of chromium. CommandLineEfl should only
append extra flags which are supposed to activate additional, non
critical functionality. The idea is xwalk and EWK can configure chromium
differently, but they should share some base flags.

Change-Id: I2c1ea27c9054b228c078d0ddd6a708b1e3fdb3dc
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Merge efl-port POC code into tizen_src
Piotr Tworek [Thu, 5 Mar 2015 11:35:08 +0000 (20:35 +0900)]
fixup! Merge efl-port POC code into tizen_src

Andjust tizen_src code to fixup from:
http://165.213.202.130:8080/#/c/76146/

Change-Id: Ie2d9fcc32b7edaa3b926dce8c5f6fc2616a79420
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoFix EWK content rendering support.
Piotr Tworek [Thu, 5 Mar 2015 10:41:39 +0000 (19:41 +0900)]
Fix EWK content rendering support.

With this patch in place it's possible to get a working ubrowser build
that both renders the content, reacts to input and can handle a lot of
EWK API calls.

Note: For the app to work --single-process flag still needs to be
      specified. I'm still looking why it's needed.

Change-Id: I4a585ecd5a8b3a14260386d5c76b3082d6fc6608
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Move EWK implementation code into ewk/ directory where it belongs.
Piotr Tworek [Thu, 5 Mar 2015 09:44:28 +0000 (18:44 +0900)]
fixup! Move EWK implementation code into ewk/ directory where it belongs.

Re-enable building of various resources EWK needs from chrome.

Change-Id: I6c9ad25d92e82f502ff37ee74d8d1108174604e2
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMake sure we compile chromium code with the same defines as chromium-efl
Piotr Tworek [Thu, 5 Mar 2015 09:39:02 +0000 (18:39 +0900)]
Make sure we compile chromium code with the same defines as chromium-efl

Apparently some of them are needed to ship chromium code in shared
library. Would be good to investigate them and explain what they
actually do.

Change-Id: I459ba1458fced5ddaaeb6a133f0d13f79149d252
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMove EWK implementation code into ewk/ directory where it belongs.
Piotr Tworek [Wed, 4 Mar 2015 11:02:47 +0000 (20:02 +0900)]
Move EWK implementation code into ewk/ directory where it belongs.

Around 3/4 of the code from impl is responsible for implementing EWK API
specifics. This code belongs in ewk/ directory of tizen_src. This patch
performs the move and ajusts the build system and chromium_impl code to
make EWK buildable again. With this patch in place it's possible to
build crosswalk, content_shell and EWK apps once again on desktop. All
of the apps should run, but rendering is still broken in EWK. This will
be handlled in a separate commit.

Change-Id: I28bcbbd4c142c6db25e0efbbabfc69d79e2542ca
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMigrate chromium-efl device_sensors provider into chromium_impl
Piotr Tworek [Tue, 3 Mar 2015 09:04:37 +0000 (18:04 +0900)]
Migrate chromium-efl device_sensors provider into chromium_impl

It implements generic chromium interface. The code should be reusable by
both EWK and content apps line xwalk or content_shell.

Change-Id: I952f6a5a284cf4c1a37c1d8bad28859a038e03de
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMigrate chromium speech synthesizer code (TTS) to chormium_impl
Piotr Tworek [Tue, 3 Mar 2015 08:06:45 +0000 (17:06 +0900)]
Migrate chromium speech synthesizer code (TTS) to chormium_impl

Can't test it properly now as I don't have a tizen mobile device, but
the code belongs in chromium_impl, not ewk directory.

Change-Id: I85318e6a175ddfa23169cf938c9f540e2e7d8cbb
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMigrate tizen battery API provider implementation to new dir structure
Piotr Tworek [Tue, 3 Mar 2015 08:48:40 +0000 (17:48 +0900)]
Migrate tizen battery API provider implementation to new dir structure

Generic code, should be usable for both xwalk and EWK, move to
chromium_impl.

Change-Id: Ie912672308462056653ee7b85324843bd940bf16
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agoMigrate multimedia support code to new chromium_impl structure.
Piotr Tworek [Tue, 3 Mar 2015 06:19:04 +0000 (15:19 +0900)]
Migrate multimedia support code to new chromium_impl structure.

The code implements internal chromium interfaces so it belongs in
chromium part of new project structure. The expectation is it'll be
possible to use it from both xwalk/content_shell and EWK.

Due to the fact that xwalk gyp files
(xwalk/build/xwalk_filename_rules.gypi) exclude files with tizen in
their path from build if tizen gyp variable is set to 0 the code had to
be renamed. These files were renamed to have the "efl" suffix instead, given
that there were no Tizen specific (desktop build also builds them).
This way we still keep the ability to build and test the code on desktop.

Change-Id: Ic967fb97131152494520ac9232b986126918c969
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
Signed-off-by: Taeho Kim <th81.kim@samsung.com>
6 years agoMerge efl-port POC code into tizen_src
Piotr Tworek [Sat, 28 Feb 2015 03:30:44 +0000 (12:30 +0900)]
Merge efl-port POC code into tizen_src

This commit merges code from efl-port POC into tizen_src directory
structure. With this commit in place it's possible to build xwalk and
content_shell on top of cgromium using EFL toolkit. On desktop it should
be as simple as (from top level directory):

$ ./xwalk/gyp_xwalk -Duse_aura=0 -Duse_efl=1 -Dbuilding_for_tizen_mobile=0
$ ninja -C out/Debug content_shell xwalk

Running:
$ ./out/Debug/xwalk <some link>
or:
$ ./out/Debug/content_shell --no-sandbox <some link>

Building the code for Tizen 3.0 is handled by crosswalk-efl.spec file in
xwalk repo.

Building EWK code is currently not possible. EWK will be fixed by future
commits.

Change-Id: I53862b74202c36eb531204f155153b8a9b18deb0
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! [Crosswalk] Switch repositories to CT and bgerrit.
hh4813.kim [Wed, 4 Feb 2015 13:48:11 +0000 (22:48 +0900)]
fixup! [Crosswalk] Switch repositories to CT and bgerrit.

Change-Id: Ifa76de51a64e7b6c5ed7cc26943b04ca1a8d0041
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Switch repositories to CT and bgerrit.
Antonio Gomes [Fri, 23 Jan 2015 21:49:43 +0000 (13:49 -0800)]
[Crosswalk] Switch repositories to CT and bgerrit.

Change-Id: I4b40b5c9f902869ba848297a64bfab1ddd10e423
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years agofixup! Implement Chromium Theme for Tizen.
Antonio Gomes [Thu, 22 Jan 2015 20:51:57 +0000 (12:51 -0800)]
fixup! Implement Chromium Theme for Tizen.

Change-Id: Iafb891a4aab335614f763e2ab850f71b984bbdde
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Move away from custom_hooks needs in .gclient.
Antonio Gomes [Mon, 15 Dec 2014 21:14:22 +0000 (13:14 -0800)]
[Crosswalk] Move away from custom_hooks needs in .gclient.

Patch adds a DEPS file in tizen_src where 'xwalk' is specified
as a hard dependency. It allows us to greatly simplify
our suggested .gclient.

Our 'custom_hooks' also got to be declared as 'hooks' in DEPS.

Change-Id: I21d55ed5b7730bed1100abcd9efee2d272d9720c
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Move away from sync_repos.sh.
Antonio Gomes [Mon, 15 Dec 2014 19:01:08 +0000 (11:01 -0800)]
[Crosswalk] Move away from sync_repos.sh.

Patch implements a fully gclient based featch solution,
moving away from sync_repos.sh completely.

The following actions are done (README.md updated):
- The custom_hook associated to sync_repos.sh in .gclient is removed
- Chromium and WebKit are pulled directly from EFL forks via .gclient-xwalk.
- Crosswalk is pulled as a separate "solition" in .gclient.
- The needed custom hooks are overriden.

Change-Id: Ifeb4060ea0152d8c373235003a4a5020b0b17fcc
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Fetch from the proper crosswalk repository
Antonio Gomes [Fri, 5 Dec 2014 22:22:36 +0000 (14:22 -0800)]
[Crosswalk] Fetch from the proper crosswalk repository

Change-Id: I5ddf18c2fafa15a2501f9ec1f7a08fd28df726fa
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Update README.md
Taeho Kim [Mon, 24 Nov 2014 14:38:37 +0000 (23:38 +0900)]
[Crosswalk] Update README.md

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

Change-Id: I75c911517b8b8531dba70b3ed283494246e5c8c8
Signed-off-by: Taeho Kim <th81.kim@samsung.com>
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Suppress linker warnings as errors.
Abhijeet Gopalrao Kandalkar [Wed, 3 Dec 2014 14:54:54 +0000 (06:54 -0800)]
[Crosswalk] Suppress linker warnings as errors.

Change-Id: I8c54a3fccda76c5ae81dcab01111e33ef46b4b47
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Define building_for_tizen_{mobile,tv} when building xwalk.
Antonio Gomes [Thu, 6 Nov 2014 17:46:56 +0000 (09:46 -0800)]
[Crosswalk] Define building_for_tizen_{mobile,tv} when building xwalk.

Change-Id: Id84b02cdd17bfdd66194453e8caf7a8d7e8efb2c
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
6 years ago[Crosswalk] Add extra EWK_BRINGUP guards for unsupported calls.
Antonio Gomes [Mon, 10 Nov 2014 04:03:15 +0000 (20:03 -0800)]
[Crosswalk] Add extra EWK_BRINGUP guards for unsupported calls.

Change-Id: I1a9392cdeb447d5709ea6f67572878f098589721
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>