summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authornoelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 23:00:10 +0000
committernoelallen@chromium.org <noelallen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-16 23:00:10 +0000
commit032bea31ce9cd207e27c6007806703a1f72919e3 (patch)
treea5467f449006600650a0ae6c5fc67b933ef5f6b6 /ppapi
parent7d6fb2281a9d7b9c041cfbb0cdc72c74c6b09070 (diff)
downloadchromium_src-032bea31ce9cd207e27c6007806703a1f72919e3.zip
chromium_src-032bea31ce9cd207e27c6007806703a1f72919e3.tar.gz
chromium_src-032bea31ce9cd207e27c6007806703a1f72919e3.tar.bz2
Add missing ppp_graphics_3d.idl
The ppb version of the interface was added, this CL adds the missing ppp portion. See: http://codereview.chromium.org/9340003 Alok for verification, Brett for OWNER. R=alokp@chromium.org,brettw@chromium.org Review URL: http://codereview.chromium.org/9689076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/api/ppp_graphics_3d.idl25
-rw-r--r--ppapi/c/ppp_graphics_3d.h32
-rw-r--r--ppapi/proxy/ppp_graphics_3d_proxy.h5
3 files changed, 56 insertions, 6 deletions
diff --git a/ppapi/api/ppp_graphics_3d.idl b/ppapi/api/ppp_graphics_3d.idl
new file mode 100644
index 0000000..d3aa3b0
--- /dev/null
+++ b/ppapi/api/ppp_graphics_3d.idl
@@ -0,0 +1,25 @@
+/* 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.
+ */
+
+/**
+ * Defines the <code>PPP_Graphics3D</code> struct representing a 3D graphics
+ * context within the browser.
+ */
+
+label Chrome {
+ M15 = 1.0
+};
+
+/**
+ * <code>PPP_Graphics3D</code> defines the notification interface for a 3D
+ * graphics context.
+ */
+[macro="PPP_GRAPHICS_3D_INTERFACE"]
+interface PPP_Graphics3D {
+ /**
+ * Called when the OpenGL ES window is invalidated and needs to be repainted.
+ */
+ void Graphics3DContextLost(PP_Instance instance);
+};
diff --git a/ppapi/c/ppp_graphics_3d.h b/ppapi/c/ppp_graphics_3d.h
index a40d94f..df45276 100644
--- a/ppapi/c/ppp_graphics_3d.h
+++ b/ppapi/c/ppp_graphics_3d.h
@@ -1,20 +1,46 @@
-/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
+/* 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 ppp_graphics_3d.idl modified Tue Mar 13 12:09:59 2012. */
+
#ifndef PPAPI_C_PPP_GRAPHICS_3D_H_
#define PPAPI_C_PPP_GRAPHICS_3D_H_
#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/pp_macros.h"
+#include "ppapi/c/pp_stdint.h"
+
+#define PPP_GRAPHICS_3D_INTERFACE_1_0 "PPP_Graphics3D;1.0"
+#define PPP_GRAPHICS_3D_INTERFACE PPP_GRAPHICS_3D_INTERFACE_1_0
+
+/**
+ * @file
+ * Defines the <code>PPP_Graphics3D</code> struct representing a 3D graphics
+ * context within the browser.
+ */
-#define PPP_GRAPHICS_3D_INTERFACE "PPP_Graphics_3D;1.0"
-struct PPP_Graphics3D {
+/**
+ * @addtogroup Interfaces
+ * @{
+ */
+/**
+ * <code>PPP_Graphics3D</code> defines the notification interface for a 3D
+ * graphics context.
+ */
+struct PPP_Graphics3D_1_0 {
/**
* Called when the OpenGL ES window is invalidated and needs to be repainted.
*/
void (*Graphics3DContextLost)(PP_Instance instance);
};
+typedef struct PPP_Graphics3D_1_0 PPP_Graphics3D;
+/**
+ * @}
+ */
+
#endif /* PPAPI_C_PPP_GRAPHICS_3D_H_ */
diff --git a/ppapi/proxy/ppp_graphics_3d_proxy.h b/ppapi/proxy/ppp_graphics_3d_proxy.h
index e340424..9b4d7a0 100644
--- a/ppapi/proxy/ppp_graphics_3d_proxy.h
+++ b/ppapi/proxy/ppp_graphics_3d_proxy.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -6,11 +6,10 @@
#define PPAPI_PROXY_PPP_GRAPHICS_3D_PROXY_H_
#include "ppapi/c/pp_instance.h"
+#include "ppapi/c/ppp_graphics_3d.h"
#include "ppapi/proxy/interface_proxy.h"
#include "ppapi/shared_impl/host_resource.h"
-struct PPP_Graphics3D;
-
namespace ppapi {
namespace proxy {