Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Side by Side Diff: mojo/public/platform/dart/mojo_natives.cc

Issue 1801793003: Move mojo::{Wait,WaitMany}() to (the newly-added) mojo/public/cpp/system/wait.h. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/cpp/utility/lib/run_loop.cc ('k') | services/js/system/core.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "dart/runtime/include/dart_api.h" 11 #include "dart/runtime/include/dart_api.h"
12 #include "mojo/public/c/system/buffer.h" 12 #include "mojo/public/c/system/buffer.h"
13 #include "mojo/public/c/system/data_pipe.h" 13 #include "mojo/public/c/system/data_pipe.h"
14 #include "mojo/public/c/system/handle.h" 14 #include "mojo/public/c/system/handle.h"
15 #include "mojo/public/c/system/message_pipe.h" 15 #include "mojo/public/c/system/message_pipe.h"
16 #include "mojo/public/c/system/result.h" 16 #include "mojo/public/c/system/result.h"
17 #include "mojo/public/c/system/time.h" 17 #include "mojo/public/c/system/time.h"
18 #include "mojo/public/cpp/environment/logging.h" 18 #include "mojo/public/cpp/environment/logging.h"
19 #include "mojo/public/cpp/system/core.h" 19 #include "mojo/public/cpp/system/core.h"
20 #include "mojo/public/cpp/system/macros.h" 20 #include "mojo/public/cpp/system/macros.h"
21 #include "mojo/public/cpp/system/wait.h"
21 #include "mojo/public/platform/dart/dart_handle_watcher.h" 22 #include "mojo/public/platform/dart/dart_handle_watcher.h"
22 23
23 namespace mojo { 24 namespace mojo {
24 namespace dart { 25 namespace dart {
25 26
26 #define REGISTER_FUNCTION(name, count) \ 27 #define REGISTER_FUNCTION(name, count) \
27 { "" #name, name, count }, 28 { "" #name, name, count },
28 #define DECLARE_FUNCTION(name, count) \ 29 #define DECLARE_FUNCTION(name, count) \
29 extern void name(Dart_NativeArguments args); 30 extern void name(Dart_NativeArguments args);
30 31
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 reinterpret_cast<const void*>(&command), 845 reinterpret_cast<const void*>(&command),
845 sizeof(command), 846 sizeof(command),
846 nullptr, 847 nullptr,
847 0, 848 0,
848 0); 849 0);
849 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(res)); 850 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(res));
850 } 851 }
851 852
852 } // namespace dart 853 } // namespace dart
853 } // namespace mojo 854 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/utility/lib/run_loop.cc ('k') | services/js/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698