| 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_PROXY_PPB_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
| 10 #include "ppapi/c/pp_var.h" | 10 #include "ppapi/c/pp_var.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 public ppapi::thunk::PPB_Instance_FunctionAPI { | 27 public ppapi::thunk::PPB_Instance_FunctionAPI { |
| 28 public: | 28 public: |
| 29 PPB_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface); | 29 PPB_Instance_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 30 virtual ~PPB_Instance_Proxy(); | 30 virtual ~PPB_Instance_Proxy(); |
| 31 | 31 |
| 32 static const Info* GetInfo0_5(); | 32 static const Info* GetInfo0_5(); |
| 33 static const Info* GetInfo1_0(); | 33 static const Info* GetInfo1_0(); |
| 34 static const Info* GetInfoMessaging(); | 34 static const Info* GetInfoMessaging(); |
| 35 static const Info* GetInfoPrivate(); | 35 static const Info* GetInfoPrivate(); |
| 36 static const Info* GetInfoFullscreen(); | 36 static const Info* GetInfoFullscreen(); |
| 37 static const Info* GetInfoFullscreen_Dev(); |
| 37 | 38 |
| 38 // InterfaceProxy implementation. | 39 // InterfaceProxy implementation. |
| 39 virtual bool OnMessageReceived(const IPC::Message& msg); | 40 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 40 | 41 |
| 41 // FunctionGroupBase overrides. | 42 // FunctionGroupBase overrides. |
| 42 ppapi::thunk::PPB_Instance_FunctionAPI* AsPPB_Instance_FunctionAPI() OVERRIDE; | 43 ppapi::thunk::PPB_Instance_FunctionAPI* AsPPB_Instance_FunctionAPI() OVERRIDE; |
| 43 | 44 |
| 44 // PPB_Instance_FunctionAPI implementation. | 45 // PPB_Instance_FunctionAPI implementation. |
| 45 virtual PP_Bool BindGraphics(PP_Instance instance, | 46 virtual PP_Bool BindGraphics(PP_Instance instance, |
| 46 PP_Resource device) OVERRIDE; | 47 PP_Resource device) OVERRIDE; |
| 47 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; | 48 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; |
| 48 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; | 49 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; |
| 49 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; | 50 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; |
| 50 virtual PP_Var ExecuteScript(PP_Instance instance, | 51 virtual PP_Var ExecuteScript(PP_Instance instance, |
| 51 PP_Var script, | 52 PP_Var script, |
| 52 PP_Var* exception) OVERRIDE; | 53 PP_Var* exception) OVERRIDE; |
| 53 virtual PP_Bool IsFullscreen(PP_Instance instance) OVERRIDE; | 54 virtual PP_Bool IsFullscreen(PP_Instance instance) OVERRIDE; |
| 55 virtual PP_Bool IsFullscreen_Dev(PP_Instance instance) OVERRIDE; |
| 54 virtual PP_Bool SetFullscreen(PP_Instance instance, | 56 virtual PP_Bool SetFullscreen(PP_Instance instance, |
| 55 PP_Bool fullscreen) OVERRIDE; | 57 PP_Bool fullscreen) OVERRIDE; |
| 58 virtual PP_Bool SetFullscreen_Dev(PP_Instance instance, |
| 59 PP_Bool fullscreen) OVERRIDE; |
| 56 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) OVERRIDE; | 60 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) OVERRIDE; |
| 61 virtual PP_Bool GetScreenSize_Dev(PP_Instance instance, PP_Size* size) |
| 62 OVERRIDE; |
| 57 virtual int32_t RequestInputEvents(PP_Instance instance, | 63 virtual int32_t RequestInputEvents(PP_Instance instance, |
| 58 uint32_t event_classes) OVERRIDE; | 64 uint32_t event_classes) OVERRIDE; |
| 59 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 65 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
| 60 uint32_t event_classes) OVERRIDE; | 66 uint32_t event_classes) OVERRIDE; |
| 61 virtual void ClearInputEventRequest(PP_Instance instance, | 67 virtual void ClearInputEventRequest(PP_Instance instance, |
| 62 uint32_t event_classes) OVERRIDE; | 68 uint32_t event_classes) OVERRIDE; |
| 63 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; | 69 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; |
| 64 virtual void ZoomLimitsChanged(PP_Instance instance, | 70 virtual void ZoomLimitsChanged(PP_Instance instance, |
| 65 double minimum_factor, | 71 double minimum_factor, |
| 66 double maximium_factor) OVERRIDE; | 72 double maximium_factor) OVERRIDE; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 77 const ppapi::HostResource& device, | 83 const ppapi::HostResource& device, |
| 78 PP_Bool* result); | 84 PP_Bool* result); |
| 79 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); | 85 void OnMsgIsFullFrame(PP_Instance instance, PP_Bool* result); |
| 80 void OnMsgExecuteScript(PP_Instance instance, | 86 void OnMsgExecuteScript(PP_Instance instance, |
| 81 SerializedVarReceiveInput script, | 87 SerializedVarReceiveInput script, |
| 82 SerializedVarOutParam out_exception, | 88 SerializedVarOutParam out_exception, |
| 83 SerializedVarReturnValue result); | 89 SerializedVarReturnValue result); |
| 84 void OnMsgSetFullscreen(PP_Instance instance, | 90 void OnMsgSetFullscreen(PP_Instance instance, |
| 85 PP_Bool fullscreen, | 91 PP_Bool fullscreen, |
| 86 PP_Bool* result); | 92 PP_Bool* result); |
| 93 void OnMsgSetFullscreen_Dev(PP_Instance instance, |
| 94 PP_Bool fullscreen, |
| 95 PP_Bool* result); |
| 87 void OnMsgGetScreenSize(PP_Instance instance, | 96 void OnMsgGetScreenSize(PP_Instance instance, |
| 88 PP_Bool* result, | 97 PP_Bool* result, |
| 89 PP_Size* size); | 98 PP_Size* size); |
| 99 void OnMsgGetScreenSize_Dev(PP_Instance instance, |
| 100 PP_Bool* result, |
| 101 PP_Size* size); |
| 90 void OnMsgRequestInputEvents(PP_Instance instance, | 102 void OnMsgRequestInputEvents(PP_Instance instance, |
| 91 bool is_filtering, | 103 bool is_filtering, |
| 92 uint32_t event_classes); | 104 uint32_t event_classes); |
| 93 void OnMsgClearInputEvents(PP_Instance instance, | 105 void OnMsgClearInputEvents(PP_Instance instance, |
| 94 uint32_t event_classes); | 106 uint32_t event_classes); |
| 95 void OnMsgPostMessage(PP_Instance instance, | 107 void OnMsgPostMessage(PP_Instance instance, |
| 96 SerializedVarReceiveInput message); | 108 SerializedVarReceiveInput message); |
| 97 }; | 109 }; |
| 98 | 110 |
| 99 } // namespace proxy | 111 } // namespace proxy |
| 100 } // namespace ppapi | 112 } // namespace ppapi |
| 101 | 113 |
| 102 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 114 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
| OLD | NEW |