| 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 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); | 1875 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); |
| 1876 | 1876 |
| 1877 float browser_controls_viewport_adjustment = | 1877 float browser_controls_viewport_adjustment = |
| 1878 GetBrowserControls().LayoutHeight() - | 1878 GetBrowserControls().LayoutHeight() - |
| 1879 GetBrowserControls().ContentOffset(); | 1879 GetBrowserControls().ContentOffset(); |
| 1880 visual_viewport.SetBrowserControlsAdjustment( | 1880 visual_viewport.SetBrowserControlsAdjustment( |
| 1881 browser_controls_viewport_adjustment); | 1881 browser_controls_viewport_adjustment); |
| 1882 } | 1882 } |
| 1883 } | 1883 } |
| 1884 | 1884 |
| 1885 void WebViewImpl::SetScrollBoundaryBehavior( |
| 1886 WebScrollBoundaryBehavior scroll_boundary_behavior) const { |
| 1887 if (layer_tree_view_) |
| 1888 layer_tree_view_->SetScrollBoundaryBehavior(scroll_boundary_behavior); |
| 1889 } |
| 1890 |
| 1885 BrowserControls& WebViewImpl::GetBrowserControls() { | 1891 BrowserControls& WebViewImpl::GetBrowserControls() { |
| 1886 return GetPage()->GetBrowserControls(); | 1892 return GetPage()->GetBrowserControls(); |
| 1887 } | 1893 } |
| 1888 | 1894 |
| 1889 void WebViewImpl::ResizeViewWhileAnchored(float browser_controls_height, | 1895 void WebViewImpl::ResizeViewWhileAnchored(float browser_controls_height, |
| 1890 bool browser_controls_shrink_layout) { | 1896 bool browser_controls_shrink_layout) { |
| 1891 DCHECK(MainFrameImpl()); | 1897 DCHECK(MainFrameImpl()); |
| 1892 | 1898 |
| 1893 GetBrowserControls().SetHeight(browser_controls_height, | 1899 GetBrowserControls().SetHeight(browser_controls_height, |
| 1894 browser_controls_shrink_layout); | 1900 browser_controls_shrink_layout); |
| (...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4151 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4157 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
| 4152 return nullptr; | 4158 return nullptr; |
| 4153 return focused_frame; | 4159 return focused_frame; |
| 4154 } | 4160 } |
| 4155 | 4161 |
| 4156 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4162 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
| 4157 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4163 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
| 4158 } | 4164 } |
| 4159 | 4165 |
| 4160 } // namespace blink | 4166 } // namespace blink |
| OLD | NEW |