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

Unified Diff: mojo/dart/packages/mojo/lib/src/application.dart

Issue 1983453002: Dart: Refactor Stubs (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 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
Index: mojo/dart/packages/mojo/lib/src/application.dart
diff --git a/mojo/dart/packages/mojo/lib/src/application.dart b/mojo/dart/packages/mojo/lib/src/application.dart
index ba19009916ac0bc61c6a29db97d5cff1d7235795..4cc7d87ec76c4cb58caa8c64112c0d3db867b36e 100644
--- a/mojo/dart/packages/mojo/lib/src/application.dart
+++ b/mojo/dart/packages/mojo/lib/src/application.dart
@@ -13,13 +13,13 @@ class _ApplicationImpl implements application_mojom.Application {
Application application, core.MojoMessagePipeEndpoint endpoint) {
_application = application;
_stub = new application_mojom.ApplicationStub.fromEndpoint(endpoint, this);
- _stub.onError = ((_) => close());
+ _stub.ctrl.onError = ((_) => close());
}
_ApplicationImpl.fromHandle(Application application, core.MojoHandle handle) {
_application = application;
_stub = new application_mojom.ApplicationStub.fromHandle(handle, this);
- _stub.onError = ((_) => close());
+ _stub.ctrl.onError = ((_) => close());
}
_ApplicationImpl.fromStub(Application application,
@@ -27,11 +27,11 @@ class _ApplicationImpl implements application_mojom.Application {
_application = application;
_stub = applicationStub;
_stub.impl = this;
- _stub.onError = ((_) => close());
+ _stub.ctrl.onError = ((_) => close());
}
set onError(core.ErrorHandler f) {
- _stub.onError = f;
+ _stub.ctrl.onError = f;
}
void initialize(
« no previous file with comments | « mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart ('k') | mojo/dart/packages/mojo/lib/src/application_connection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698