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

Unified Diff: mojo/public/dart/src/codec.dart

Issue 959993002: Dart: Removes name conflicts from generated bindings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Removes unused constructors 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
Index: mojo/public/dart/src/codec.dart
diff --git a/mojo/public/dart/src/codec.dart b/mojo/public/dart/src/codec.dart
index 677dc10a7b33b1976f296db1939cc9f6c7faceb0..42253c7f4898d738f96fbefa2d04a717a8a97ef2 100644
--- a/mojo/public/dart/src/codec.dart
+++ b/mojo/public/dart/src/codec.dart
@@ -208,13 +208,13 @@ class Encoder {
encodeMessagePipeHandle(pipe.endpoints[1], offset, nullable);
}
- void encodeInterfaceRequest(Proxy client, int offset, bool nullable) {
+ void encodeInterfaceRequest(ProxyBase client, int offset, bool nullable) {
if (client == null) {
encodeInvalideHandle(offset, nullable);
return;
}
var pipe = new core.MojoMessagePipe();
- client.bind(pipe.endpoints[0]);
+ client.impl.bind(pipe.endpoints[0]);
encodeMessagePipeHandle(pipe.endpoints[1], offset, nullable);
}
@@ -601,7 +601,7 @@ class Decoder {
core.MojoSharedBuffer decodeSharedBufferHandle(int offset, bool nullable) =>
new core.MojoSharedBuffer(decodeHandle(offset, nullable));
- Proxy decodeServiceInterface(
+ ProxyBase decodeServiceInterface(
int offset, bool nullable, Function clientFactory) {
var endpoint = decodeMessagePipeHandle(offset, nullable);
return endpoint.handle.isValid ? clientFactory(endpoint) : null;
@@ -697,7 +697,7 @@ class Decoder {
ArrayDataHeader decodeDataHeaderForArray(int elementSize,
int expectedLength) {
var header = decodeArrayDataHeader();
- var arrayByteCount =
+ var arrayByteCount =
ArrayDataHeader.kHeaderSize + header.numElements * elementSize;
if (header.size < arrayByteCount) {
throw new MojoCodecError(

Powered by Google App Engine
This is Rietveld 408576698