Set media_perftests up for android and to be built by the perfbots.

BUG=310837

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235552 0039d316-1c4b-4281-b951-d872f2087c98
Android: Use Sensor.TYPE_ROTATION_VECTOR for Device Orientation.

Sensor.TYPE_ROTATION_VECTOR appears to yield much less noisy
orientation angles as compared to the old approach of using
a combination of Sensor.TYPE_MAGNETIC_FIELD and
Sensor.TYPE_ACCELEROMETER.

In addition to simplifying the code this change is also more
efficient as the callback into the browser is executed only
once per rotation vector change. Because of the reduced noise
Device Orientation also triggers an event much less frequently
when the device is not moving much.

BUG=223229,135984

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235553 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 235553
Fix more infinite loops in Android accessibility.

Clearly it was a mistake to call PlatformChildCount everywhere.
I guess we should only use that to implement platform functions
to walk the tree, and not internally.

BUG=314812,314376
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235554 0039d316-1c4b-4281-b951-d872f2087c98
Tab dragging: Call EndDrag() on ET_GESTURE_END to clear any state.
In https://codereview.chromium.org/31043009, I changed this code so that
EndDrag() is only called in ET_GESTURE_SCROLL_END due to capture issues.
However, since we call MaybeStartDrag() on ET_GESTURE_BEGIN, we need to
call EndDrag() on GESTURE_END to clear state because we may not get
SCROLL_END always.

BUG=314071

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

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