| 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 "sky/engine/config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/bindings2/mojo_natives.h" | 6 #include "sky/engine/bindings/mojo_natives.h" |
| 7 | 7 |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "dart/runtime/include/dart_api.h" | 15 #include "dart/runtime/include/dart_api.h" |
| 16 #include "mojo/public/c/system/core.h" | 16 #include "mojo/public/c/system/core.h" |
| 17 #include "mojo/public/cpp/system/core.h" | 17 #include "mojo/public/cpp/system/core.h" |
| 18 #include "sky/engine/bindings2/builtin.h" | 18 #include "sky/engine/bindings/builtin.h" |
| 19 #include "sky/engine/tonic/dart_converter.h" | 19 #include "sky/engine/tonic/dart_converter.h" |
| 20 #include "sky/engine/tonic/dart_builtin.h" | 20 #include "sky/engine/tonic/dart_builtin.h" |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 #define REGISTER_FUNCTION(name, count) \ | 24 #define REGISTER_FUNCTION(name, count) \ |
| 25 { "" #name, name, count }, | 25 { "" #name, name, count }, |
| 26 #define DECLARE_FUNCTION(name, count) \ | 26 #define DECLARE_FUNCTION(name, count) \ |
| 27 extern void name(Dart_NativeArguments args); | 27 extern void name(Dart_NativeArguments args); |
| 28 | 28 |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 CHECK_INTEGER_ARGUMENT(arguments, 0, &control_handle, InvalidArgument); | 800 CHECK_INTEGER_ARGUMENT(arguments, 0, &control_handle, InvalidArgument); |
| 801 mojo_control_handle = control_handle; | 801 mojo_control_handle = control_handle; |
| 802 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(MOJO_RESULT_OK)); | 802 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(MOJO_RESULT_OK)); |
| 803 } | 803 } |
| 804 | 804 |
| 805 void MojoHandleWatcher_GetControlHandle(Dart_NativeArguments arguments) { | 805 void MojoHandleWatcher_GetControlHandle(Dart_NativeArguments arguments) { |
| 806 Dart_SetIntegerReturnValue(arguments, mojo_control_handle); | 806 Dart_SetIntegerReturnValue(arguments, mojo_control_handle); |
| 807 } | 807 } |
| 808 | 808 |
| 809 } // namespace blink | 809 } // namespace blink |
| OLD | NEW |