[PATCH] fixed xwalk rewritting --use-gl option

Previously if user specified --use-gl option, it was ignored.

Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@globallogic.com>
Packaging: re-enable XDG_Shell for Tizen
The Weston has been upgraded to 1.5 and XDG_Shell basics for Weston 1.5 have been in oz-wl.
So we think it's time to re-enable it now. Meanwhile some related issues are under fixing. More changes will come in.
[Android] Add test cases for XWalkJavascriptResult.

This patch is to add test cases for the interfaces in
XWalkJavascriptResultInternal.java.
[Android] Fix that getBridge() method will be in javadoc

getBridge() is for internal to use, should not be public.
Update the generator script.
[Android] Embedding API 3.0: XWalkPreferences

Add following APIs:
public static final String JAVASCRIPT_CAN_OPEN_WINDOW;
public static final String ALLOW_UNIVERSAL_ACCESS_FROM_FILE;
public static final String SUPPORT_MULTIPLE_WINDOWS
public static void setValue(String key, String value);
public static void setValue(String key, int value);
public static boolean getBooleanValue(String key);
public static String getStringValue(String key);
public static int getIntegerValue(String key);

Deprecated API:
public static boolean getValue(String key);

BUG=https://crosswalk-project.org/jira/browse/XWALK-2376
[Android] Enable the feature for onRequestFocus.

This patch is to enable the feature for onRequestFocus().
Call onRequestFocus() in activateContents().
[Android] Add test case for onRequestFocus.

This patch is to add test case for OnRequestFocus().
Move to Chromium 38.0.2125.34, the first M38 beta release.

As usual, SIMD support in V8 is disabled while the v8-crosswalk folks
rebase their code.

One important point: on Linux builds, Chromium will now default to using
its bundled clang copy instead of the system's GCC, and Ubuntu 12.04's
GCC is now too old to build the code (at least 4.8.0 is required). Use
of clang can be disabled by passing -Dclang=0 to gyp.

Relevant, non-extensive list of Chromium CLs which required us to adapt
our code:

  * https://codereview.chromium.org/213583003
  * https://codereview.chromium.org/273223002
  * https://codereview.chromium.org/321423002
  * https://codereview.chromium.org/338373002
  * https://codereview.chromium.org/344493002
  * https://codereview.chromium.org/356713005
  * https://codereview.chromium.org/364123002
  * https://codereview.chromium.org/369703002
  * https://codereview.chromium.org/373623002
  * https://codereview.chromium.org/381113004
  * https://codereview.chromium.org/382143005
  * https://codereview.chromium.org/393653002
  * https://codereview.chromium.org/397243004
  * https://codereview.chromium.org/398243002
  * https://codereview.chromium.org/398503002
  * https://codereview.chromium.org/398873004
  * https://codereview.chromium.org/405633002
  * https://codereview.chromium.org/411283002
  * https://codereview.chromium.org/415423002
  * https://codereview.chromium.org/421613002
  * https://codereview.chromium.org/425653002
  * https://codereview.chromium.org/432553003

Relevant intermediate commit messages from intermediate commits in our
next branch:

[Android] Aligh with new java targets' classes_dir

Chromium has changed java targets' classes_dir to
<intermediate>/classes/2.
It impacts xwalk_native_libraries_java and
xwalk_core_library_java in crosswalk. Changes the
classes_dir of these two targets accordingly.

In addition, use dependent settings of gyp to sync variables
between targets instead of hardcode to avoid similar issues in
future.

--

Gardening M38: Remove classes_dir in gyp files

Upstream removes classes_dir in java.gypi and java_apk.gypi.
Previously, crosswalk relies on it to create xwalk_core_library
and xwalk_runtime_embedded.
For xwalk_core_library, use javac_jar_path instead of classes_dir.
For xwalk_runtime_embedded, the target is not used any more
after xwalk_app_template switch to use xwalk_core_library,
just removed it.

--

Gardening M38: Remove classes_dir in gyp files

Upstream removes classes_dir in java.gypi and java_apk.gypi.
Previously, crosswalk relies on it to create xwalk_core_library
and xwalk_runtime_embedded.
For xwalk_core_library, use javac_jar_path instead of classes_dir.
For xwalk_runtime_embedded, the target is not used any more
after xwalk_app_template switch to use xwalk_core_library,
just removed it.

--

Re-enable WebRTC support on Tizen.

Temporarily roll WebRTC's revision manually from c1696da to cdc3123:
cdc3123 Rename linuxwindowpicker to x11windowpicker & only use it with
        use_x11
ee3ec04 common_audio/signal_processing: Remove macro
        WEBRTC_SPL_UMUL_32_16_RSFT16

cdc3123 is required to fix XWALK-2160 and re-enable WebRTC support, as
libjingle now forces a dependency on the webrtc_base target which was
causing the Tizen build to fail even with -Ddisable_webrtc=1.

See https://code.google.com/p/webrtc/issues/detail?id=3625 and
XWALK-2160.

--

gyp_xwalk: Sync with M38's gyp_chromium.

Sync the script with Chromium commits r279309, r286307, r286632,
r288360, r289094, r289099, r289158, r289546 and r289699.

Most of the changes are related to supporting the --analyzer option and
moving the handling of landmines to a separate file.

--

BUG=XWALK-2160
BUG=XWALK-2431
Merge pull request #2379 from rakuco/next

Move to Chromium 38.0.2125.34, the first M38 beta release.
[Android] Add support of getting mime type for app url scheme.

This patch is to add support of getting mime type for app url scheme.
As crosswalk supports app scheme and the local path in "iframe" was
loaded with "app://", so add conditional to get the related mime type.
The app scheme was removed in commit
12b98a890de27d1ec96eb7f10558010fc7412e58.

BUG=XWALK-2300, XWALK-2301
[Android] Add onStart and onStop to XWalkExtensionClient

Added the onStart() and onStop() method in XWalkExtensionClient,
and also added these two functions in the related classes to
make it work for XWalkExtensionClient. Now extension developer
can override the onStart() and onStop() when the activity's
onStart() and onStop() get triggered.

BUG=XWALK-1708
Merge pull request #2383 from wuhengzhi/backgroud_with_no_instrinsic_size

[Android] Add support of getting mime type for app url scheme.
Merge pull request #2353 from wang16/reflection_layer

[Android] Fix that getBridge() method will be in javadoc
Merge pull request #2372 from jondong/onStart

[Android] Add onStart and onStop to XWalkExtensionClient
[Runtime] Add "-c" option for xwalkctl for restarting aborted install/update tasks.

Crosswalk runtime should have a mechanism to restart the aborted install or
update tasks which are stopped by accident like power off. This patch related to
bug: https://crosswalk-project.org/jira/browse/XWALK-1565

How to use:
========
$ xwalkctl --continue
Merge pull request #2341 from wuhengzhi/xwalk_js_result_test

[Android] Add test cases for XWalkJavascriptResult.
Merge pull request #2375 from takethathe/restart_task

[Runtime] Add "-c" option for xwalkctl for restarting aborted install/update tasks
Multi user features :

->Use Usr App related fonctions instead of Global App related Functions
->Manage properly icon path for each user

BUG=XWALK-2249

Change-Id: I5be59d0264aed84f708273b58061c8834dd63404
Signed-off-by: Sabera Djelti (sdi2) <sabera.djelti@open.eurogiciel.org>
Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Merge pull request #2298 from eurogiciel-oss/multiuser_xwalk_2249

Multi user features :
Merge pull request #2354 from wang16/embedding_api_3

[Android] Embedding API 3.0: XWalkPreferences