Ensure that the gpu process can run in the restricted sandbox for the XP presentation path.

To achieve this we have to allow access to named events created by the dwmapi.dll. This is achieved by
intercepting the CreateEventW/A/OpenEventW/A APIs and proxying them to the broker.

On Windows 8 we need to intercept the kernelbase.dll and kernel32 on previous operating system versions.

BUG=299047
R=cpu@chromium.org, rvargas@chromium.org, cpu, rvargas

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225811 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 225811
Fix screenshot size.
Not providing a maxWidth/maxHeight defaults GetUserMedia to a width of 640 pixels, making all our screenshots 640 pixels wide.
Specify a large upper limit to be able to take screenshots of the actual screen size. Not making this int_max to keep a sanity check on the screenshot size.

R=xiyuan@chromium.org
BUG=299289

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

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