[Tools] Remove some dead code from fetch_deps.py.
[Tools] fetch_deps: Call sys.exit() only at the very end.

Stop making main() sometimes just return a value and sometimes exit()ing
directly: standardize on calling sys.exit() with main()s return for
consistency and also to accommodate adding calls to more DepsFetcher
methods in the future.
[Tools] Add scm-remove-wrong-checkout.py.

This is a helper script intended to be invoked via "gclient recurse".
fetch_deps.py calls it automatically.

It is intended to remove a directory pointed to by a gclient entry when it
is supposed to be a git checkout but contains an svn one (and vice-versa).

The main idea is to prepare the ground for using our v8-crosswalk
repository: since V8 so far has been cloned from Google's SVN repository, if
we then switch to our git repository gclient sync will fail.
Merge pull request #1690 from rakuco/scm-checkout-verifier

[Tools] Add scm-remove-wrong-checkout.py.
DEPS.xwalk: Bring in v8-crosswalk.

Start tracking v8-crosswalk in src/v8. v8-crosswalk is a V8 fork along the
lines of chromium-crosswalk and blink-crosswalk. For now its main purpose is
to have all the SIMD.js optimizations some folks have been working on. Other
than that, it should be the usual V8 we all know.
[Tizen IVI] Enable the platform-specific application installation logic

This patch allows "InstallPackageOnTizen" calls for Tizen IVI, so that
the platform-specific application un/installation logic is enabled there
(e.g. "pkgcmd -l" lists the installed xwalk packages). However
"InstallPackageOnTizen" can work only with Shared Process Model
application installation code path due to user permissions problems
that are not fixed within non Shared Process Model code path.

Considering all above and considering also that we should always use
Shared Process Model on Tizen, it was decided to remove non Shared
Process Model application installation code.

BUG=https://crosswalk-project.org/jira/browse/XWALK-901
[Runtime] Add manifest handler for widget packaged applications.

The CL parses manifest keys required by JavaScript widget interface,
and save mapped key value pairs in ManifestData, so that it can be read
by widget extension.

We can also extend this CL to validate the widget configuration keys in
future.
[Tizen][Runtime] Implement Widget API.

This commit supports Widget API on Tizen(exclude 'preferences' attribute).
The API provides application programming interfaces that enables ability
to access some of the metadata declared in a widget's configuration
document, such as 'name', 'author', 'description'.

Spec:
http://www.w3.org/TR/widgets-apis/#the-widget-interface

The 'preferences' attribute implementation will be provided later.
Merge pull request #1699 from rakuco/pull-v8-crosswalk

DEPS.xwalk: Bring in v8-crosswalk.
[Tizen IVI] Run XWalk with title bar in windowed mode by default.

The following commit makes XWalk run in full screen mode by default
because many parts of the code guarded by OS_TIZEN_MOBILE macro
were included in Tizen IVI, but some code seem to be specific for
Tizen Mobile such as creating the root window and frameless window,
which should be excluded from Tizen IVI.

https://github.com/crosswalk-project/crosswalk/commit/459efb92ed7d39f7b9be0ee99235f9b7f9c28b0b
[Android] Make variable name consistent in generate_xwalk_core_library.py

It's mix using "dir", "directory" and "folder". Change all to
"dir" for consistency.
[SysApps][Android]Fix Issue: Error callback isn't triggered without SIM card.

When there is no SIM card, the onSmsSend put a error message and return. Thus,
the JS error callback won't be invoked. Simply removing the return will
resolve the issue, the error will be handled in MessagingReceiver and
send back to JS end.

BUG=XWALK-940
Merge pull request #1696 from wang16/use_dir

[Android] Make variable name consistent in generate_xwalk_core_library.p...
[Android] File picker can't work on Android OS

This is a regression issue when chromium-crosswalk rebased to 34.
In Chromium 34, showCancelableIntent function is implemented in ActivityWindowAndroid.
When context is a Activity, we need a ActivityWindowAndroid instance instead of
WindowAndroid.

BUG=https://crosswalk-project.org/jira/browse/XWALK-1086
Merge pull request #1686 from shawngao5/XWALK-940-1

[SysApps][Android] Fix Issue: Error callback isn't triggered without SIM card.
[Android][Extension] Fix that crosswalk crashes by can't create jni local ref

It's caused by android extension never release the jstring as
the message posted to Java side.

Fixed it by using ScopedJavaLocalRef for the jstring.

BUG=XWALK-1189
Merge pull request #1698 from pozdnyakov/app_installation_on_tizen

[Tizen IVI] Enable the platform-specific application installation logic
Merge pull request #1684 from shaochangbin/widget_handler

[Tizen][Runtime] Implement Widget API.
Merge pull request #1674 from joone/run_xwalk_windowed_mode

[Tizen IVI] Run XWalk with title bar in windowed mode by default.
[Tizen][Runtime] Enable WGT CSP support.

The WGT CSP support is disabled by the PR#1593: Separate WGT
applications manifest handling from XPK applications. And this should be
enabled again by adding a CSP handler into the WGT manifest parser.