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 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); | 1816 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); |
1817 | 1817 |
1818 float browser_controls_viewport_adjustment = | 1818 float browser_controls_viewport_adjustment = |
1819 GetBrowserControls().LayoutHeight() - | 1819 GetBrowserControls().LayoutHeight() - |
1820 GetBrowserControls().ContentOffset(); | 1820 GetBrowserControls().ContentOffset(); |
1821 visual_viewport.SetBrowserControlsAdjustment( | 1821 visual_viewport.SetBrowserControlsAdjustment( |
1822 browser_controls_viewport_adjustment); | 1822 browser_controls_viewport_adjustment); |
1823 } | 1823 } |
1824 } | 1824 } |
1825 | 1825 |
| 1826 void WebViewImpl::SetScrollBoundaryBehavior( |
| 1827 const WebScrollBoundaryBehavior& scroll_boundary_behavior) { |
| 1828 if (layer_tree_view_) |
| 1829 layer_tree_view_->SetScrollBoundaryBehavior(scroll_boundary_behavior); |
| 1830 } |
| 1831 |
1826 BrowserControls& WebViewImpl::GetBrowserControls() { | 1832 BrowserControls& WebViewImpl::GetBrowserControls() { |
1827 return GetPage()->GetBrowserControls(); | 1833 return GetPage()->GetBrowserControls(); |
1828 } | 1834 } |
1829 | 1835 |
1830 void WebViewImpl::ResizeViewWhileAnchored(float top_controls_height, | 1836 void WebViewImpl::ResizeViewWhileAnchored(float top_controls_height, |
1831 float bottom_controls_height, | 1837 float bottom_controls_height, |
1832 bool browser_controls_shrink_layout) { | 1838 bool browser_controls_shrink_layout) { |
1833 DCHECK(MainFrameImpl()); | 1839 DCHECK(MainFrameImpl()); |
1834 | 1840 |
1835 GetBrowserControls().SetHeight(top_controls_height, bottom_controls_height, | 1841 GetBrowserControls().SetHeight(top_controls_height, bottom_controls_height, |
(...skipping 2255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4091 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4097 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
4092 return nullptr; | 4098 return nullptr; |
4093 return focused_frame; | 4099 return focused_frame; |
4094 } | 4100 } |
4095 | 4101 |
4096 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4102 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
4097 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4103 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
4098 } | 4104 } |
4099 | 4105 |
4100 } // namespace blink | 4106 } // namespace blink |
OLD | NEW |