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

Side by Side Diff: mojo/dart/embedder/mojo_natives.cc

Issue 1346773002: Stop running pub get at gclient sync time and fix build bugs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 3 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
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 #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
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
OLDNEW
« DEPS ('K') | « mojo/dart/embedder/mojo_natives.h ('k') | mojo/dart/embedder/vmservice.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698