summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_widget_api.h
diff options
context:
space:
mode:
authorjhorwich@chromium.org <jhorwich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-23 00:47:54 +0000
committerjhorwich@chromium.org <jhorwich@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-23 00:47:54 +0000
commit2d5977eacf30f4e875f5fdc3ff7fba9f31409095 (patch)
treed6df0acc95678722e5b37e9bd31ceee38dc60e83 /ppapi/thunk/ppb_widget_api.h
parentf686eb609c169a045cc2123a037ee2f5fb9ae4bb (diff)
downloadchromium_src-2d5977eacf30f4e875f5fdc3ff7fba9f31409095.zip
chromium_src-2d5977eacf30f4e875f5fdc3ff7fba9f31409095.tar.gz
chromium_src-2d5977eacf30f4e875f5fdc3ff7fba9f31409095.tar.bz2
Add SetScale to PPB_WidgetDev, use scale for painting
In order to allow for HiDPI-aware scrollbars, this patch allows the plugin to specify a scale factor used during widget paint operations. The widgets (of which Scrollbar is the only current instance) will continue to use the DIP coordinate system for events and sizing, which is consistent with their WebKit implementation. This change should maintain backward compat. with existing users of interface 'PPB_Wdiget(Dev);0.3' BUG=140833 TEST=Run pre-built (with 0.3 interfaces) PDF plugin and verify scrollbars Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152495 Review URL: https://chromiumcodereview.appspot.com/10824386 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_widget_api.h')
-rw-r--r--ppapi/thunk/ppb_widget_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ppapi/thunk/ppb_widget_api.h b/ppapi/thunk/ppb_widget_api.h
index 1a03d62..26d0221 100644
--- a/ppapi/thunk/ppb_widget_api.h
+++ b/ppapi/thunk/ppb_widget_api.h
@@ -18,6 +18,7 @@ class PPB_Widget_API {
virtual PP_Bool HandleEvent(PP_Resource pp_input_event) = 0;
virtual PP_Bool GetLocation(PP_Rect* location) = 0;
virtual void SetLocation(const PP_Rect* location) = 0;
+ virtual void SetScale(float scale) = 0;
};
} // namespace thunk