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

Unified Diff: webkit/plugins/ppapi/ppb_widget_impl.cc

Issue 10824386: Add SetScale to PPB_WidgetDev, use scale for painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « webkit/plugins/ppapi/ppb_widget_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_widget_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_widget_impl.cc b/webkit/plugins/ppapi/ppb_widget_impl.cc
index 306a1b565140cc679968fa1ddd913d3cca7ff188..8fe0386364663bac31ae3ca751aa18969bff2378 100644
--- a/webkit/plugins/ppapi/ppb_widget_impl.cc
+++ b/webkit/plugins/ppapi/ppb_widget_impl.cc
@@ -22,7 +22,8 @@ namespace webkit {
namespace ppapi {
PPB_Widget_Impl::PPB_Widget_Impl(PP_Instance instance)
- : Resource(::ppapi::OBJECT_IS_IMPL, instance) {
+ : Resource(::ppapi::OBJECT_IS_IMPL, instance),
+ scale_(1.0f) {
memset(&location_, 0, sizeof(location_));
}
@@ -59,6 +60,10 @@ void PPB_Widget_Impl::SetLocation(const PP_Rect* location) {
SetLocationInternal(location);
}
+void PPB_Widget_Impl::SetScale(float scale) {
+ scale_ = scale;
+}
+
void PPB_Widget_Impl::Invalidate(const PP_Rect* dirty) {
PluginInstance* plugin_instance = ResourceHelper::GetPluginInstance(this);
if (!plugin_instance)
« no previous file with comments | « webkit/plugins/ppapi/ppb_widget_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698