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 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1867 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); | 1867 ResizeViewportAnchor::ResizeScope resize_scope(*resize_viewport_anchor_); |
1868 | 1868 |
1869 float browser_controls_viewport_adjustment = | 1869 float browser_controls_viewport_adjustment = |
1870 GetBrowserControls().LayoutHeight() - | 1870 GetBrowserControls().LayoutHeight() - |
1871 GetBrowserControls().ContentOffset(); | 1871 GetBrowserControls().ContentOffset(); |
1872 visual_viewport.SetBrowserControlsAdjustment( | 1872 visual_viewport.SetBrowserControlsAdjustment( |
1873 browser_controls_viewport_adjustment); | 1873 browser_controls_viewport_adjustment); |
1874 } | 1874 } |
1875 } | 1875 } |
1876 | 1876 |
| 1877 void WebViewImpl::SetScrollBoundaryBehavior( |
| 1878 const WebScrollBoundaryBehavior& scroll_boundary_behavior) { |
| 1879 if (layer_tree_view_) |
| 1880 layer_tree_view_->SetScrollBoundaryBehavior(scroll_boundary_behavior); |
| 1881 } |
| 1882 |
1877 BrowserControls& WebViewImpl::GetBrowserControls() { | 1883 BrowserControls& WebViewImpl::GetBrowserControls() { |
1878 return GetPage()->GetBrowserControls(); | 1884 return GetPage()->GetBrowserControls(); |
1879 } | 1885 } |
1880 | 1886 |
1881 void WebViewImpl::ResizeViewWhileAnchored(float browser_controls_height, | 1887 void WebViewImpl::ResizeViewWhileAnchored(float browser_controls_height, |
1882 bool browser_controls_shrink_layout) { | 1888 bool browser_controls_shrink_layout) { |
1883 DCHECK(MainFrameImpl()); | 1889 DCHECK(MainFrameImpl()); |
1884 | 1890 |
1885 GetBrowserControls().SetHeight(browser_controls_height, | 1891 GetBrowserControls().SetHeight(browser_controls_height, |
1886 browser_controls_shrink_layout); | 1892 browser_controls_shrink_layout); |
(...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4127 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) | 4133 if (focused_frame->LocalFrameRoot() != MainFrameImpl()->GetFrame()) |
4128 return nullptr; | 4134 return nullptr; |
4129 return focused_frame; | 4135 return focused_frame; |
4130 } | 4136 } |
4131 | 4137 |
4132 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { | 4138 LocalFrame* WebViewImpl::FocusedLocalFrameAvailableForIme() const { |
4133 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; | 4139 return ime_accept_events_ ? FocusedLocalFrameInWidget() : nullptr; |
4134 } | 4140 } |
4135 | 4141 |
4136 } // namespace blink | 4142 } // namespace blink |
OLD | NEW |