| 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/waiting_callback.h" | 5 #include "mojo/apps/js/bindings/waiting_callback.h" |
| 6 | 6 |
| 7 #include "gin/per_context_data.h" | 7 #include "gin/per_context_data.h" |
| 8 #include "gin/per_isolate_data.h" | 8 #include "gin/per_isolate_data.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace js { | 11 namespace js { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 v8::Handle<v8::String> GetHiddenPropertyName(v8::Isolate* isolate) { | 15 v8::Handle<v8::String> GetHiddenPropertyName(v8::Isolate* isolate) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 GetWrapper(isolate)->GetHiddenValue(GetHiddenPropertyName(isolate)); | 63 GetWrapper(isolate)->GetHiddenValue(GetHiddenPropertyName(isolate)); |
| 64 v8::Handle<v8::Function> callback; | 64 v8::Handle<v8::Function> callback; |
| 65 CHECK(gin::ConvertFromV8(isolate, hidden_value, &callback)); | 65 CHECK(gin::ConvertFromV8(isolate, hidden_value, &callback)); |
| 66 | 66 |
| 67 v8::Handle<v8::Value> args[] = { gin::ConvertToV8(isolate, result) }; | 67 v8::Handle<v8::Value> args[] = { gin::ConvertToV8(isolate, result) }; |
| 68 runner_->Call(callback, runner_->global(), 1, args); | 68 runner_->Call(callback, runner_->global(), 1, args); |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace js | 71 } // namespace js |
| 72 } // namespace mojo | 72 } // namespace mojo |
| OLD | NEW |