From a5e01b1521c56220b4640f77fa1abb5f4a7daab0 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 12 Feb 2015 23:36:40 -0800 Subject: [PATCH] Add initializeFromShellProxy to application.dart This CL adds the ability to initialize the Dart Application class with a shell proxy (rather than with a MojoHandle). This change lets Sky use the Dart bindings for Mojo. This CL was reviewed on the SkyDart branch in https://codereview.chromium.org/919883002/ R=zra@google.com, zra@chromium.org Review URL: https://codereview.chromium.org/922083002 --- examples/dart-mojo.sky | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dart-mojo.sky b/examples/dart-mojo.sky index e69f99e1d0..c540292739 100644 --- a/examples/dart-mojo.sky +++ b/examples/dart-mojo.sky @@ -20,7 +20,7 @@ class WGet extends Application { WGet.fromHandle(MojoHandle handle) : super.fromHandle(handle); WGet(MojoMessagePipeEndpoint endpoint) : super(endpoint); - void initialize(List args) { + void initialize(List args, String url) { run(args); } @@ -75,7 +75,7 @@ main() { var wget = new WGet(messagePipe.endpoints[1]); wget.listen(); var shellProxy = new shell_mojom.ShellProxy.fromHandle(new MojoHandle(internals.passShellProxyHandle())); - wget.initializeFromShellProxy(shellProxy, ["mojo:wget", "http://www.google.com"]); + wget.initializeFromShellProxy(shellProxy, ["mojo:wget", "http://www.google.com"], "mojo:wget"); }