| 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 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); | 1826 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); |
| 1827 | 1827 |
| 1828 float browser_controls_viewport_adjustment = | 1828 float browser_controls_viewport_adjustment = |
| 1829 GetBrowserControls().LayoutHeight() - | 1829 GetBrowserControls().LayoutHeight() - |
| 1830 GetBrowserControls().ContentOffset(); | 1830 GetBrowserControls().ContentOffset(); |
| 1831 visual_viewport.SetBrowserControlsAdjustment( | 1831 visual_viewport.SetBrowserControlsAdjustment( |
| 1832 browser_controls_viewport_adjustment); | 1832 browser_controls_viewport_adjustment); |
| 1833 } | 1833 } |
| 1834 } | 1834 } |
| 1835 | 1835 |
| 1836 void WebViewImpl::SetScrollBoundaryBehavior( |
| 1837 const WebScrollBoundaryBehavior& scroll_boundary_behavior) { |
| 1838 if (layer_tree_view_) |
| 1839 layer_tree_view_->SetScrollBoundaryBehavior(scroll_boundary_behavior); |
| 1840 } |
| 1841 |
| 1836 BrowserControls& WebViewImpl::GetBrowserControls() { | 1842 BrowserControls& WebViewImpl::GetBrowserControls() { |
| 1837 return GetPage()->GetBrowserControls(); | 1843 return GetPage()->GetBrowserControls(); |
| 1838 } | 1844 } |
| 1839 | 1845 |
| 1840 void WebViewImpl::ResizeViewWhileAnchored(float browser_controls_height, | 1846 void WebViewImpl::ResizeViewWhileAnchored(float browser_controls_height, |
| 1841 bool browser_controls_shrink_layout) { | 1847 bool browser_controls_shrink_layout) { |
| 1842 DCHECK(MainFrameImpl()); | 1848 DCHECK(MainFrameImpl()); |
| 1843 | 1849 |
| 1844 GetBrowserControls().SetHeight(browser_controls_height, | 1850 GetBrowserControls().SetHeight(browser_controls_height, |
| 1845 browser_controls_shrink_layout); | 1851 browser_controls_shrink_layout); |
| (...skipping 2245 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 |