Chromium Code Reviews| Index: Source/web/WebViewImpl.cpp |
| diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp |
| index 14c0dbf9a14971ff54afb0955bc0c3417bc6f38a..58f14955af8329a24840909baf64119ba4ad103d 100644 |
| --- a/Source/web/WebViewImpl.cpp |
| +++ b/Source/web/WebViewImpl.cpp |
| @@ -134,6 +134,7 @@ |
| #include "public/web/WebPlugin.h" |
| #include "public/web/WebPluginAction.h" |
| #include "public/web/WebRange.h" |
| +#include "public/web/WebSelection.h" |
| #include "public/web/WebTextInputInfo.h" |
| #include "public/web/WebViewClient.h" |
| #include "public/web/WebWindowFeatures.h" |
| @@ -2020,16 +2021,19 @@ void WebViewImpl::exitFullScreenForElement(Element* element) |
| m_fullscreenController->exitFullScreenForElement(element); |
| } |
| -void WebViewImpl::clearCompositedSelectionBounds() |
| +void WebViewImpl::clearCompositedSelection() |
| { |
| if (m_layerTreeView) |
| m_layerTreeView->clearSelection(); |
| } |
| -void WebViewImpl::updateCompositedSelectionBounds(const WebSelectionBound& anchor, const WebSelectionBound& focus) |
| +void WebViewImpl::updateCompositedSelection(const WebSelection& selection) |
| { |
| - if (m_layerTreeView) |
| - m_layerTreeView->registerSelection(anchor, focus); |
| + if (m_layerTreeView) { |
| + m_layerTreeView->registerSelection(selection); |
| + // FIXME: Remove this overload when downstream consumers have been updated, crbug.com/466672. |
|
yoichio
2015/03/30 05:07:38
Use "TODO(jdduke)" as this comment style was chang
jdduke (slow)
2015/03/30 15:24:44
Yay! Done.
|
| + m_layerTreeView->registerSelection(selection.start(), selection.end()); |
| + } |
| } |
| bool WebViewImpl::hasHorizontalScrollbar() |