| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |