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

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

Issue 876023003: Dart: Changes to support building for Android. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/BUILD.gn ('k') | mojo/dart/embedder/test/BUILD.gn » ('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 #include <vector>
7 8
8 #include "base/logging.h" 9 #include "base/logging.h"
9 #include "base/macros.h" 10 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "dart/runtime/include/dart_api.h" 12 #include "dart/runtime/include/dart_api.h"
12 #include "mojo/dart/embedder/builtin.h" 13 #include "mojo/dart/embedder/builtin.h"
13 #include "mojo/public/c/system/core.h" 14 #include "mojo/public/c/system/core.h"
14 #include "mojo/public/cpp/system/core.h" 15 #include "mojo/public/cpp/system/core.h"
15 16
16 namespace mojo { 17 namespace mojo {
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 mojo_control_handle = control_handle; 793 mojo_control_handle = control_handle;
793 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(MOJO_RESULT_OK)); 794 Dart_SetIntegerReturnValue(arguments, static_cast<int64_t>(MOJO_RESULT_OK));
794 } 795 }
795 796
796 void MojoHandleWatcher_GetControlHandle(Dart_NativeArguments arguments) { 797 void MojoHandleWatcher_GetControlHandle(Dart_NativeArguments arguments) {
797 Dart_SetIntegerReturnValue(arguments, mojo_control_handle); 798 Dart_SetIntegerReturnValue(arguments, mojo_control_handle);
798 } 799 }
799 800
800 } // namespace dart 801 } // namespace dart
801 } // namespace mojo 802 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/dart/embedder/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698