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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge ShowTopControls into UpdateTopControlsState, use new TopControlsState enum in plumbing, gener… Created 7 years, 8 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/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 60732ceb0905956441182ff4b3973dcaa67357af..36a084bcaf00b452451f844638202c5c6ac3c3e9 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -342,6 +342,10 @@ class CONTENT_EXPORT WebContentsDelegate {
virtual bool IsFullscreenForTabOrPending(
const WebContents* web_contents) const;
+ // Called when the renderer has scrolled programmatically.
+ virtual void DidProgrammaticallyScroll(WebContents* web_contents,
+ const gfx::Point& scroll_point) {}
+
// Called when a Javascript out of memory notification is received.
virtual void JSOutOfMemory(WebContents* web_contents) {}

Powered by Google App Engine
This is Rietveld 408576698