Gallery: Clean the code related with cropping.

This is a preparation for crbug.com/127120 .

* Add missing ';'.
* Add missing comments.
* Simpify the internal structure of DraggableRect#getDragHandler method.

BUG=127120
TEST=manually

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279310 0039d316-1c4b-4281-b951-d872f2087c98
Skia roll f22b6b5:6fc763e

https://skia.googlesource.com/skia/+log/f22b6b5883943d7127cd3f77fed822fa65642f1a..6fc763e3c2b1e539510cb18ece8b97e183099ab1

CQ_EXTRA_TRYBOTS=tryserver.chromium:linux_layout_rel
TBR=rmistry@google.com
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279311 0039d316-1c4b-4281-b951-d872f2087c98
athena: Show network and battery status in the UI.

The status of network and battery is displayed in a text-only view in
this patch at the top-right corner of the screen.

BUG=387202, 387204
R=oshima@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279312 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279313 0039d316-1c4b-4281-b951-d872f2087c98
For some reason, mac bisect bots were not flushing stdout periodically, as a result buildbot command was getting timed-out.

BUG=
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279314 0039d316-1c4b-4281-b951-d872f2087c98
Defined capturePixelsAsyncThen to return RGBA data, and fixed byte ordering.

Added clearPrinting() to allow printing tests which use
capturePixelsAsyncThen to produce reasonable text output.

BUG=387298

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279315 0039d316-1c4b-4281-b951-d872f2087c98
Implement NativeViewHostAura::InstallClip.

Despite the NOTIMPLEMENTED comment saying that this method is only
needed for performance, it causes bugs with aura windows in side
Bubbles which need to clip to their parent view rather than the parent
window.

This CL is based on https://codereview.chromium.org/30993004/ but strips
out the gravity code and simplifies the windowing code.

Since the window hierarchy of NPAPI plugins has changed due to this
patch, it was also necessary to modify WebContentsViewAura to reflect
this change.

BUG=377378

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279051

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279316 0039d316-1c4b-4281-b951-d872f2087c98
Files.app: Refocus to the list after canceling rename of a file/folder

The previous patch (r277384) has fixed in the case of success of renaming. This patch also fixes the case of canceling rename.

BUG=383234
TEST=manually tested

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279317 0039d316-1c4b-4281-b951-d872f2087c98
Adds properties that configure filtering what patches trigger compile/test

Two new keys:
gtest_tests_filter_exclusions: If any of the patchs in the patch match
any of these regexs then we don't check dependencies and trigger a
compile.

filter_builders: list of builders that will run this code.

BUG=383609
TEST=none
R=darin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279318 0039d316-1c4b-4281-b951-d872f2087c98
Document wildcards for file handler MIME types and file extensions.

Re-applying SVN r206985, which was inadvertently lost in a refactor.

BUG=249193
BUG=387515
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279319 0039d316-1c4b-4281-b951-d872f2087c98
x509_certificate_model_openssl: implement GetExtensions

BUG=338887

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279320 0039d316-1c4b-4281-b951-d872f2087c98
TELEMETRY: Don't always fail test when forcing CPUs fails.

When enabling CPU cores for high-perf mode, only warn the
user rather than failing. Only --profiler=perf needs to
fail, since it's results would be invalid (vs. just noisy).

Also, kernel_max returns the number of CPU's supported by
the kernel, but the device may have less cores in practice 
(eg. Moto X/Moto E have kernel_max = 4). This uses the cpu*
files to determine the actual number of cores on the device.

BUG=383566

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279321 0039d316-1c4b-4281-b951-d872f2087c98
Http cache: Implement a timeout for the cache lock.

The cache has a single writer / multiple reader lock to avoid downloading the
same resource n times. However, it is possible to block many tabs on the same
resource, for instance behind an auth dialog.

This CL implements a 20 seconds timeout so that the scenario described in the
bug results in multiple authentication dialogs (one per blocked tab) so the
user can know what to do. It will also help with other cases when the single
writer blocks for a long time.

The timeout is somewhat arbitrary but it should allow medium size resources
to be downloaded before starting another request for the same item. The general
solution of detecting progress and allow readers to start before the writer
finishes should be implemented on another CL.

BUG=6697, 46104

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279326 0039d316-1c4b-4281-b951-d872f2087c98
Introduce buffering state change callback to Pipeline.

This is the next step after r269828 to communicate changes in buffering
state to clients. The most notable difference is that a seek completion
callback no longer indicates that prerolling has also completed. Instead
clients must listen for a buffering state change callback.

BUG=144683

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279329 0039d316-1c4b-4281-b951-d872f2087c98
Remove base/platform_file.*

Fix remaining users of platform_file.h

BUG=322664
R=brettw@chromium.org
TBR=thestig@chromium.org, satorux@chromium.org, jochen@chromium.org, rockot@chromium.org, viettrungluu@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279330 0039d316-1c4b-4281-b951-d872f2087c98
Fix chromevox_tests that depend on actual message strings.

The JSON messages generated by grit violate some assumptions made by the
test messages implementation which was written based on the previous upstream
ChromeVox messages.  these differences don't matter for for the chrome.i18n
APIs, so we adjust the test messages implementation.

BUG=371692
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279334 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Add dummy session storage implementation.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279335 0039d316-1c4b-4281-b951-d872f2087c98
Shorten SharedOptionsTest.ScreenLockPreference.

The test times out sometimes. This removes some tests that aren't
super-important, cutting the number of settings page reloads in half.
On my machine it only saves around 16% of time but that might be enough
given that the test doesn't fail very often.

BUG=386870
TBR=nkostylev@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279336 0039d316-1c4b-4281-b951-d872f2087c98
Add a customizable label to the Views LabelExample.

Add a custom label and various related controls.
Remove the faded label (it can be easily replicated).
Reduce the preferred sizes to allow tighter wrapping.
Reorder the obscured password label for polish.

This helps testing of my Label rewrite CL:
https://codereview.chromium.org/23228004/

Makes the Label Example similar to the Text Styles example.
(Labels should replace most/all Canvas::DrawString* calls)

See before/after pics at http://crbug.com/125348#c9

BUG=125348,240037
TEST=Views Examples demonstrates more complete Label functionality.
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279338 0039d316-1c4b-4281-b951-d872f2087c98
Fix VP9 playback for videos with odd width/height.

Fixed two issues:
 1. VPX decoder uses VideoFrame::WrapExternalYuvData() which was
    returning NULL for odd-sized frames and the decoded wasn't handling
    this correctly. Fixed WrapExternalYuvData() methods to ensure that
    result is never NULL, except the cases when it's necessary and
    callers check result.
 2. FFMpeg demuxer was using incorrect size for VP9 streams (this bug
    didn't affect MediaSource).

Also fixed VideoFrame::CreateFrame() to never return NULL to avoid 
problems like (1), because most callers don't expect NULL.

Test video for the new test has been landed in r279187.

BUG=387272

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279342 0039d316-1c4b-4281-b951-d872f2087c98