summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-27 16:58:49 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-27 16:58:49 +0000
commit10a202e93925c25bb8c8a216d1402f28446cdc0c (patch)
tree6bd5150a20cb693ebb9e6be556aba49a98fc429d /ppapi
parent4c44183a500eed9fcc8b866612c601608d70ad52 (diff)
downloadchromium_src-10a202e93925c25bb8c8a216d1402f28446cdc0c.zip
chromium_src-10a202e93925c25bb8c8a216d1402f28446cdc0c.tar.gz
chromium_src-10a202e93925c25bb8c8a216d1402f28446cdc0c.tar.bz2
Add a PPB_Flash_Print interface and implement in Chrome.
This shares the implementation with the PDF interface. I put the implementation in the Flash file since that file was already so much smaller, and this one function didn't seem worth creating a new shared file for. This also does some cleanup of the Chrome PPB interfaces. I separated out the implementation of the NaCl interface into its own file, and moved everything into a new renderer/pepper subdirectory. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10173029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/api/private/ppb_flash.idl2
-rw-r--r--ppapi/api/private/ppb_flash_print.idl23
-rw-r--r--ppapi/c/private/ppb_flash.h4
-rw-r--r--ppapi/c/private/ppb_flash_print.h45
4 files changed, 71 insertions, 3 deletions
diff --git a/ppapi/api/private/ppb_flash.idl b/ppapi/api/private/ppb_flash.idl
index b083882..50c4624 100644
--- a/ppapi/api/private/ppb_flash.idl
+++ b/ppapi/api/private/ppb_flash.idl
@@ -117,7 +117,7 @@ interface PPB_Flash {
[in] PP_Rect rect);
/**
- * Invokes printing for the given instance.
+ * Does nothing, deprecated. See PPB_Flash_Print.
*/
[version=12.1]
int32_t InvokePrinting(
diff --git a/ppapi/api/private/ppb_flash_print.idl b/ppapi/api/private/ppb_flash_print.idl
new file mode 100644
index 0000000..1961b8b
--- /dev/null
+++ b/ppapi/api/private/ppb_flash_print.idl
@@ -0,0 +1,23 @@
+/* Copyright (c) 2012 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.
+ */
+
+/**
+ * This file contains the <code>PPB_Flash_Print</code> interface.
+ */
+
+label Chrome {
+ M20 = 1.0
+};
+
+/**
+ * The <code>PPB_Flash_Print</code> interface contains Flash-specific printing
+ * functionality.
+ */
+interface PPB_Flash_Print {
+ /**
+ * Invokes printing on the given plugin instance.
+ */
+ void InvokePrinting([in] PP_Instance instance);
+};
diff --git a/ppapi/c/private/ppb_flash.h b/ppapi/c/private/ppb_flash.h
index 7564693..ba501a3 100644
--- a/ppapi/c/private/ppb_flash.h
+++ b/ppapi/c/private/ppb_flash.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/ppb_flash.idl modified Tue Apr 10 15:38:45 2012. */
+/* From private/ppb_flash.idl modified Tue Apr 24 16:54:09 2012. */
#ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_
#define PPAPI_C_PRIVATE_PPB_FLASH_H_
@@ -115,7 +115,7 @@ struct PPB_Flash_12_2 {
*/
PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect);
/**
- * Invokes printing for the given instance.
+ * Does nothing, deprecated. See PPB_Flash_Print.
*/
int32_t (*InvokePrinting)(PP_Instance instance);
/**
diff --git a/ppapi/c/private/ppb_flash_print.h b/ppapi/c/private/ppb_flash_print.h
new file mode 100644
index 0000000..9eeb620
--- /dev/null
+++ b/ppapi/c/private/ppb_flash_print.h
@@ -0,0 +1,45 @@
+/* Copyright (c) 2012 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 private/ppb_flash_print.idl modified Tue Apr 24 16:55:10 2012. */
+
+#ifndef PPAPI_C_PRIVATE_PPB_FLASH_PRINT_H_
+#define PPAPI_C_PRIVATE_PPB_FLASH_PRINT_H_
+
+#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_stdint.h"
+
+#define PPB_FLASH_PRINT_INTERFACE_1_0 "PPB_Flash_Print;1.0"
+#define PPB_FLASH_PRINT_INTERFACE PPB_FLASH_PRINT_INTERFACE_1_0
+
+/**
+ * @file
+ * This file contains the <code>PPB_Flash_Print</code> interface.
+ */
+
+
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/**
+ * The <code>PPB_Flash_Print</code> interface contains Flash-specific printing
+ * functionality.
+ */
+struct PPB_Flash_Print_1_0 {
+ /**
+ * Invokes printing on the given plugin instance.
+ */
+ void (*InvokePrinting)(PP_Instance instance);
+};
+
+typedef struct PPB_Flash_Print_1_0 PPB_Flash_Print;
+/**
+ * @}
+ */
+
+#endif /* PPAPI_C_PRIVATE_PPB_FLASH_PRINT_H_ */
+