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