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

Side by Side Diff: third_party/WebKit/Source/web/WebViewFrameWidget.cpp

Issue 1844013002: Fix main thread top controls scrolling to mirror CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertyTreesBoundsDelta
Patch Set: Fixed anchoring to check width too 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #include "web/WebViewFrameWidget.h" 5 #include "web/WebViewFrameWidget.h"
6 6
7 #include "web/WebLocalFrameImpl.h" 7 #include "web/WebLocalFrameImpl.h"
8 #include "web/WebViewImpl.h" 8 #include "web/WebViewImpl.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 23 matching lines...) Expand all
34 // easier to untangle the cleanup logic later. 34 // easier to untangle the cleanup logic later.
35 35
36 delete this; 36 delete this;
37 } 37 }
38 38
39 WebSize WebViewFrameWidget::size() 39 WebSize WebViewFrameWidget::size()
40 { 40 {
41 return m_webView->size(); 41 return m_webView->size();
42 } 42 }
43 43
44 void WebViewFrameWidget::resize(const WebSize& size, float topControlsHeight, bo ol topControlsShrinkLayoutSize)
45 {
46 return m_webView->resize(size, topControlsHeight, topControlsShrinkLayoutSiz e);
47 }
48
44 void WebViewFrameWidget::resize(const WebSize& size) 49 void WebViewFrameWidget::resize(const WebSize& size)
45 { 50 {
46 return m_webView->resize(size); 51 return m_webView->resize(size);
47 } 52 }
48 53
49 void WebViewFrameWidget::resizeVisualViewport(const WebSize& size) 54 void WebViewFrameWidget::resizeVisualViewport(const WebSize& size)
50 { 55 {
51 return m_webView->resizeVisualViewport(size); 56 return m_webView->resizeVisualViewport(size);
52 } 57 }
53 58
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 WebColor WebViewFrameWidget::backgroundColor() const 238 WebColor WebViewFrameWidget::backgroundColor() const
234 { 239 {
235 return m_webView->backgroundColor(); 240 return m_webView->backgroundColor();
236 } 241 }
237 242
238 WebPagePopup* WebViewFrameWidget::pagePopup() const 243 WebPagePopup* WebViewFrameWidget::pagePopup() const
239 { 244 {
240 return m_webView->pagePopup(); 245 return m_webView->pagePopup();
241 } 246 }
242 247
243 void WebViewFrameWidget::setTopControlsHeight(float height, bool topControlsShri nkLayoutSize)
244 {
245 return m_webView->setTopControlsHeight(height, topControlsShrinkLayoutSize);
246 }
247
248 void WebViewFrameWidget::updateTopControlsState(WebTopControlsState constraints, WebTopControlsState current, bool animate) 248 void WebViewFrameWidget::updateTopControlsState(WebTopControlsState constraints, WebTopControlsState current, bool animate)
249 { 249 {
250 return m_webView->updateTopControlsState(constraints, current, animate); 250 return m_webView->updateTopControlsState(constraints, current, animate);
251 } 251 }
252 252
253 void WebViewFrameWidget::setVisibilityState(WebPageVisibilityState visibilitySta te, bool isInitialState) 253 void WebViewFrameWidget::setVisibilityState(WebPageVisibilityState visibilitySta te, bool isInitialState)
254 { 254 {
255 return m_webView->setVisibilityState(visibilityState, isInitialState); 255 return m_webView->setVisibilityState(visibilityState, isInitialState);
256 } 256 }
257 257
(...skipping 11 matching lines...) Expand all
269 { 269 {
270 m_webView->setBaseBackgroundColor(color); 270 m_webView->setBaseBackgroundColor(color);
271 } 271 }
272 272
273 void WebViewFrameWidget::scheduleAnimation() 273 void WebViewFrameWidget::scheduleAnimation()
274 { 274 {
275 m_webView->scheduleAnimation(); 275 m_webView->scheduleAnimation();
276 } 276 }
277 277
278 } // namespace blink 278 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698