OLD | NEW |
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 // Copyright (c) 2011 The Native Client 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 #include "native_client/src/shared/ppapi_proxy/browser_ppp_instance.h" | 5 #include "native_client/src/shared/ppapi_proxy/browser_ppp_instance.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
11 // Include file order cannot be observed because ppp_instance declares a | |
12 // structure return type that causes an error on Windows. | |
13 // TODO(sehr, brettw): fix the return types and include order in PPAPI. | |
14 #include "native_client/src/third_party/ppapi/c/pp_input_event.h" | |
15 #include "native_client/src/third_party/ppapi/c/pp_resource.h" | |
16 #include "native_client/src/third_party/ppapi/c/pp_var.h" | |
17 #include "native_client/src/third_party/ppapi/c/ppp_instance.h" | |
18 #include "srpcgen/ppp_rpc.h" | |
19 #include "native_client/src/include/checked_cast.h" | 11 #include "native_client/src/include/checked_cast.h" |
20 #include "native_client/src/include/nacl_scoped_ptr.h" | 12 #include "native_client/src/include/nacl_scoped_ptr.h" |
21 #include "native_client/src/include/portability.h" | 13 #include "native_client/src/include/portability.h" |
22 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" | 14 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" |
23 #include "native_client/src/shared/ppapi_proxy/browser_ppp.h" | 15 #include "native_client/src/shared/ppapi_proxy/browser_ppp.h" |
| 16 #include "native_client/src/shared/ppapi_proxy/browser_ppp_input_event.h" |
| 17 #include "native_client/src/shared/ppapi_proxy/trusted/srpcgen/ppp_rpc.h" |
24 #include "native_client/src/shared/ppapi_proxy/utility.h" | 18 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 19 #include "native_client/src/third_party/ppapi/c/pp_input_event.h" |
| 20 #include "native_client/src/third_party/ppapi/c/pp_resource.h" |
| 21 #include "native_client/src/third_party/ppapi/c/pp_var.h" |
| 22 #include "native_client/src/third_party/ppapi/c/ppp_instance.h" |
25 | 23 |
26 using nacl::scoped_array; | 24 using nacl::scoped_array; |
27 | 25 |
28 namespace ppapi_proxy { | 26 namespace ppapi_proxy { |
29 | 27 |
30 namespace { | 28 namespace { |
31 | 29 |
32 char* ArgArraySerialize(int argc, | 30 char* ArgArraySerialize(int argc, |
33 const char* array[], | 31 const char* array[], |
34 uint32_t* serial_size) { | 32 uint32_t* serial_size) { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 DidDestroy, | 188 DidDestroy, |
191 DidChangeView, | 189 DidChangeView, |
192 DidChangeFocus, | 190 DidChangeFocus, |
193 HandleInputEvent, | 191 HandleInputEvent, |
194 HandleDocumentLoad | 192 HandleDocumentLoad |
195 }; | 193 }; |
196 return &instance_interface; | 194 return &instance_interface; |
197 } | 195 } |
198 | 196 |
199 } // namespace ppapi_proxy | 197 } // namespace ppapi_proxy |
OLD | NEW |