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

Unified Diff: pkg/mdns/lib/src/native_extension_api.dart

Issue 1403303012: Re-land "Extend the mDNS package with a native extension used on Mac OS" (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Added mussing scripts Created 5 years, 1 month 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 | « pkg/mdns/lib/src/lookup_resolver.dart ('k') | pkg/mdns/lib/src/native_extension_client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdns/lib/src/native_extension_api.dart
diff --git a/samples/github/ios/github/AppDelegate.h b/pkg/mdns/lib/src/native_extension_api.dart
similarity index 56%
copy from samples/github/ios/github/AppDelegate.h
copy to pkg/mdns/lib/src/native_extension_api.dart
index ae36cece8c0eb86047f3d317b4f5aedd20805dc3..cc9de846348c9e64d51d5e613e227f986f1a2221 100644
--- a/samples/github/ios/github/AppDelegate.h
+++ b/pkg/mdns/lib/src/native_extension_api.dart
@@ -2,10 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
-#import <UIKit/UIKit.h>
+library mdns.src.native_extension_api;
-@interface AppDelegate : UIResponder <UIApplicationDelegate>
+import 'dart:isolate';
-@property (strong, nonatomic) UIWindow* window;
+import "dart-ext:../native/mdns_extension_lib";
-@end
+SendPort servicePort() native 'MDnsExtension_ServicePort';
« no previous file with comments | « pkg/mdns/lib/src/lookup_resolver.dart ('k') | pkg/mdns/lib/src/native_extension_client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698