Disable overscroll navigation when emulating touch.

When emulating another device in DevTools (including touch),
overscroll navigation is confusing for the user:
- if device does not support touch, user is not used
to the overscroll navigation and may be surprised;
- with content not filling the whole view, overscroll navigation
looks unnatural.

BUG=369938

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276019 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 5aeb88b..266ed472 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -506,6 +506,7 @@
   virtual bool HandleGestureEvent(
       const blink::WebGestureEvent& event) OVERRIDE;
   virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) OVERRIDE;
+  virtual void OnTouchEmulationEnabled(bool enabled) OVERRIDE;
 #if defined(OS_WIN)
   virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE;
 #endif
@@ -1122,6 +1123,9 @@
   // different process from its parent page.
   bool is_subframe_;
 
+  // Whether touch emulation is enabled in RenderWidgetHost.
+  bool touch_emulation_enabled_;
+
   // Whether the last JavaScript dialog shown was suppressed. Used for testing.
   bool last_dialog_suppressed_;