| 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 <stdio.h> | 5 #include <stdio.h> |
| 6 #include <string.h> | 6 #include <string.h> |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "dart/runtime/include/dart_api.h" | |
| 14 #include "mojo/dart/embedder/builtin.h" | 13 #include "mojo/dart/embedder/builtin.h" |
| 15 #include "mojo/dart/embedder/mojo_dart_state.h" | 14 #include "mojo/dart/embedder/mojo_dart_state.h" |
| 16 #include "mojo/public/c/system/core.h" | 15 #include "mojo/public/c/system/core.h" |
| 17 #include "mojo/public/cpp/system/core.h" | 16 #include "mojo/public/cpp/system/core.h" |
| 17 #include "mojo/public/third_party/dart/runtime/include/dart_api.h" |
| 18 | 18 |
| 19 namespace mojo { | 19 namespace mojo { |
| 20 namespace dart { | 20 namespace dart { |
| 21 | 21 |
| 22 #define MOJO_NATIVE_LIST(V) \ | 22 #define MOJO_NATIVE_LIST(V) \ |
| 23 V(MojoSharedBuffer_Create, 2) \ | 23 V(MojoSharedBuffer_Create, 2) \ |
| 24 V(MojoSharedBuffer_Duplicate, 2) \ | 24 V(MojoSharedBuffer_Duplicate, 2) \ |
| 25 V(MojoSharedBuffer_Map, 5) \ | 25 V(MojoSharedBuffer_Map, 5) \ |
| 26 V(MojoSharedBuffer_Unmap, 1) \ | 26 V(MojoSharedBuffer_Unmap, 1) \ |
| 27 V(MojoDataPipe_Create, 3) \ | 27 V(MojoDataPipe_Create, 3) \ |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 mojo_control_handle = control_handle; | 786 mojo_control_handle = control_handle; |
| 787 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(MOJO_RESULT_OK)); | 787 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(MOJO_RESULT_OK)); |
| 788 } | 788 } |
| 789 | 789 |
| 790 void MojoHandleWatcher_GetControlHandle(Dart_NativeArguments arguments) { | 790 void MojoHandleWatcher_GetControlHandle(Dart_NativeArguments arguments) { |
| 791 Dart_SetIntegerReturnValue(arguments, mojo_control_handle); | 791 Dart_SetIntegerReturnValue(arguments, mojo_control_handle); |
| 792 } | 792 } |
| 793 | 793 |
| 794 } // namespace dart | 794 } // namespace dart |
| 795 } // namespace mojo | 795 } // namespace mojo |
| OLD | NEW |