OLD | NEW |
| (Empty) |
1 /* | |
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 | |
4 * be found in the LICENSE file. | |
5 */ | |
6 | |
7 #ifndef NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_WINDOW_H_ | |
8 #define NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_WINDOW_H_ | |
9 | |
10 #include "native_client/src/include/nacl_macros.h" | |
11 #include "native_client/src/include/portability.h" | |
12 #include "native_client/tests/fake_browser_ppapi/fake_host.h" | |
13 #include "native_client/tests/fake_browser_ppapi/fake_object.h" | |
14 #include "ppapi/c/pp_instance.h" | |
15 #include "ppapi/c/pp_module.h" | |
16 #include "ppapi/c/pp_var.h" | |
17 | |
18 namespace fake_browser_ppapi { | |
19 | |
20 // Implements a fake window DOM object. | |
21 class FakeWindow { | |
22 public: | |
23 FakeWindow(PP_Module browser_module, PP_Instance browser_instance, | |
24 Host* host, const char* page_url); | |
25 ~FakeWindow(); | |
26 PP_Var FakeWindowObject(); | |
27 | |
28 private: | |
29 PP_Var window_var_; | |
30 Host* host_; | |
31 NACL_DISALLOW_COPY_AND_ASSIGN(FakeWindow); | |
32 }; | |
33 | |
34 } // namespace fake_browser_ppapi | |
35 | |
36 #endif // NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_WINDOW_H_ | |
OLD | NEW |