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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: sievers@ review Created 4 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: third_party/WebKit/Source/web/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index a428bd4d4f0944c636d32bb8f4f0e7e1e809523b..95f014f7613db71e5c96d831627b451996b67da6 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -177,6 +177,10 @@ public:
void setDomainRelaxationForbidden(bool, const WebString& scheme) override;
void setWindowFeatures(const WebWindowFeatures&) override;
void setOpenedByDOM() override;
+ void resizeWithTopControls(
+ const WebSize&,
+ float topControlsHeight,
+ bool topControlsShrinkLayout) override;
WebFrame* mainFrame() override;
WebFrame* findFrameByName(
const WebString& name, WebFrame* relativeToFrame) override;
@@ -501,7 +505,6 @@ public:
bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_matchesHeuristicsForGpuRasterization; }
- void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) override;
void updateTopControlsState(WebTopControlsState constraint, WebTopControlsState current, bool animate) override;
TopControls& topControls();
@@ -545,7 +548,7 @@ private:
IntSize contentsSize() const;
void performResize();
- void resizeViewWhileAnchored(FrameView*);
+ void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topControlsShrinkLayout);
friend class WebView; // So WebView::Create can call our constructor
friend class WTF::RefCounted<WebViewImpl>;

Powered by Google App Engine
This is Rietveld 408576698