Revert 234734 "Allowing file:/// in Instant Extended's Most Visi..."

That CL broke logging which Most Visited tiles were clicked since the <a ping="..."> param is now being ignored. Please contact me before you work on a CL to put that back into place, since there are plans to rely on that ping parameter for other purposes.

> Allowing file:/// in Instant Extended's Most Visited links.
> 
> BUG=306137
> 
> Review URL: https://codereview.chromium.org/36073011

TBR=pedrosimonetti@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237637 0039d316-1c4b-4281-b951-d872f2087c98
Build liblouis_nacl using gyp.

This cl ports the nacl wrapper to the chromium build system and adds local modifications from Chromevox to liblouis. The native library and braille tables are copied to the location in the resources output directory where chromevox can pick them up.

BUG=316353

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237638 0039d316-1c4b-4281-b951-d872f2087c98
[chromedriver] Avoid exception by using iswcntrl instead of std::iscntrl on windows.
BUG=chromedriver:405
NOTRY=true

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

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

Added a wait and assert to make sure that the node bounds are not 0 before
clicking on it.

BUG=315548
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237640 0039d316-1c4b-4281-b951-d872f2087c98
Add 2-finger swipe gesture for mouse-wheel in Chromoting Android client.

Since a two-finger gesture is also used for scaling, this adds some code
to disambiguate the two gestures.

R=jamiewalch@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237641 0039d316-1c4b-4281-b951-d872f2087c98
Move Posix file utils to the base namespace.

BUG=
R=rvargas@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237642 0039d316-1c4b-4281-b951-d872f2087c98
InternetOptionsHandler: Show "View Account" button as long as there is an OLP.

InternetOptionsHandler conditionally enables the "View Account" button based on
an entry in MobileConfig corresponding to the currently registered carrier. The
button should be shown regardless, if an online payment URL was provided by
shill for the current carrier.

BUG=323579
R=stevenjb@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237644 0039d316-1c4b-4281-b951-d872f2087c98
Fix memory leak in DesktopCaptureDeviceAshTest on Linux Chromium OS ASAN.

The aura::test::TestWindowDelegate should be held in a scoped_ptr.

TBR=hshi@chromium.org
TEST=run content_unittests locally.
BUG=

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237645 0039d316-1c4b-4281-b951-d872f2087c98
Ensure that the OSK on Windows 8 shows up when we tap on an editable field in any WebContents.

The current implementation was displaying the OSK only when we tapped on a WebContents hosted by a Browser window. This
relied on the ChromeRenderViewObserver object in the renderer sending an IPC message ChromeViewHostMsg_FocusedNodeTouched
which is handled by the Chrome browser code via a WebContentsObserver implementation.

Based on discussions with jam and comments from avi in the review, we decided to implement this functionality in content.

Fixes are as below:-
1. We have a new IPc message ViewHostMsg_FocusedNodeTouched which is defined in the view_messages.h file.
2. This IPC is sent by the RenderViewImpl::didHandleGestureEvent method if we tapped on an editable field.
3, This IPC is handled by the RenderViewHostImpl class. We display the OSK on Windows 8 Aura if a focused editable
   node was tapped.
4. The ChromeViewHostMsg_FocusedNodeTouched IPC has been deleted along with the didHandleGestureEvent method in the
   RenderViewObserver interface.

BUG=321576, 319219
R=jam@chromium.org, palmer@chromium.org, jam
TBR=jschuh

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237646 0039d316-1c4b-4281-b951-d872f2087c98
[Mojo] Remove static "bootstrap" state in mojo_js

This CL removes the static static in boostrap.cc that we used to transfer the
initial handle from C++ into JavaScript. Rather that storing the initial handle
in static state and evaling some script to kick off the loading process, we now
use an API to load a module by name and then pass the initial handle to the
function defined by that module.

This CL paves the say for adding threading support to mojo_js. The previous
static approach didn't scale to multiple threads, but the approach in this CL
does. I'll actually add the API to create a thread in the next CL.

R=aa@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237647 0039d316-1c4b-4281-b951-d872f2087c98
fix +x on liblouis_list_tables.py

TBR=plundblad@chromium.org,chrisgao@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237648 0039d316-1c4b-4281-b951-d872f2087c98
Revert 237645 "Fix memory leak in DesktopCaptureDeviceAshTest on..."

DesktopCaptureApiTest.ChooseDesktopMedia still failing.

> Fix memory leak in DesktopCaptureDeviceAshTest on Linux Chromium OS ASAN.
> 
> The aura::test::TestWindowDelegate should be held in a scoped_ptr.
> 
> TBR=hshi@chromium.org
> TEST=run content_unittests locally.
> BUG=
> 
> Review URL: https://codereview.chromium.org/93123002

TBR=hshi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237652 0039d316-1c4b-4281-b951-d872f2087c98
Revert 237634 "Implement DesktopCaptureDeviceAsh based on CopyOu..."

DesktopCaptureApiTest.ChooseDesktopMedia still failing.

> Implement DesktopCaptureDeviceAsh based on CopyOutputRequest.
> 
> The new implementation captures the Ash desktop by
> issuing CopyOutputRequest on the layer associated with the root window
> of the desktop.
> 
> Desktop capture using this path is only feasible on Ash at this
> moment, where the aura root window corresponds to the entire desktop.
> On other platforms the aura root window is mapped to a native window.
> 
> Refactor WebContentsVideoCaptureDevice::Impl and share the class
> ThreadSafeCaptureOracle between web contents capture and desktop capture.
> 
> The existing X11 desktop capture path is inefficient especially on ARM
> devices. This CL leverages hardware-accelerated copy and encoding to
> achieve performance on par with tab capture.
> 
> Measured desktop capture frame rate on daisy:
> Before this CL: 6~7 fps
> After this CL: 18~23 fps depending on content
> 
> BUG=310372
> TEST=trybots, verify tab/screen capture locally on devices
> R=creis@chromium.org, sergeyu@chromium.org
> 
> Review URL: https://codereview.chromium.org/64383006

TBR=hshi@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237653 0039d316-1c4b-4281-b951-d872f2087c98
Base: Copy platform_file.* to files/file.*

This is just copying some files without adding them to any gyp
file. It looks like there is no value for git similarity that can
make https://codereview.chromium.org/82963004/ figure out where all
code comes from, so this CL is meant to provide the proper baseline.

BUG=322664
TBR=brettw@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237654 0039d316-1c4b-4281-b951-d872f2087c98
[Mojo] Draw GL from within sample_app

This CL replaces hello_world_service with native_viewport in mojo_shell and
sample_app. After this CL, we're able to draw GL from within sample_app.
However, we're still using a bit of a hack to transfer the GL interface to the
sample_app.

R=aa@chromium.org
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237659 0039d316-1c4b-4281-b951-d872f2087c98
Revert 237558 "Use MIDIMessageQueue/IsValidWebMIDIData for MIDI ..."

Seems to have caused issues running perf tests.

BUG=324160

> Use MIDIMessageQueue/IsValidWebMIDIData for MIDI byte stream validation
> 
> WebMIDI spec draft: http://www.w3.org/TR/webmidi/ 
> 
> WebMIDI API guarantees that MIDIInput::onmessage is called back with a single MIDI message. To guarantee this, this CL introduces MIDIMessageQueue class, which allows you to
> - maintain fragmented MIDI message.
> - Skip any invalid data sequence.
> - Reorder MIDI messages so that "System Real Time Message", which can be inserted at any point of the byte stream, can be placed at the boundary of complete MIDI messages.
> - (Optional) Reconstruct complete MIDI messages from data stream that is compressed with "running status".
> 
> This CL also replaces existing System Exclusive message validation logic in MIDIHost::OnSendData with MIDIHost::IsValidWebMIDIData, which can detect SysEx message even when it is concatenated with non-SysEx messages.
> 
> With this change, renderer/blink can be much simpler and free from this kind of data validation.
> 
> BUG=303599, 317355
> TEST=media_unittests --gtest_filter=MIDI*, content_unittests --gtest_filter=MIDI*
> 
> Review URL: https://codereview.chromium.org/68353002

TBR=yukawa@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237660 0039d316-1c4b-4281-b951-d872f2087c98
Implemented failIfMajorPerformanceCaveat WebGL context creation attribute.

Currently only fails if using swiftshader.

BUG=319965
R=kbr@chromium.org, piman@chromium.org, zmo@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237661 0039d316-1c4b-4281-b951-d872f2087c98
fix mini_installer_sygyzy for msvs_cygwin_shell

BUG=123026
TBR=iannucci@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237662 0039d316-1c4b-4281-b951-d872f2087c98
Implement the It2Me native messaging host.

1. Implemented It2MeNativeMessagingHost and its unit test.
2. It2MeHost now stores only a raw pointer to the host context object whose lifetime is managed by the creator of the it2me host (NPAPI plugin or it2me native messaging host).
3. The native messaging channel now stores the send_message callback instead of getting it from the caller every time a message is received.
4. The native messaging channel no longer tracks the number of pending requests.

BUG=309844

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237665 0039d316-1c4b-4281-b951-d872f2087c98
Leave fullscreen mode in an app window when ESC key is pressed.

A few things might need to be discussed like the ability for an app to prevent
the default behaviour and letting the user know about the ability to leave the
fullscreen mode using ESC.

BUG=320487

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

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

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