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

Unified Diff: content/browser/devtools/devtools_frontend_host_impl.cc

Issue 925903002: Disable elastic overscroll effect in DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/devtools/devtools_frontend_host_impl.cc
diff --git a/content/browser/devtools/devtools_frontend_host_impl.cc b/content/browser/devtools/devtools_frontend_host_impl.cc
index 6d3c658936fd4aeaeb740557dc6c7b458e5bfd8f..cef0ecb2f9d52d5729b40883a405a7d9326a32bd 100644
--- a/content/browser/devtools/devtools_frontend_host_impl.cc
+++ b/content/browser/devtools/devtools_frontend_host_impl.cc
@@ -4,6 +4,8 @@
#include "content/browser/devtools/devtools_frontend_host_impl.h"
+#include "content/browser/frame_host/render_frame_host_impl.h"
+#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/common/devtools_messages.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/render_frame_host.h"
@@ -31,6 +33,11 @@ DevToolsFrontendHostImpl::DevToolsFrontendHostImpl(
DevToolsFrontendHostImpl::~DevToolsFrontendHostImpl() {
}
+void DevToolsFrontendHostImpl::RenderFrameCreated(RenderFrameHost* rfh) {
+ static_cast<RenderFrameHostImpl*>(rfh)->GetRenderWidgetHost()->
+ DisableElasticOverscroll();
+}
+
bool DevToolsFrontendHostImpl::OnMessageReceived(
const IPC::Message& message,
RenderFrameHost* render_frame_host) {
« no previous file with comments | « content/browser/devtools/devtools_frontend_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698