Android: fix the computation of device orientation angles in accordance with spec.

Currently the alpha, beta, gamma device orientation angles are
computed incorrectly in Chrome. This patch provides an implementation
for the computation of these angles according to spec, see
http://dev.w3.org/geo/api/spec-source-orientation.html. In particular
the ranges for alpha [0,2*pi), beta [-pi,pi) and gamma [-pi/2,pi/2),
with clockwise-positive rotation conventions.

At present time most browsers implement the orientation angles
incorrectly. For example Safari, Firefox and Opera all provide
different and inconsitent results. The solution in this patch could
serve as a reference implementation.

BUG=244411

Review URL: https://codereview.chromium.org/40393002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232299 0039d316-1c4b-4281-b951-d872f2087c98
Augmenting logging class: Added stats and unit tests
logging -> logging_raw; removed logging_internal
Added logging_impl.

Review URL: https://codereview.chromium.org/41343004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232300 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 232300
Implement --ozone-platform flag to select OzonePlatform implementation at runtime

This provides a way to select an ozone implementation to use at runtime. Each
ozone implementation adds its name to the ozone_platforms GYP variable, and we
take care of parsing the flag value and configuring chromium to use that
implementation during initialization.

To support external ports, we generate the list of enabled platforms at
build time. The list is a static array that maps values of the --ozone_platform
flag to a constructor function for an OzonePlatform subclass. At runtime, we
call the constructor for platform specified on the command-line and use it to
provide implementations of the various ozone interfaces (SurfaceFactoryOzone,
EventFactoryOzone).

Review URL: https://codereview.chromium.org/44053005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232301 0039d316-1c4b-4281-b951-d872f2087c98
Send Allow{Database,FileSystem,IndexedDB} sync IPCs directly from worker thread

- To deprecate the notorious WorkerAllowMainThreadBridge & runInMode code in Blink
- To simplify the worker class inheritance chain

Blink-side change: https://codereview.chromium.org/50773002/

BUG=none

Review URL: https://codereview.chromium.org/46583005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232302 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 232301
SVN changes up to revision 232302