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_url_util_dev.h" | 10 #include "ppapi/c/dev/ppb_url_util_dev.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 int32_t total, | 83 int32_t total, |
84 PP_Bool final_result) = 0; | 84 PP_Bool final_result) = 0; |
85 virtual void SelectedFindResultChanged(PP_Instance instance, | 85 virtual void SelectedFindResultChanged(PP_Instance instance, |
86 int32_t index) = 0; | 86 int32_t index) = 0; |
87 virtual void SetTickmarks(PP_Instance instance, | 87 virtual void SetTickmarks(PP_Instance instance, |
88 const PP_Rect* tickmarks, | 88 const PP_Rect* tickmarks, |
89 uint32_t count) = 0; | 89 uint32_t count) = 0; |
90 | 90 |
91 // Fullscreen. | 91 // Fullscreen. |
92 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; | 92 virtual PP_Bool IsFullscreen(PP_Instance instance) = 0; |
93 virtual PP_Bool SetFullscreen(PP_Instance instance, | 93 virtual PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) = 0; |
94 PP_Bool fullscreen) = 0; | |
95 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 94 virtual PP_Bool GetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
96 | 95 |
97 // This is an implementation-only function which grabs an instance of a | 96 // This is an implementation-only function which grabs an instance of a |
98 // "singleton resource". These are used to implement instance interfaces | 97 // "singleton resource". These are used to implement instance interfaces |
99 // (functions which are associated with the instance itself as opposed to a | 98 // (functions which are associated with the instance itself as opposed to a |
100 // resource). | 99 // resource). |
101 virtual Resource* GetSingletonResource( | 100 virtual Resource* GetSingletonResource(PP_Instance instance, |
102 PP_Instance instance, SingletonResourceID id) = 0; | 101 SingletonResourceID id) = 0; |
103 | 102 |
104 // InputEvent. | 103 // InputEvent. |
105 virtual int32_t RequestInputEvents(PP_Instance instance, | 104 virtual int32_t RequestInputEvents(PP_Instance instance, |
106 uint32_t event_classes) = 0; | 105 uint32_t event_classes) = 0; |
107 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, | 106 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, |
108 uint32_t event_classes) = 0; | 107 uint32_t event_classes) = 0; |
109 virtual void ClearInputEventRequest(PP_Instance instance, | 108 virtual void ClearInputEventRequest(PP_Instance instance, |
110 uint32_t event_classes) = 0; | 109 uint32_t event_classes) = 0; |
111 | 110 |
112 // Messaging. | 111 // Messaging. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 PP_URLComponents_Dev* components) = 0; | 192 PP_URLComponents_Dev* components) = 0; |
194 #endif // !defined(OS_NACL) | 193 #endif // !defined(OS_NACL) |
195 | 194 |
196 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 195 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
197 }; | 196 }; |
198 | 197 |
199 } // namespace thunk | 198 } // namespace thunk |
200 } // namespace ppapi | 199 } // namespace ppapi |
201 | 200 |
202 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 201 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |