chromeos: Don't report video while screen is locked.

Avoid reporting video activity to powerd while the screen is
locked.

BUG=338392

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247324 0039d316-1c4b-4281-b951-d872f2087c98
Pass MIME type parameter for EME WD 'needkey' on Android

Pass the MIME type of the media data so that it is available in the EME WD
'needkey' event.

BUG=224786

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247325 0039d316-1c4b-4281-b951-d872f2087c98
Fix setPatternPhase to work with squashed layers.

The computation for setPatternPhase does not work if the NSView renders
into the CALayer of an ancestor of the NSView. Change the computation
to look up through the NSView hierarchy for a view that has a layer, and
compute the new phase using the coordinate system of that layer.

This is updating a fix that was originally made in r206004 to support
the squashed layers enabled in r247098.

BUG=245900

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

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