| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 library mojo_init; | |
| 6 | |
| 7 import 'dart:async'; | |
| 8 | |
| 9 import 'core.dart' as core; | |
| 10 import 'dart-ext:src/mojo_dart_init'; | |
| 11 | |
| 12 void _init() native "MojoLibrary_Init"; | |
| 13 void _mojoSystemThunksMake(Function fn) native "MojoSystemThunks_Make"; | |
| 14 | |
| 15 Future<Isolate> mojoInit() { | |
| 16 _init(); | |
| 17 _mojoSystemThunksMake(core.mojoSystemThunksSet); | |
| 18 return core.MojoHandleWatcher.Start(); | |
| 19 } | |
| 20 | |
| 21 void mojoShutdown() { | |
| 22 core.MojoHandleWatcher.Stop(); | |
| 23 } | |
| OLD | NEW |