OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The Native Client Authors. All rights reserved. | 2 * Copyright 2008 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 | 7 |
8 #include "native_client/src/trusted/plugin/npapi/video.h" | 8 #include "native_client/src/trusted/plugin/npapi/video.h" |
9 | 9 |
10 #if NACL_OSX | 10 #if NACL_OSX |
11 #include <Carbon/Carbon.h> | 11 #include <Carbon/Carbon.h> |
12 #endif // NACL_OSX | 12 #endif // NACL_OSX |
13 #if NACL_WINDOWS | 13 #if NACL_WINDOWS |
14 #include <windows.h> | 14 #include <windows.h> |
15 #include <windowsx.h> | 15 #include <windowsx.h> |
16 #endif // NACL_WINDOWS | 16 #endif // NACL_WINDOWS |
17 #if NACL_LINUX && defined(MOZ_X11) | 17 #if NACL_LINUX && defined(MOZ_X11) |
18 #include <sched.h> | 18 #include <sched.h> |
19 #include <X11/Xlib.h> | 19 #include <X11/Xlib.h> |
20 #include <X11/Intrinsic.h> | 20 #include <X11/Intrinsic.h> |
21 #include <X11/keysym.h> | 21 #include <X11/keysym.h> |
22 #endif // NACL_LINUX && defined(MOZ_X11) | 22 #endif // NACL_LINUX && defined(MOZ_X11) |
23 | 23 |
24 #include "native_client/src/include/nacl_base.h" | 24 #include "native_client/src/include/nacl_base.h" |
25 #include "native_client/src/include/checked_cast.h" | 25 #include "native_client/src/include/checked_cast.h" |
| 26 #include "native_client/src/trusted/plugin/browser_interface.h" |
26 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" | 27 #include "native_client/src/trusted/plugin/npapi/browser_impl_npapi.h" |
27 #include "native_client/src/trusted/plugin/srpc/browser_interface.h" | 28 #include "native_client/src/trusted/plugin/plugin.h" |
28 #include "native_client/src/trusted/plugin/srpc/plugin.h" | 29 #include "native_client/src/trusted/plugin/portable_handle.h" |
29 #include "native_client/src/trusted/plugin/srpc/portable_handle.h" | 30 #include "native_client/src/trusted/plugin/scriptable_handle.h" |
30 #include "native_client/src/trusted/plugin/srpc/scriptable_handle.h" | 31 #include "native_client/src/trusted/plugin/shared_memory.h" |
31 #include "native_client/src/trusted/plugin/srpc/shared_memory.h" | |
32 | 32 |
33 using nacl::can_cast; | 33 using nacl::can_cast; |
34 using nacl::saturate_cast; | 34 using nacl::saturate_cast; |
35 | 35 |
36 // TODO(nfullagar): this could be cleaner/more readable for | 36 // TODO(nfullagar): this could be cleaner/more readable for |
37 // platform-specific implementations to go into separate files under | 37 // platform-specific implementations to go into separate files under |
38 // platform subdirectories, rather than using ifdefs. | 38 // platform subdirectories, rather than using ifdefs. |
39 | 39 |
40 namespace plugin { | 40 namespace plugin { |
41 | 41 |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 } | 1361 } |
1362 #if NACL_WINDOWS | 1362 #if NACL_WINDOWS |
1363 if (window_ && window_->window) { | 1363 if (window_ && window_->window) { |
1364 SubclassWindow(reinterpret_cast<HWND>(window_->window), | 1364 SubclassWindow(reinterpret_cast<HWND>(window_->window), |
1365 original_window_procedure_); | 1365 original_window_procedure_); |
1366 } | 1366 } |
1367 #endif // NACL_WINDOWS | 1367 #endif // NACL_WINDOWS |
1368 } | 1368 } |
1369 | 1369 |
1370 } // namespace plugin | 1370 } // namespace plugin |
OLD | NEW |