Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import "dart:_internal"; | |
| 6 | |
| 7 patch class UserTag { | |
| 8 /* patch */ factory UserTag(String label) { | |
| 9 return new _UserTag(label); | |
| 10 } | |
| 11 } | |
| 12 | |
| 13 | |
| 14 class _UserTag implements UserTag { | |
| 15 factory _UserTag(String label) native "UserTag_new"; | |
| 16 String get label native "UserTag_label"; | |
| 17 void makeCurrent() native "UserTag_makeCurrent"; | |
|
srdjan
2014/04/09 17:08:19
As discussed, user will need more support: e.g, di
Cutch
2014/04/09 20:28:54
Added clearCurrentTag and getCurrentTag
| |
| 18 } | |
| OLD | NEW |