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

Side by Side Diff: mojo/dart/embedder/core/data_pipe_patch.dart

Issue 956653003: Dart: Moves |native| methods to patch files. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Adjust analyzer script Created 5 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/dart/embedder/core/buffer_patch.dart ('k') | mojo/dart/embedder/core/handle_patch.dart » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 patch class _MojoDataPipeNatives {
6 static List MojoCreateDataPipe(
7 int elementBytes, int capacityBytes, int flags)
8 native "MojoDataPipe_Create";
9
10 static List MojoWriteData(int handle, ByteData data, int numBytes, int flags)
11 native "MojoDataPipe_WriteData";
12
13 static List MojoBeginWriteData(int handle, int bufferBytes, int flags)
14 native "MojoDataPipe_BeginWriteData";
15
16 static int MojoEndWriteData(int handle, int bytesWritten)
17 native "MojoDataPipe_EndWriteData";
18
19 static List MojoReadData(int handle, ByteData data, int numBytes, int flags)
20 native "MojoDataPipe_ReadData";
21
22 static List MojoBeginReadData(int handle, int bufferBytes, int flags)
23 native "MojoDataPipe_BeginReadData";
24
25 static int MojoEndReadData(int handle, int bytesRead)
26 native "MojoDataPipe_EndReadData";
27 }
OLDNEW
« no previous file with comments | « mojo/dart/embedder/core/buffer_patch.dart ('k') | mojo/dart/embedder/core/handle_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698