| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/c/ppb_instance.h" | 8 #include "ppapi/c/ppb_instance.h" |
| 9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
| 10 #include "ppapi/c/pp_size.h" | 10 #include "ppapi/c/pp_size.h" |
| 11 #include "ppapi/c/private/ppb_instance_private.h" | 11 #include "ppapi/c/private/ppb_instance_private.h" |
| 12 #include "ppapi/proxy/interface_id.h" | 12 #include "ppapi/proxy/interface_id.h" |
| 13 | 13 |
| 14 namespace ppapi { | 14 namespace ppapi { |
| 15 namespace thunk { | 15 namespace thunk { |
| 16 | 16 |
| 17 class PPB_Instance_FunctionAPI { | 17 class PPB_Instance_FunctionAPI { |
| 18 public: | 18 public: |
| 19 static const ::pp::proxy::InterfaceID interface_id = | 19 virtual ~PPB_Instance_FunctionAPI() {} |
| 20 ::pp::proxy::INTERFACE_ID_PPB_INSTANCE; | |
| 21 | 20 |
| 22 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 21 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
| 23 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 22 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
| 24 | 23 |
| 25 // InstancePrivate. | 24 // InstancePrivate. |
| 26 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; | 25 virtual PP_Var GetWindowObject(PP_Instance instance) = 0; |
| 27 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; | 26 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; |
| 28 virtual PP_Var ExecuteScript(PP_Instance instance, | 27 virtual PP_Var ExecuteScript(PP_Instance instance, |
| 29 PP_Var script, | 28 PP_Var script, |
| 30 PP_Var* exception) = 0; | 29 PP_Var* exception) = 0; |
| 31 | 30 |
| 32 // Fullscreen. | 31 // Fullscreen. |
| 33 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; | 32 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; |
| 34 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0; | 33 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0; |
| 35 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 34 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
| 35 |
| 36 static const ::pp::proxy::InterfaceID interface_id = |
| 37 ::pp::proxy::INTERFACE_ID_PPB_INSTANCE; |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace thunk | 40 } // namespace thunk |
| 39 } // namespace ppapi | 41 } // namespace ppapi |
| 40 | 42 |
| 41 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 43 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
| OLD | NEW |