OLD | NEW |
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 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1828 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); | 1828 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); |
1829 | 1829 |
1830 float browser_controls_viewport_adjustment = | 1830 float browser_controls_viewport_adjustment = |
1831 GetBrowserControls().LayoutHeight() - | 1831 GetBrowserControls().LayoutHeight() - |
1832 GetBrowserControls().ContentOffset(); | 1832 GetBrowserControls().ContentOffset(); |
1833 visual_viewport.SetBrowserControlsAdjustment( | 1833 visual_viewport.SetBrowserControlsAdjustment( |
1834 browser_controls_viewport_adjustment); | 1834 browser_controls_viewport_adjustment); |
1835 } | 1835 } |
1836 } | 1836 } |
1837 | 1837 |
| 1838 void WebViewImpl::SetScrollBoundaryBehavior( |
| 1839 const WebScrollBoundaryBehavior& scroll_boundary_behavior) { |
| 1840 if (layer_tree_view_) |
| 1841 layer_tree_view_->SetScrollBoundaryBehavior(scroll_boundary_behavior); |
| 1842 } |
| 1843 |
1838 BrowserControls& WebViewImpl::GetBrowserControls() { | 1844 BrowserControls& WebViewImpl::GetBrowserControls() { |
1839 return GetPage()->GetBrowserControls(); | 1845 return GetPage()->GetBrowserControls(); |
1840 } | 1846 } |
1841 | 1847 |
1842 void WebViewImpl::ResizeViewWhileAnchored(float top_controls_height, | 1848 void WebViewImpl::ResizeViewWhileAnchored(float top_controls_height, |
1843 float bottom_controls_height, | 1849 float bottom_controls_height, |
1844 bool browser_controls_shrink_layout) { | 1850 bool browser_controls_shrink_layout) { |
1845 DCHECK(MainFrameImpl()); | 1851 DCHECK(MainFrameImpl()); |
1846 | 1852 |
1847 GetBrowserControls().SetHeight(top_controls_height, bottom_controls_height, | 1853 GetBrowserControls().SetHeight(top_controls_height, bottom_controls_height, |
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4097 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4103 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
4098 return nullptr; | 4104 return nullptr; |
4099 return focused_frame; | 4105 return focused_frame; |
4100 } | 4106 } |
4101 | 4107 |
4102 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4108 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
4103 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4109 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
4104 } | 4110 } |
4105 | 4111 |
4106 } // namespace blink | 4112 } // namespace blink |
OLD | NEW |