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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 352173002: Expose public interface for composited selection bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 6ce09ebc41cc2a801a73e7cc1b49dea998855db0..7c4ca66952c2b663866b8e8e452e11696efefecf 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -82,6 +82,7 @@
#include "public/web/WebNode.h"
#include "public/web/WebPlugin.h"
#include "public/web/WebPopupMenuInfo.h"
+#include "public/web/WebSelectionBound.h"
#include "public/web/WebSettings.h"
#include "public/web/WebTextDirection.h"
#include "public/web/WebTouchAction.h"
@@ -711,6 +712,16 @@ void ChromeClientImpl::exitFullScreenForElement(Element* element)
m_webView->exitFullScreenForElement(element);
}
+void ChromeClientImpl::clearCompositedSelectionBounds()
+{
+ m_webView->clearCompositedSelectionBounds();
+}
+
+void ChromeClientImpl::updateCompositedSelectionBounds(const WebCore::CompositedSelectionBound& anchor, const WebCore::CompositedSelectionBound& focus)
+{
+ m_webView->updateCompositedSelectionBounds(WebSelectionBound(anchor), WebSelectionBound(focus));
+}
+
bool ChromeClientImpl::hasOpenedPopup() const
{
return m_webView->hasOpenedPopup();

Powered by Google App Engine
This is Rietveld 408576698