Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 454643002: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revised Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698