| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/bindings/js/handle.h" | 5 #include "mojo/edk/js/handle.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 #include "mojo/bindings/js/handle_close_observer.h" | 8 #include "mojo/edk/js/handle_close_observer.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace js { | 11 namespace js { |
| 12 | 12 |
| 13 gin::WrapperInfo HandleWrapper::kWrapperInfo = { gin::kEmbedderNativeGin }; | 13 gin::WrapperInfo HandleWrapper::kWrapperInfo = { gin::kEmbedderNativeGin }; |
| 14 | 14 |
| 15 HandleWrapper::HandleWrapper(MojoHandle handle) | 15 HandleWrapper::HandleWrapper(MojoHandle handle) |
| 16 : handle_(mojo::Handle(handle)) { | 16 : handle_(mojo::Handle(handle)) { |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool Converter<mojo::MessagePipeHandle>::FromV8(v8::Isolate* isolate, | 94 bool Converter<mojo::MessagePipeHandle>::FromV8(v8::Isolate* isolate, |
| 95 v8::Handle<v8::Value> val, | 95 v8::Handle<v8::Value> val, |
| 96 mojo::MessagePipeHandle* out) { | 96 mojo::MessagePipeHandle* out) { |
| 97 return Converter<mojo::Handle>::FromV8(isolate, val, out); | 97 return Converter<mojo::Handle>::FromV8(isolate, val, out); |
| 98 } | 98 } |
| 99 | 99 |
| 100 | 100 |
| 101 } // namespace gin | 101 } // namespace gin |
| OLD | NEW |