ozone: Use gfx::Display size for touch scaling

The old default causes weird scaling on the Chromebook Pixel. Try to use
the display size to set the scale.

TEST=content_shell with embedded=1 on pixel
TBR=rjkroege

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251075 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251075
Change  mojo demo apps to use Application.

BUG=None
R=darin@chromium.org, ben

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251076 0039d316-1c4b-4281-b951-d872f2087c98
Mojo: Rename public/tests/test_support.* -> test_utils.*.

I'm planning on reusing the name test_support for something slightly
different: a dynamic library that can thunk to an implementation
provided by the test runner (much like we do for system and gles2). This
is so we can remove public/tests's base dependency (by injecting it
instead).

R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251077 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251077
Code refactor(rename email to user_id in wallpaper_manager.*)

BUG=NONE

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251078 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251078
Add basic coalescing behavior to the permission bubble manager.

The manager will now wait 400ms after it receives both a request and its view
before showing a bubble.  This allows permissions that are requested
quickly in sequence to be shown together, in only one bubble.  Permission
requests that occur when there is already a bubble visible are queued and not
shown until the current bubble disappears.

This simple wait period is probably simpler than the final design, but is a
good stepping stone toward a better algorithm.

BUG=None

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251079 0039d316-1c4b-4281-b951-d872f2087c98
Check for GN args using the union of all rather than individually.

Previously we would check for unused args on a per-build basis. In the GYP build we run the build multiple times, and not all args might be declared in all types of builds. For example, clang args would only be relevant for clang builds, which might only be in the host GYP build.

Makes unused args errors nonfatal. This was coming up a lot in benign cases. It's important to notify people about unused arguments, but it's not critical to block progress on this problem.

R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251080 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251080
Fix the Mac status bubble.

This partially reverts the "cleanup" of r250260. The "cleaner" version is not equivalent if the call to -[NSWindow animations] returns nil.

BUG=none
TEST=no change

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251082 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251082
Add support for sub-architecture when building for iOS

Since iOS 7, the iPhone 5s, the iPad Air and the iPad Mini Retina
supports 64-bits binaries. This requires building a fat binary with
support for both armv7 and arm64 (and optionally armv7s).

In an effort to prepare building such a fat binary for Chrome on
iOS, introduce a "target_subarch" variable that control the variant
we want to build (32-bit only, 64-bit only -- mainly for debugging,
fat binary).

This require introducing way to use the clang compiler shipped with
Xcode, as the clang compiler shipped with Chromium code does not
support "arm64" architecture yet (Apple has not yet opensource the
implementation).

BUG=341453, 314720
R=mark@chromium.org

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

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

This CL add the following tests:
1. test chrome.setWallpaper can set ChromeOS wallpaper from jpg or png formatted arraybuffer.
2. test chrome.setWallpaper can set ChromeOS wallpaper from a valid url that point to a jpg or png image.
3. test an invalide URL wont set wallpaper
4. test a new wallpaper request will cancel previous unfinished request


BUG=176183

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251087 0039d316-1c4b-4281-b951-d872f2087c98
Fix race condition on kiosk app launch.

The previous code would fail for the case of the app window already
present before the observer gets registered.

BUG=chromium:343540

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251088 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 251087
SVN changes up to revision 251088
Revert 250823 "With --site-per-process, avoid a crash when a sub..."

Speculative revert to see if the navigation changes here are causing
sync_integration_tests to fail on:

http://build.chromium.org/p/chromium.win/builders/Win7%20Sync%20x64/builds/11217

> With --site-per-process, avoid a crash when a subframe process goes away.
> 
> We need to clear out the children of any nodes that are affected by the
> crash, not the entire FrameTree.
> 
> BUG=338508
> TEST=Killing an iframe process with --site-per-process shows a green rectangle.
> R=ajwong@chromium.org, nasko@chromium.org
> 
> Review URL: https://codereview.chromium.org/156303004

TBR=creis@chromium.org

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

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