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

Side by Side Diff: mojo/public/dart/src/proxy.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 part of bindings; 5 part of bindings;
6 6
7 abstract class Proxy extends core.MojoEventStreamListener { 7 abstract class Proxy extends core.MojoEventStreamListener {
8 Map<int, Completer> _completerMap; 8 Map<int, Completer> _completerMap;
9 int _nextId = 0; 9 int _nextId = 0;
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 var completer = new Completer(); 75 var completer = new Completer();
76 _completerMap[id] = completer; 76 _completerMap[id] = completer;
77 return completer.future; 77 return completer.future;
78 } 78 }
79 79
80 // Need a getter for this for access in subclasses. 80 // Need a getter for this for access in subclasses.
81 Map<int, Completer> get completerMap => _completerMap; 81 Map<int, Completer> get completerMap => _completerMap;
82 } 82 }
83
84
85 // Generated Proxy classes implement this interface.
86 abstract class ProxyBase {
87 final Proxy impl;
88 final String name;
89 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698