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 { | 1867 { |
1868 m_fullscreenController->exitFullScreenForElement(element); | 1868 m_fullscreenController->exitFullScreenForElement(element); |
1869 } | 1869 } |
1870 | 1870 |
1871 void WebViewImpl::clearCompositedSelectionBounds() | 1871 void WebViewImpl::clearCompositedSelectionBounds() |
1872 { | 1872 { |
1873 if (m_layerTreeView) | 1873 if (m_layerTreeView) |
1874 m_layerTreeView->clearSelection(); | 1874 m_layerTreeView->clearSelection(); |
1875 } | 1875 } |
1876 | 1876 |
| 1877 void WebViewImpl::updateCompositedSelectionBounds(const WebSelectionBound& ancho
r, const WebSelectionBound& focus) |
| 1878 { |
| 1879 if (m_layerTreeView) |
| 1880 m_layerTreeView->registerSelection(anchor, focus); |
| 1881 } |
| 1882 |
1877 bool WebViewImpl::hasHorizontalScrollbar() | 1883 bool WebViewImpl::hasHorizontalScrollbar() |
1878 { | 1884 { |
1879 return mainFrameImpl()->frameView()->horizontalScrollbar(); | 1885 return mainFrameImpl()->frameView()->horizontalScrollbar(); |
1880 } | 1886 } |
1881 | 1887 |
1882 bool WebViewImpl::hasVerticalScrollbar() | 1888 bool WebViewImpl::hasVerticalScrollbar() |
1883 { | 1889 { |
1884 return mainFrameImpl()->frameView()->verticalScrollbar(); | 1890 return mainFrameImpl()->frameView()->verticalScrollbar(); |
1885 } | 1891 } |
1886 | 1892 |
(...skipping 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4317 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 4323 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
4318 | 4324 |
4319 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 4325 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
4320 return false; | 4326 return false; |
4321 | 4327 |
4322 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4328 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4323 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4329 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4324 } | 4330 } |
4325 | 4331 |
4326 } // namespace blink | 4332 } // namespace blink |
OLD | NEW |