[Android] Clear FLAG_FORCE_NOT_FULLSCREEN when entering fullscreen

The FLAG_FORCE_NOT_FULLSCREEN flag of Android Window will force the
Android system to show status bar, even with SYSTEM_UI_FLAG_FULLSCREEN
set in SystemUIVisibility.

Record whether the FLAG_FORCE_NOT_FULLSCREEN is set before entering
fullscreen and clear it if so. Add the flag back if necessary when
exiting fullscreen.

BUG=https://crosswalk-project.org/jira/browse/XWALK-2150
[Android] Add test case for onReceivedErrorTest().

This patch is to add test case for onReceivedErrorTest().
Open some urls with error format, the resource client will receive
the related error. Verify the error information with the expected
result.
[Extensions] Check validation of XWalkExtensionInstance before binding callbacks.

There is race condition that sometimes CreateInstance() return invalid
XWalkExtensionInstance.

So far, this crash does not happen on any C++ extensions or Android
extension tests. Only happens on CordovaTests apk. And worse and worse
when loadUrl calling times increased.

Meanwhile, the Android speicific function RegisterExtension() and
UnregisterExtension() are removed from xwalk_browser_main_parts.h

BUG=https://crosswalk-project.org/jira/browse/XWALK-1688
[Android] make_apk: Print an error message _before_ exiting.

Fix the order of the print() and sys.exit() calls so that the error
message is actually printed before the program exits.
[Runtime] Disable extensions api for external web page.

We should only enable extension js api for frame which with
app scheme or file scheme.

BUG=XWALK-2153
Merge pull request #2224 from rakuco/fix-exit-print-order

[Android] make_apk: Print an error message _before_ exiting.
Merge pull request #2220 from wang16/full_screen

[Android] Clear FLAG_FORCE_NOT_FULLSCREEN when entering fullscreen
Merge pull request #2212 from wuhengzhi/onReceivedLoadError_test

[Android] Add test case for onReceivedErrorTest().
Merge pull request #2221 from CooderIan/disable_api

[Runtime] Disable extensions api for external web page.
Fix Application Type in app_info.db

Currently in app_info.db the widget are typed as rpm not widget.

Signed-off-by: Baptiste DURAND <baptiste.durand@open.eurogiciel.org>
Move to M37.0.2062.20

- Skip SIMD command line for now.
- sync gyp_xwalk with gyp_chromium (r274762).
- Fixed the code for the Geolocation. Just like in M36 the delegate
has been refactored. It's now not a separate class to inherit from
but a regular object to instanciate. On other platforms than Tizen and Android
we need to make sure we return with the callback otherwise it hangs waiting for a reply.
As we do not support this on desktop we can just early return false.
- Fix 'screen' property not being replaced in a test : Blink commit 5fdac279
made the 'screen' property non-replaceable, so the only way to overwrite it
now is using v8tools utility to force.
- [Android] Strings now are generated differently through a dedicated GYP target.
- DEPS.xwalk: Start tracking Ozone-Wayland's Milestone-Summer branch.
- [Android] Fix resource packaging : In upstream the resource processing changed a
lot.
-[Tizen] Temporarily disable ALSA support : https://codereview.chromium.org/264973012 introduces a dependency on
ALSA's sequencing interface, which is currently disabled on Tizen.
- [Tizen] Add a patch for angle specific to Tizen to skip the .git/index dependency wrongly added. Fixed upstream
already http://code.google.com/p/chromium/issues/detail?id=395705
[Tizen] Temporarily disable WebRTC support (XWALK-2160)
Merge pull request #2228 from darktears/land-m37

Move to M37.0.2062.20
Increase Chromium version to 37.
[Android] 'WARNING: app.launch.local_path is deprecated for Crosswalk' should not be shown twice

BUG=https://crosswalk-project.org/jira/browse/XWALK-2118
Merge pull request #2222 from halton/validate_instance

[Extensions] Check validation of XWalkExtensionInstance before binding callbacks
Merge pull request #2225 from Harry110/PR2118

[Android]'WARNING: app.launch.local_path is deprecated for Crosswalk' sh...
Revert "[Runtime] Disable extensions api for external web page."

It broke several Android device tests:

* org.xwalk.runtime.client.test.DeviceCapabilitiesTest#testDeviceCapabilities
* org.xwalk.runtime.client.test.ExternalExtensionTest#testExternalExtensionAsync
* org.xwalk.runtime.client.test.PresentationTest#testPresentationDisplayAvailable
* org.xwalk.runtime.client.test.ExternalExtensionTest#testExternalExtensionSync

* org.xwalk.runtime.client.embedded.test.PresentationTest#testPresentationDisplayAvailable
* org.xwalk.runtime.client.embedded.test.ExternalExtensionTest#testExternalExtensionAsync
* org.xwalk.runtime.client.embedded.test.DeviceCapabilitiesTest#testDeviceCapabilities
* org.xwalk.runtime.client.embedded.test.ExternalExtensionTest#testExternalExtensionSync

* org.xwalk.core.xwview.test.ExtensionEchoTest#testSync
* org.xwalk.core.xwview.test.LoadTest#testContentUrl
* org.xwalk.core.xwview.test.ExtensionEchoTest#testMultiFrames
* org.xwalk.core.xwview.test.ShouldInterceptLoadRequestTest#testNotCalledForExistingContentUrl
* org.xwalk.core.xwview.test.ExtensionEchoTest#testAsync

* org.xwalk.core.internal.xwview.test.ExtensionEchoInternalTest#testAsync
* org.xwalk.core.internal.xwview.test.ExtensionEchoInternalTest#testSync
* org.xwalk.core.internal.xwview.test.ExtensionBroadcastInternalTest#test
* org.xwalk.core.internal.xwview.test.ExtensionEchoInternalTest#testMultiFrames
* org.xwalk.core.internal.xwview.test.LoadTest#testContentUrl

This reverts commit 08afec43d74cfa2b586b7297bb7fe60543552bf6.
Merge pull request #2234 from rakuco/revert-2221

Revert "[Runtime] Disable extensions api for external web page."
Merge pull request #2233 from eurogiciel-oss/Fix_Application_Type

Fix Application Type in app_info.db
DEPS.xwalk: Roll chromium-crosswalk (e60998d -> 945fe6f).

945fe6f Merge pull request #179 from rakuco/fix-indentation-in-adb-install-apk
1e1c8aa [Temp][Android] Fix 8c2a8abc.

This fixes the Android devices tests, which were not being updated due
to a syntax error in the adb_install_apk.py script caused by the M37
rebase.