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" |
(...skipping 15 matching lines...) Expand all Loading... |
26 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; | 26 virtual PP_Var GetOwnerElementObject(PP_Instance instance) = 0; |
27 virtual PP_Var ExecuteScript(PP_Instance instance, | 27 virtual PP_Var ExecuteScript(PP_Instance instance, |
28 PP_Var script, | 28 PP_Var script, |
29 PP_Var* exception) = 0; | 29 PP_Var* exception) = 0; |
30 | 30 |
31 // Fullscreen. | 31 // Fullscreen. |
32 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; | 32 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; |
33 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0; | 33 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0; |
34 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 34 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
35 | 35 |
| 36 // InputEvent. |
| 37 virtual int32_t RequestInputEvents(PP_Instance instance, |
| 38 uint32_t event_classes) = 0; |
| 39 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
| 40 uint32_t event_classes) = 0; |
| 41 virtual void ClearInputEventRequest(PP_Instance instance, |
| 42 uint32_t event_classes) = 0; |
| 43 |
36 static const ::pp::proxy::InterfaceID interface_id = | 44 static const ::pp::proxy::InterfaceID interface_id = |
37 ::pp::proxy::INTERFACE_ID_PPB_INSTANCE; | 45 ::pp::proxy::INTERFACE_ID_PPB_INSTANCE; |
38 }; | 46 }; |
39 | 47 |
40 } // namespace thunk | 48 } // namespace thunk |
41 } // namespace ppapi | 49 } // namespace ppapi |
42 | 50 |
43 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 51 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |