Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: ppapi/cpp/instance.h

Issue 6062003: Added ppapi::Context3D interface. The API has already been reviewed. I am add... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/dev/graphics_3d_dev.cc ('k') | ppapi/cpp/instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_INSTANCE_H_ 5 #ifndef PPAPI_CPP_INSTANCE_H_
6 #define PPAPI_CPP_INSTANCE_H_ 6 #define PPAPI_CPP_INSTANCE_H_
7 7
8 /** 8 /**
9 * @file 9 * @file
10 * Defines the API ... 10 * Defines the API ...
11 * 11 *
12 * @addtogroup CPP 12 * @addtogroup CPP
13 * @{ 13 * @{
14 */ 14 */
15 15
16 #include <map> 16 #include <map>
17 #include <string> 17 #include <string>
18 18
19 #include "ppapi/c/pp_instance.h" 19 #include "ppapi/c/pp_instance.h"
20 #include "ppapi/c/pp_resource.h" 20 #include "ppapi/c/pp_resource.h"
21 #include "ppapi/c/pp_stdint.h" 21 #include "ppapi/c/pp_stdint.h"
22 22
23 struct PP_InputEvent; 23 struct PP_InputEvent;
24 24
25 /** The C++ interface to the Pepper API. */ 25 /** The C++ interface to the Pepper API. */
26 namespace pp { 26 namespace pp {
27 27
28 class Graphics2D; 28 class Graphics2D;
29 class Graphics3D_Dev; 29 class Context3D_Dev;
30 class ImageData; 30 class ImageData;
31 class Point; 31 class Point;
32 class Rect; 32 class Rect;
33 class Rect; 33 class Rect;
34 class Resource; 34 class Resource;
35 class URLLoader; 35 class URLLoader;
36 class Var; 36 class Var;
37 class Widget_Dev; 37 class Widget_Dev;
38 38
39 class Instance { 39 class Instance {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 /** See PPB_Instance.GetWindowObject. */ 82 /** See PPB_Instance.GetWindowObject. */
83 Var GetWindowObject(); 83 Var GetWindowObject();
84 84
85 /** See PPB_Instance.GetOwnerElementObject. */ 85 /** See PPB_Instance.GetOwnerElementObject. */
86 Var GetOwnerElementObject(); 86 Var GetOwnerElementObject();
87 87
88 /** See PPB_Instance.BindGraphics. */ 88 /** See PPB_Instance.BindGraphics. */
89 bool BindGraphics(const Graphics2D& graphics); 89 bool BindGraphics(const Graphics2D& graphics);
90 90
91 /** See PPB_Instance.BindGraphics. */ 91 /** See PPB_Instance.BindGraphics. */
92 bool BindGraphics(const Graphics3D_Dev& graphics); 92 // TODO(alokp): Change it to Surface3D.
93 bool BindGraphics(const Context3D_Dev& graphics);
93 94
94 /** See PPB_Instance.IsFullFrame. */ 95 /** See PPB_Instance.IsFullFrame. */
95 bool IsFullFrame(); 96 bool IsFullFrame();
96 97
97 /** See PPB_Instance.ExecuteScript. */ 98 /** See PPB_Instance.ExecuteScript. */
98 Var ExecuteScript(const Var& script, Var* exception = NULL); 99 Var ExecuteScript(const Var& script, Var* exception = NULL);
99 // @} 100 // @}
100 101
101 /** 102 /**
102 * Associates a plugin instance with an interface, 103 * Associates a plugin instance with an interface,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 InterfaceNameToObjectMap interface_name_to_objects_; 151 InterfaceNameToObjectMap interface_name_to_objects_;
151 }; 152 };
152 153
153 } // namespace pp 154 } // namespace pp
154 155
155 /** 156 /**
156 * @} 157 * @}
157 * End addtogroup CPP 158 * End addtogroup CPP
158 */ 159 */
159 #endif // PPAPI_CPP_INSTANCE_H_ 160 #endif // PPAPI_CPP_INSTANCE_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/graphics_3d_dev.cc ('k') | ppapi/cpp/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698