Index: ppapi/cpp/private/find_private.cc |
diff --git a/ppapi/cpp/private/find_private.cc b/ppapi/cpp/private/find_private.cc |
index bd592a4a67f5268acc7ca6eb9bcc3442c30cd0b1..440bc7444c65e6ba8b0c70249b2a5cab6b3c2fa6 100644 |
--- a/ppapi/cpp/private/find_private.cc |
+++ b/ppapi/cpp/private/find_private.cc |
@@ -8,6 +8,7 @@ |
#include "ppapi/cpp/instance.h" |
#include "ppapi/cpp/module.h" |
#include "ppapi/cpp/module_impl.h" |
+#include "ppapi/cpp/rect.h" |
namespace pp { |
@@ -83,4 +84,16 @@ void Find_Private::SelectedFindResultChanged(int32_t index) { |
} |
} |
+void Find_Private::SetTickmarks(const std::vector<pp::Rect>& tickmarks) { |
+ if (has_interface<PPB_Find_Private>()) { |
+ if (tickmarks.empty()) |
+ return; |
+ std::vector<PP_Rect> tickmarks_converted(tickmarks.begin(), |
+ tickmarks.end()); |
+ get_interface<PPB_Find_Private>()->SetTickmarks( |
+ associated_instance_.pp_instance(), &tickmarks_converted[0], |
+ static_cast<uint32_t>(tickmarks.size())); |
+ } |
+} |
+ |
} // namespace pp |