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

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: Build fix after rebase 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cb8f8ccea8d38e9a198ee8a6b12ae3c0e737b606..27faa498c35fb95851f9241302e9e51c6af1fd42 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -175,6 +175,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;
@@ -489,7 +493,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();
@@ -534,7 +537,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>;
« no previous file with comments | « third_party/WebKit/Source/web/WebViewFrameWidget.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698