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 "native_client/tests/fake_browser_ppapi/fake_window.h" | 7 #include "native_client/tests/fake_browser_ppapi/fake_window.h" |
8 #include <string.h> | 8 #include <string.h> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "native_client/src/include/checked_cast.h" | 12 #include "native_client/src/include/checked_cast.h" |
13 #include "native_client/src/include/portability.h" | 13 #include "native_client/src/include/portability.h" |
14 #include "native_client/src/shared/ppapi_proxy/utility.h" | |
15 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" | 14 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" |
16 #include "native_client/tests/fake_browser_ppapi/fake_object.h" | 15 #include "native_client/tests/fake_browser_ppapi/fake_object.h" |
| 16 #include "native_client/tests/fake_browser_ppapi/utility.h" |
17 #include "ppapi/c/dev/ppb_var_deprecated.h" | 17 #include "ppapi/c/dev/ppb_var_deprecated.h" |
18 #include "ppapi/c/pp_var.h" | 18 #include "ppapi/c/pp_var.h" |
19 | 19 |
20 using fake_browser_ppapi::Object; | 20 using fake_browser_ppapi::Object; |
21 using ppapi_proxy::PluginVar; | 21 using ppapi_proxy::PluginVar; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 PP_Var* NewStringVar(PP_Module browser_module, const char* str) { | 25 PP_Var* NewStringVar(PP_Module browser_module, const char* str) { |
26 static const PPB_Var_Deprecated* ppb_var = NULL; | 26 static const PPB_Var_Deprecated* ppb_var = NULL; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 FakeWindow::~FakeWindow() { | 130 FakeWindow::~FakeWindow() { |
131 host_->var_interface()->Release(window_var_); | 131 host_->var_interface()->Release(window_var_); |
132 } | 132 } |
133 | 133 |
134 PP_Var FakeWindow::FakeWindowObject() { | 134 PP_Var FakeWindow::FakeWindowObject() { |
135 host_->var_interface()->AddRef(window_var_); | 135 host_->var_interface()->AddRef(window_var_); |
136 return window_var_; | 136 return window_var_; |
137 } | 137 } |
138 | 138 |
139 } // namespace fake_browser_ppapi | 139 } // namespace fake_browser_ppapi |
OLD | NEW |