diff options
author | noelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 21:20:31 +0000 |
---|---|---|
committer | noelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-06 21:20:31 +0000 |
commit | 0924a206ca821e8537e432c42293c71ef1f1b8fa (patch) | |
tree | e0debe50265b90b6d4ad5f4288f3a6f8570761e0 /ppapi/api | |
parent | 0cd10c47e95481fc0cf8505b4480a72f90208000 (diff) | |
download | chromium_src-0924a206ca821e8537e432c42293c71ef1f1b8fa.zip chromium_src-0924a206ca821e8537e432c42293c71ef1f1b8fa.tar.gz chromium_src-0924a206ca821e8537e432c42293c71ef1f1b8fa.tar.bz2 |
Convert c/dev ppp_zoom_dev and ppp_widget_dev to IDL
TEST= ./generator.py & try
BUG= http://code.google.com/p/chromium/issues/detail?id=89968
Review URL: http://codereview.chromium.org/7833031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99823 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r-- | ppapi/api/dev/ppp_widget_dev.idl | 26 | ||||
-rw-r--r-- | ppapi/api/dev/ppp_zoom_dev.idl | 27 |
2 files changed, 53 insertions, 0 deletions
diff --git a/ppapi/api/dev/ppp_widget_dev.idl b/ppapi/api/dev/ppp_widget_dev.idl new file mode 100644 index 0000000..41cf89f --- /dev/null +++ b/ppapi/api/dev/ppp_widget_dev.idl @@ -0,0 +1,26 @@ +/* Copyright (c) 2011 The Chromium Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/** + * Implementation of the Widget interface. + */ + +label Chrome { + M14 = 0.2 +}; + +/** + * The interface for reusing browser widgets. + */ +interface PPP_Widget_Dev { + /** + * Informs the instance that the given rectangle needs to be repainted. + */ + void Invalidate([in] PP_Instance instance, + [in] PP_Resource widget, + [in] PP_Rect dirty_rect); +}; + + diff --git a/ppapi/api/dev/ppp_zoom_dev.idl b/ppapi/api/dev/ppp_zoom_dev.idl new file mode 100644 index 0000000..6c0a343 --- /dev/null +++ b/ppapi/api/dev/ppp_zoom_dev.idl @@ -0,0 +1,27 @@ +/* Copyright (c) 2011 The Chromium Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/** + * Implementation of the Zoom interface. + */ + +label Chrome { + M14 = 0.3 +}; + +/** + * Zoom interface should only apply to those full-page "plugin-document". + */ +interface PPP_Zoom_Dev { + /** + * Instruct plug-in to zoom according to the given factor and whether the zoom + * only applies to text only. The scale factor is the percentage divided by + * 100, i.e. 150% zoom is 1.5. + */ + void Zoom([in] PP_Instance instance, + [in] double_t factor, + [in] PP_Bool text_only); +}; + |