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

Unified Diff: mojo/dart/embedder/core/handle_watcher_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, 10 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/dart/embedder/core/handle_patch.dart ('k') | mojo/dart/embedder/core/message_pipe_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/core/handle_watcher_patch.dart
diff --git a/mojo/dart/embedder/core/handle_watcher_patch.dart b/mojo/dart/embedder/core/handle_watcher_patch.dart
index fd34d1f948f5ec7f1a52aa9c11ace583055636de..266af0a659d705a7fe0aa7d5c887b29ea12a31fe 100644
--- a/mojo/dart/embedder/core/handle_watcher_patch.dart
+++ b/mojo/dart/embedder/core/handle_watcher_patch.dart
@@ -2,3 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+patch 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";
+}
« no previous file with comments | « mojo/dart/embedder/core/handle_patch.dart ('k') | mojo/dart/embedder/core/message_pipe_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698