OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 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 #include <stdio.h> | 7 #include <stdio.h> |
8 #include "native_client/tests/fake_browser_ppapi/fake_instance.h" | 8 #include "native_client/tests/fake_browser_ppapi/fake_instance.h" |
9 | 9 |
10 #include "native_client/src/include/nacl_macros.h" | 10 #include "native_client/src/include/nacl_macros.h" |
11 #include "native_client/src/include/portability.h" | 11 #include "native_client/src/include/portability.h" |
12 #include "native_client/src/shared/ppapi_proxy/utility.h" | |
13 #include "native_client/tests/fake_browser_ppapi/fake_window.h" | 12 #include "native_client/tests/fake_browser_ppapi/fake_window.h" |
| 13 #include "native_client/tests/fake_browser_ppapi/utility.h" |
14 #include "ppapi/c/ppb_instance.h" | 14 #include "ppapi/c/ppb_instance.h" |
15 | 15 |
16 using ppapi_proxy::DebugPrintf; | 16 using fake_browser_ppapi::DebugPrintf; |
17 | 17 |
18 namespace fake_browser_ppapi { | 18 namespace fake_browser_ppapi { |
19 | 19 |
20 PP_Var Instance::GetWindowObject() { | 20 PP_Var Instance::GetWindowObject() { |
21 DebugPrintf("Instance::GetWindowObject: instance=%p\n", | 21 DebugPrintf("Instance::GetWindowObject: instance=%p\n", |
22 reinterpret_cast<void*>(this)); | 22 reinterpret_cast<void*>(this)); |
23 return window_->FakeWindowObject(); | 23 return window_->FakeWindowObject(); |
24 } | 24 } |
25 | 25 |
26 PP_Var Instance::GetOwnerElementObject() { | 26 PP_Var Instance::GetOwnerElementObject() { |
(...skipping 22 matching lines...) Expand all Loading... |
49 PP_Var* exception) { | 49 PP_Var* exception) { |
50 DebugPrintf("Instance::ExecuteScript: instance=%p\n", | 50 DebugPrintf("Instance::ExecuteScript: instance=%p\n", |
51 reinterpret_cast<void*>(this)); | 51 reinterpret_cast<void*>(this)); |
52 NACL_UNIMPLEMENTED(); | 52 NACL_UNIMPLEMENTED(); |
53 UNREFERENCED_PARAMETER(script); | 53 UNREFERENCED_PARAMETER(script); |
54 UNREFERENCED_PARAMETER(exception); | 54 UNREFERENCED_PARAMETER(exception); |
55 return PP_MakeUndefined(); | 55 return PP_MakeUndefined(); |
56 } | 56 } |
57 | 57 |
58 } // namespace fake_browser_ppapi | 58 } // namespace fake_browser_ppapi |
OLD | NEW |