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 #ifndef MOJO_DART_EMBEDDER_BUILTIN_H_ | 5 #ifndef MOJO_DART_EMBEDDER_BUILTIN_H_ |
6 #define MOJO_DART_EMBEDDER_BUILTIN_H_ | 6 #define MOJO_DART_EMBEDDER_BUILTIN_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
11 | 11 |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "dart/runtime/include/dart_api.h" | 13 #include "mojo/public/third_party/dart/runtime/include/dart_api.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace dart { | 16 namespace dart { |
17 | 17 |
18 #define REGISTER_FUNCTION(name, count) \ | 18 #define REGISTER_FUNCTION(name, count) \ |
19 { "" #name, name, count }, | 19 { "" #name, name, count }, |
20 #define DECLARE_FUNCTION(name, count) \ | 20 #define DECLARE_FUNCTION(name, count) \ |
21 extern void name(Dart_NativeArguments args); | 21 extern void name(Dart_NativeArguments args); |
22 | 22 |
23 class Builtin { | 23 class Builtin { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 static const char* mojo_core_patch_resource_names_[]; | 76 static const char* mojo_core_patch_resource_names_[]; |
77 static const char* mojo_io_patch_resource_names_[]; | 77 static const char* mojo_io_patch_resource_names_[]; |
78 | 78 |
79 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); | 79 DISALLOW_IMPLICIT_CONSTRUCTORS(Builtin); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace dart | 82 } // namespace dart |
83 } // namespace mojo | 83 } // namespace mojo |
84 | 84 |
85 #endif // MOJO_DART_EMBEDDER_BUILTIN_H_ | 85 #endif // MOJO_DART_EMBEDDER_BUILTIN_H_ |
OLD | NEW |