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

Unified Diff: Source/web/WebViewImpl.h

Issue 513053003: Made Blink aware of top controls offset (Blink-side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added top_controls_content_offset Created 6 years, 3 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | public/web/WebWidget.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.h
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h
index 0db68d6ecdc61129878687dbed3b7c28e71490eb..e2350a95f30d1baab5dc65630cc12103fcd06e04 100644
--- a/Source/web/WebViewImpl.h
+++ b/Source/web/WebViewImpl.h
@@ -91,6 +91,7 @@ public:
virtual void willStartLiveResize() OVERRIDE;
virtual void resize(const WebSize&) OVERRIDE;
virtual void resizePinchViewport(const WebSize&) OVERRIDE;
+ virtual void setTopControlsContentOffset(float) OVERRIDE;
virtual void willEndLiveResize() OVERRIDE;
virtual void willEnterFullScreen() OVERRIDE;
virtual void didEnterFullScreen() OVERRIDE;
@@ -110,7 +111,7 @@ public:
virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE;
virtual void setCursorVisibilityState(bool isVisible) OVERRIDE;
virtual bool hasTouchEventHandlersAt(const WebPoint&) OVERRIDE;
- virtual void applyScrollAndScale(const WebSize&, float) OVERRIDE;
+ virtual void applyViewportProperties(const WebSize&, float, float) OVERRIDE;
aelias_OOO_until_Jul13 2014/09/03 19:28:42 Please provide names for the arguments since it's
bokan 2014/09/04 23:10:01 Done
virtual void mouseCaptureLost() OVERRIDE;
virtual void setFocus(bool enable) OVERRIDE;
virtual bool setComposition(
@@ -714,6 +715,8 @@ private:
float m_zoomFactorOverride;
bool m_userGestureObserved;
+ int m_topControlsLayoutHeight;
aelias_OOO_until_Jul13 2014/09/03 19:28:42 Unused for now, please remove it.
bokan 2014/09/04 23:10:01 Done.
+ float m_topControlsContentOffset;
};
// We have no ways to check if the specified WebView is an instance of
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | public/web/WebWidget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698