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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 struct PPP_MessageHandler_0_2; | 36 struct PPP_MessageHandler_0_2; |
37 | 37 |
38 namespace ppapi { | 38 namespace ppapi { |
39 | 39 |
40 class Resource; | 40 class Resource; |
41 class TrackedCallback; | 41 class TrackedCallback; |
42 struct ViewData; | 42 struct ViewData; |
43 | 43 |
44 namespace thunk { | 44 namespace thunk { |
45 | 45 |
46 class PPB_Flash_API; | |
47 | |
48 class PPB_Instance_API { | 46 class PPB_Instance_API { |
49 public: | 47 public: |
50 virtual ~PPB_Instance_API() {} | 48 virtual ~PPB_Instance_API() {} |
51 | 49 |
52 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; | 50 virtual PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) = 0; |
53 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; | 51 virtual PP_Bool IsFullFrame(PP_Instance instance) = 0; |
54 | 52 |
55 // Unexposed PPAPI functions for proxying. | 53 // Unexposed PPAPI functions for proxying. |
56 // Returns the internal view data struct. | 54 // Returns the internal view data struct. |
57 virtual const ViewData* GetViewData(PP_Instance instance) = 0; | 55 virtual const ViewData* GetViewData(PP_Instance instance) = 0; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 PP_URLComponents_Dev* components) = 0; | 211 PP_URLComponents_Dev* components) = 0; |
214 #endif // !defined(OS_NACL) | 212 #endif // !defined(OS_NACL) |
215 | 213 |
216 static const ApiID kApiID = API_ID_PPB_INSTANCE; | 214 static const ApiID kApiID = API_ID_PPB_INSTANCE; |
217 }; | 215 }; |
218 | 216 |
219 } // namespace thunk | 217 } // namespace thunk |
220 } // namespace ppapi | 218 } // namespace ppapi |
221 | 219 |
222 #endif // PPAPI_THUNK_INSTANCE_API_H_ | 220 #endif // PPAPI_THUNK_INSTANCE_API_H_ |
OLD | NEW |