summaryrefslogtreecommitdiffstats
path: root/ppapi/api/dev
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/api/dev
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/api/dev')
-rw-r--r--ppapi/api/dev/ppb_widget_dev.idl10
1 files changed, 9 insertions, 1 deletions
diff --git a/ppapi/api/dev/ppb_widget_dev.idl b/ppapi/api/dev/ppb_widget_dev.idl
index dc97c9f..77e5de0 100644
--- a/ppapi/api/dev/ppb_widget_dev.idl
+++ b/ppapi/api/dev/ppb_widget_dev.idl
@@ -8,7 +8,8 @@
*/
label Chrome {
- M14 = 0.3
+ M14 = 0.3,
+ M23 = 0.4
};
/**
@@ -46,4 +47,11 @@ interface PPB_Widget_Dev {
*/
void SetLocation([in] PP_Resource widget,
[in] PP_Rect location);
+
+ /**
+ * Set scale used during paint operations.
+ */
+ [version=0.4]
+ void SetScale([in] PP_Resource widget,
+ [in] float_t scale);
};