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

Unified Diff: ppapi/cpp/private/find_private.cc

Issue 195893044: Add a PPB_Find_Private function to set the tickmarks on the page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 | « ppapi/cpp/private/find_private.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ppapi/cpp/private/find_private.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698