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

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: rebase 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
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 { 1892 {
1893 m_fullscreenController->exitFullScreenForElement(element); 1893 m_fullscreenController->exitFullScreenForElement(element);
1894 } 1894 }
1895 1895
1896 void WebViewImpl::clearCompositedSelectionBounds() 1896 void WebViewImpl::clearCompositedSelectionBounds()
1897 { 1897 {
1898 if (m_layerTreeView) 1898 if (m_layerTreeView)
1899 m_layerTreeView->clearSelection(); 1899 m_layerTreeView->clearSelection();
1900 } 1900 }
1901 1901
1902 void WebViewImpl::updateCompositedSelectionBounds(const WebSelectionBound& ancho r, const WebSelectionBound& focus)
1903 {
1904 if (m_layerTreeView)
1905 m_layerTreeView->registerSelection(anchor, focus);
1906 }
1907
1902 bool WebViewImpl::hasHorizontalScrollbar() 1908 bool WebViewImpl::hasHorizontalScrollbar()
1903 { 1909 {
1904 return mainFrameImpl()->frameView()->horizontalScrollbar(); 1910 return mainFrameImpl()->frameView()->horizontalScrollbar();
1905 } 1911 }
1906 1912
1907 bool WebViewImpl::hasVerticalScrollbar() 1913 bool WebViewImpl::hasVerticalScrollbar()
1908 { 1914 {
1909 return mainFrameImpl()->frameView()->verticalScrollbar(); 1915 return mainFrameImpl()->frameView()->verticalScrollbar();
1910 } 1916 }
1911 1917
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
4373 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4379 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4374 4380
4375 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4381 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4376 return false; 4382 return false;
4377 4383
4378 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4384 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4379 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4385 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4380 } 4386 }
4381 4387
4382 } // namespace blink 4388 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698