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

Side by Side Diff: third_party/WebKit/Source/core/exported/WebViewImpl.cpp

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Rebase Created 3 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 // needed since the browser controls adjustment will change the maximum 1851 // needed since the browser controls adjustment will change the maximum
1852 // scroll offset and we may need to reposition them to keep the user's 1852 // scroll offset and we may need to reposition them to keep the user's
1853 // apparent position unchanged. 1853 // apparent position unchanged.
1854 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); 1854 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_);
1855 1855
1856 visual_viewport.SetBrowserControlsAdjustment( 1856 visual_viewport.SetBrowserControlsAdjustment(
1857 GetBrowserControls().UnreportedSizeAdjustment()); 1857 GetBrowserControls().UnreportedSizeAdjustment());
1858 } 1858 }
1859 } 1859 }
1860 1860
1861 void WebViewImpl::SetScrollBoundaryBehavior(
1862 const WebScrollBoundaryBehavior& scroll_boundary_behavior) {
1863 if (layer_tree_view_)
1864 layer_tree_view_->SetScrollBoundaryBehavior(scroll_boundary_behavior);
1865 }
1866
1861 BrowserControls& WebViewImpl::GetBrowserControls() { 1867 BrowserControls& WebViewImpl::GetBrowserControls() {
1862 return GetPage()->GetBrowserControls(); 1868 return GetPage()->GetBrowserControls();
1863 } 1869 }
1864 1870
1865 void WebViewImpl::ResizeViewWhileAnchored(float top_controls_height, 1871 void WebViewImpl::ResizeViewWhileAnchored(float top_controls_height,
1866 float bottom_controls_height, 1872 float bottom_controls_height,
1867 bool browser_controls_shrink_layout) { 1873 bool browser_controls_shrink_layout) {
1868 DCHECK(MainFrameImpl()); 1874 DCHECK(MainFrameImpl());
1869 1875
1870 GetBrowserControls().SetHeight(top_controls_height, bottom_controls_height, 1876 GetBrowserControls().SetHeight(top_controls_height, bottom_controls_height,
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after
4114 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) 4120 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame())
4115 return nullptr; 4121 return nullptr;
4116 return focused_frame; 4122 return focused_frame;
4117 } 4123 }
4118 4124
4119 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { 4125 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const {
4120 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; 4126 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr;
4121 } 4127 }
4122 4128
4123 } // namespace blink 4129 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/exported/WebViewImpl.h ('k') | third_party/WebKit/Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698