Index: content/renderer/pepper/pepper_plugin_instance_impl.cc |
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
index bd06678528acb56e102e2bd6c7f26ec3d5819e18..1181d639ff6241bf839f152853043a0e818f1ca9 100644 |
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc |
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc |
@@ -92,6 +92,7 @@ |
#include "skia/ext/platform_device.h" |
#include "third_party/WebKit/public/platform/WebCursorInfo.h" |
#include "third_party/WebKit/public/platform/WebGamepads.h" |
+#include "third_party/WebKit/public/platform/WebRect.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/WebURL.h" |
#include "third_party/WebKit/public/platform/WebURLError.h" |
@@ -2420,6 +2421,24 @@ void PepperPluginInstanceImpl::SelectedFindResultChanged(PP_Instance instance, |
} |
} |
+void PepperPluginInstanceImpl::SetTickmarks(PP_Instance instance, |
+ const struct PP_Rect* tickmarks, |
yzshen1
2014/03/19 17:38:05
nit: no need to have 'struct'
raymes
2014/03/20 01:53:56
Done.
|
+ uint32_t count) { |
+ if (!render_frame_ || !render_frame_->GetWebFrame()) |
+ return; |
+ |
+ blink::WebVector<blink::WebRect> tickmarks_converted( |
+ static_cast<size_t>(count)); |
+ for (uint32 i = 0; i < count; ++i) { |
+ tickmarks_converted[i] = blink::WebRect(tickmarks[i].point.x, |
+ tickmarks[i].point.y, |
+ tickmarks[i].size.width, |
+ tickmarks[i].size.height);; |
+ } |
+ blink::WebFrame* frame = render_frame_->GetWebFrame(); |
+ frame->setTickmarks(tickmarks_converted); |
+} |
+ |
PP_Bool PepperPluginInstanceImpl::IsFullscreen(PP_Instance instance) { |
return PP_FromBool(view_data_.is_fullscreen); |
} |