Cherry-pick "Dynamically enable spatial navigation based on events"

Bug: 11144676

Taken from already-landed chromium r230304

Original description:

As currently implemented spatial navigation and touch event handling
have some unexpected interactions (see bug link) so instead:
1/ make a better-guess initial value based on presence of touchscreen
2/ dynamically enable spatnav when a DPAD event is received, and disable
   it when touch down event received.

BUG=309425

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

Change-Id: I8ae9c798794e8f46f79c97b8f404def5146553ae
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230304 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed