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

Unified Diff: Source/web/WebFrameImpl.cpp

Issue 198683002: Make it possible to override the tickmarks for a WebFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/web/WebFrameImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index 3676b6fc189921e3255116f5e2e68e73b7437e22..8e7c9b4c8bf9edaf7f47f160eed7324cd26e5942 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -1935,6 +1935,17 @@ int WebFrameImpl::selectNearestFindMatch(const WebFloatPoint& point, WebRect* se
return -1;
}
+void WebFrameImpl::setTickmarks(const WebVector<WebRect>& tickmarks)
+{
+ if (frameView()) {
+ Vector<IntRect> tickmarksConverted(tickmarks.size());
+ for (size_t i = 0; i < tickmarks.size(); ++i)
+ tickmarksConverted[i] = tickmarks[i];
+ frameView()->setTickmarks(tickmarksConverted);
+ invalidateArea(InvalidateScrollbar);
+ }
+}
+
int WebFrameImpl::nearestFindMatch(const FloatPoint& point, float& distanceSquared)
{
updateFindMatchRects();
« no previous file with comments | « Source/web/WebFrameImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698