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

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

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_scrollbar_impl.cc ('k') | webkit/plugins/ppapi/ppb_widget_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_widget_impl.h
diff --git a/webkit/plugins/ppapi/ppb_widget_impl.h b/webkit/plugins/ppapi/ppb_widget_impl.h
index caaab2a26e86be1fcd7c46e8bee2d3a436164bd1..7fd143eee287d85e987478f302bbd85905855103 100644
--- a/webkit/plugins/ppapi/ppb_widget_impl.h
+++ b/webkit/plugins/ppapi/ppb_widget_impl.h
@@ -37,6 +37,7 @@ class PPB_Widget_Impl : public ::ppapi::Resource,
virtual PP_Bool HandleEvent(PP_Resource pp_input_event) OVERRIDE;
virtual PP_Bool GetLocation(PP_Rect* location) OVERRIDE;
virtual void SetLocation(const PP_Rect* location) OVERRIDE;
+ virtual void SetScale(float scale) OVERRIDE;
// Notifies the plugin instance that the given rect needs to be repainted.
void Invalidate(const PP_Rect* dirty);
@@ -48,9 +49,11 @@ class PPB_Widget_Impl : public ::ppapi::Resource,
virtual void SetLocationInternal(const PP_Rect* location) = 0;
PP_Rect location() const { return location_; }
+ float scale() const { return scale_; }
private:
PP_Rect location_;
+ float scale_;
DISALLOW_COPY_AND_ASSIGN(PPB_Widget_Impl);
};
« no previous file with comments | « webkit/plugins/ppapi/ppb_scrollbar_impl.cc ('k') | webkit/plugins/ppapi/ppb_widget_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698