OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THUNK_INSTANCE_API_H_ | 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_ |
6 #define PPAPI_THUNK_INSTANCE_API_H_ | 6 #define PPAPI_THUNK_INSTANCE_API_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ppapi/c/dev/ppb_console_dev.h" | 10 #include "ppapi/c/dev/ppb_console_dev.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class PPB_Flash_API; | 43 class PPB_Flash_API; |
44 | 44 |
45 class PPB_Instance_API { | 45 class PPB_Instance_API { |
46 public: | 46 public: |
47 virtual ~PPB_Instance_API() {} | 47 virtual ~PPB_Instance_API() {} |
48 | 48 |
49 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 49 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
50 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 50 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
51 | 51 |
52 // Not an exposed PPAPI function, this returns the internal view data struct. | 52 // Unexposed PPAPI functions for proxying. |
| 53 // Returns the internal view data struct. |
53 virtual const ViewData* GetViewData(PP_Instance instance) = 0; | 54 virtual const ViewData* GetViewData(PP_Instance instance) = 0; |
| 55 // Returns the flash fullscreen status. |
| 56 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; |
54 | 57 |
55 // InstancePrivate. | 58 // InstancePrivate. |
56 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; | 59 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; |
57 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; | 60 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; |
58 virtual PP_Var ExecuteScript(PP_Instance instance, | 61 virtual PP_Var ExecuteScript(PP_Instance instance, |
59 PP_Var script, | 62 PP_Var script, |
60 PP_Var* exception) = 0; | 63 PP_Var* exception) = 0; |
61 | 64 |
62 // Audio. | 65 // Audio. |
63 virtual uint32_t GetAudioHardwareOutputSampleRate(PP_Instance instance) = 0; | 66 virtual uint32_t GetAudioHardwareOutputSampleRate(PP_Instance instance) = 0; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 PP_URLComponents_Dev* components) = 0; | 199 PP_URLComponents_Dev* components) = 0; |
197 #endif // !defined(OS_NACL) | 200 #endif // !defined(OS_NACL) |
198 | 201 |
199 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 202 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
200 }; | 203 }; |
201 | 204 |
202 } // namespace thunk | 205 } // namespace thunk |
203 } // namespace ppapi | 206 } // namespace ppapi |
204 | 207 |
205 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 208 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |