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

Unified Diff: mojo/public/dart/src/natives.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/dart/src/message_pipe.dart ('k') | mojo/public/dart/src/proxy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/src/natives.dart
diff --git a/mojo/public/dart/src/natives.dart b/mojo/public/dart/src/natives.dart
deleted file mode 100644
index a46ddd68a6d207dea0a1037e00ec069b3dde9cb4..0000000000000000000000000000000000000000
--- a/mojo/public/dart/src/natives.dart
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-part of internal;
-
-class MojoHandleNatives {
- static int register(
- Object eventStream, int handle) native "MojoHandle_Register";
- static int close(int handle) native "MojoHandle_Close";
- static List wait(
- int handle, int signals, int deadline) native "MojoHandle_Wait";
- static List waitMany(List<int> handles, List<int> signals,
- int deadline) native "MojoHandle_WaitMany";
-}
-
-class MojoHandleWatcherNatives {
- static int sendControlData(int controlHandle, int mojoHandle, SendPort port,
- int data) native "MojoHandleWatcher_SendControlData";
- static List recvControlData(
- int controlHandle) native "MojoHandleWatcher_RecvControlData";
- static int setControlHandle(
- int controlHandle) native "MojoHandleWatcher_SetControlHandle";
- static int getControlHandle() native "MojoHandleWatcher_GetControlHandle";
-}
-
-class MojoMessagePipeNatives {
- static List MojoCreateMessagePipe(int flags) native "MojoMessagePipe_Create";
-
- static int MojoWriteMessage(int handle, ByteData data, int numBytes,
- List<int> handles, int flags) native "MojoMessagePipe_Write";
-
- static List MojoReadMessage(int handle, ByteData data, int numBytes,
- List<int> handles, int flags) native "MojoMessagePipe_Read";
-}
-
-class MojoDataPipeNatives {
- static List MojoCreateDataPipe(int elementBytes, int capacityBytes,
- int flags) native "MojoDataPipe_Create";
-
- static List MojoWriteData(int handle, ByteData data, int numBytes,
- int flags) native "MojoDataPipe_WriteData";
-
- static List MojoBeginWriteData(int handle, int bufferBytes,
- int flags) native "MojoDataPipe_BeginWriteData";
-
- static int MojoEndWriteData(
- int handle, int bytesWritten) native "MojoDataPipe_EndWriteData";
-
- static List MojoReadData(int handle, ByteData data, int numBytes,
- int flags) native "MojoDataPipe_ReadData";
-
- static List MojoBeginReadData(int handle, int bufferBytes,
- int flags) native "MojoDataPipe_BeginReadData";
-
- static int MojoEndReadData(
- int handle, int bytesRead) native "MojoDataPipe_EndReadData";
-}
-
-class MojoSharedBufferNatives {
- static List Create(int numBytes, int flags) native "MojoSharedBuffer_Create";
-
- static List Duplicate(
- int bufferHandle, int flags) native "MojoSharedBuffer_Duplicate";
-
- static List Map(Object buffer, int bufferHandle, int offset, int numBytes,
- int flags) native "MojoSharedBuffer_Map";
-
- static int Unmap(ByteData buffer) native "MojoSharedBuffer_Unmap";
-}
« no previous file with comments | « mojo/public/dart/src/message_pipe.dart ('k') | mojo/public/dart/src/proxy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698