Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 474213002: DevTools: control touch emulation from the browser side only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Making win bot happy. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 1452632488a4749731baa2b54cc6a59c1832112d..922829cfb74239d69953ad80bc5301ab5154648e 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -540,7 +540,6 @@ class CONTENT_EXPORT WebContentsImpl
virtual bool HandleGestureEvent(
const blink::WebGestureEvent& event) OVERRIDE;
virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) OVERRIDE;
- virtual void OnTouchEmulationEnabled(bool enabled) OVERRIDE;
virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager()
OVERRIDE;
virtual BrowserAccessibilityManager*
@@ -667,6 +666,9 @@ class CONTENT_EXPORT WebContentsImpl
// immediately at first response).
void ResumeResponseDeferredAtStart();
+ // Forces overscroll to be disabled (used by touch emulation).
+ void SetForceDisableOverscrollContent(bool force_disable);
+
private:
friend class TestNavigationObserver;
friend class WebContentsAddedObserver;
@@ -1182,8 +1184,8 @@ class CONTENT_EXPORT WebContentsImpl
// different process from its parent page.
bool is_subframe_;
- // Whether touch emulation is enabled in RenderWidgetHost.
- bool touch_emulation_enabled_;
+ // Whether overscroll should be unconditionally disabled.
+ bool force_disable_overscroll_content_;
// Whether the last JavaScript dialog shown was suppressed. Used for testing.
bool last_dialog_suppressed_;

Powered by Google App Engine
This is Rietveld 408576698