OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium 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 "mojo/public/bindings/js/core.h" | 5 #include "mojo/public/bindings/js/core.h" |
6 | 6 |
7 #include "gin/arguments.h" | 7 #include "gin/arguments.h" |
8 #include "gin/array_buffer.h" | 8 #include "gin/array_buffer.h" |
9 #include "gin/converter.h" | 9 #include "gin/converter.h" |
10 #include "gin/dictionary.h" | 10 #include "gin/dictionary.h" |
11 #include "gin/per_isolate_data.h" | 11 #include "gin/per_isolate_data.h" |
12 #include "gin/wrapper_info.h" | 12 #include "gin/public/wrapper_info.h" |
13 #include "mojo/public/bindings/js/handle.h" | 13 #include "mojo/public/bindings/js/handle.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace js { | 16 namespace js { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 void Close(const v8::FunctionCallbackInfo<v8::Value>& info) { | 20 void Close(const v8::FunctionCallbackInfo<v8::Value>& info) { |
21 gin::Arguments args(info); | 21 gin::Arguments args(info); |
22 | 22 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 gin::ConvertToV8(isolate, MOJO_READ_MESSAGE_FLAG_MAY_DISCARD)); | 213 gin::ConvertToV8(isolate, MOJO_READ_MESSAGE_FLAG_MAY_DISCARD)); |
214 | 214 |
215 data->SetObjectTemplate(&g_core_wrapper_info, templ); | 215 data->SetObjectTemplate(&g_core_wrapper_info, templ); |
216 } | 216 } |
217 | 217 |
218 return templ; | 218 return templ; |
219 } | 219 } |
220 | 220 |
221 } // namespace js | 221 } // namespace js |
222 } // namespace mojo | 222 } // namespace mojo |
OLD | NEW |