summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 21:20:31 +0000
committernoelallen@google.com <noelallen@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 21:20:31 +0000
commit0924a206ca821e8537e432c42293c71ef1f1b8fa (patch)
treee0debe50265b90b6d4ad5f4288f3a6f8570761e0
parent0cd10c47e95481fc0cf8505b4480a72f90208000 (diff)
downloadchromium_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
-rw-r--r--ppapi/api/dev/ppp_widget_dev.idl26
-rw-r--r--ppapi/api/dev/ppp_zoom_dev.idl27
-rw-r--r--ppapi/c/dev/ppp_widget_dev.h35
-rw-r--r--ppapi/c/dev/ppp_zoom_dev.h39
4 files changed, 113 insertions, 14 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);
+};
+
diff --git a/ppapi/c/dev/ppp_widget_dev.h b/ppapi/c/dev/ppp_widget_dev.h
index 4185551..d1fd778 100644
--- a/ppapi/c/dev/ppp_widget_dev.h
+++ b/ppapi/c/dev/ppp_widget_dev.h
@@ -1,23 +1,48 @@
-/* Copyright (c) 2010 The Chromium Authors. All rights reserved.
+/* 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.
*/
+
+/* From dev/ppp_widget_dev.idl modified Fri Aug 26 17:59:12 2011. */
+
#ifndef PPAPI_C_DEV_PPP_WIDGET_DEV_H_
#define PPAPI_C_DEV_PPP_WIDGET_DEV_H_
#include "ppapi/c/pp_instance.h"
-#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_point.h"
#include "ppapi/c/pp_rect.h"
+#include "ppapi/c/pp_resource.h"
+#include "ppapi/c/pp_size.h"
+#include "ppapi/c/pp_stdint.h"
+
+#define PPP_WIDGET_DEV_INTERFACE_0_2 "PPP_Widget(Dev);0.2"
+#define PPP_WIDGET_DEV_INTERFACE PPP_WIDGET_DEV_INTERFACE_0_2
+
+/**
+ * @file
+ * Implementation of the Widget interface.
+ */
-// Interface for the plugin to implement when using a widget.
-#define PPP_WIDGET_DEV_INTERFACE "PPP_Widget(Dev);0.2"
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/**
+ * The interface for reusing browser widgets.
+ */
struct PPP_Widget_Dev {
- // Informs the instance that the given rectangle needs to be repainted.
+ /**
+ * Informs the instance that the given rectangle needs to be repainted.
+ */
void (*Invalidate)(PP_Instance instance,
PP_Resource widget,
const struct PP_Rect* dirty_rect);
};
+/**
+ * @}
+ */
#endif /* PPAPI_C_DEV_PPP_WIDGET_DEV_H_ */
diff --git a/ppapi/c/dev/ppp_zoom_dev.h b/ppapi/c/dev/ppp_zoom_dev.h
index e285df9..fabf2a6 100644
--- a/ppapi/c/dev/ppp_zoom_dev.h
+++ b/ppapi/c/dev/ppp_zoom_dev.h
@@ -1,24 +1,45 @@
-/* Copyright (c) 2010 The Chromium Authors. All rights reserved.
+/* 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.
*/
+
+/* From dev/ppp_zoom_dev.idl modified Fri Aug 26 15:42:06 2011. */
+
#ifndef PPAPI_C_DEV_PPP_ZOOM_DEV_H_
#define PPAPI_C_DEV_PPP_ZOOM_DEV_H_
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_stdint.h"
+
+#define PPP_ZOOM_DEV_INTERFACE_0_3 "PPP_Zoom(Dev);0.3"
+#define PPP_ZOOM_DEV_INTERFACE PPP_ZOOM_DEV_INTERFACE_0_3
+
+/**
+ * @file
+ * Implementation of the Zoom interface.
+ */
-// Zoom interface should only apply to those full-page "plugin-document".
-#define PPP_ZOOM_DEV_INTERFACE "PPP_Zoom(Dev);0.3"
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/**
+ * Zoom interface should only apply to those full-page "plugin-document".
+ */
struct 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)(PP_Instance instance,
- double factor,
- PP_Bool text_only);
+ /**
+ * 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)(PP_Instance instance, double factor, PP_Bool text_only);
};
+/**
+ * @}
+ */
#endif /* PPAPI_C_DEV_PPP_ZOOM_DEV_H_ */