OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
8 | 8 |
9 static const String INDEX_SIZE = 'IndexSizeError'; | 9 static const String INDEX_SIZE = 'IndexSizeError'; |
10 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; | 10 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 String _message; | 45 String _message; |
46 | 46 |
47 // To suppress missing implicit constructor warnings. | 47 // To suppress missing implicit constructor warnings. |
48 factory DomException._() { throw new UnsupportedError("Not supported"); } | 48 factory DomException._() { throw new UnsupportedError("Not supported"); } |
49 | 49 |
50 @Deprecated("Internal Use Only") | 50 @Deprecated("Internal Use Only") |
51 static DomException internalCreateDomException() { | 51 static DomException internalCreateDomException() { |
52 return new DomException._internalWrap(); | 52 return new DomException._internalWrap(); |
53 } | 53 } |
54 | 54 |
55 @Deprecated("Internal Use Only") | 55 external factory DomException._internalWrap(); |
56 js.JsObject blink_jsObject; | |
57 | |
58 factory DomException._internalWrap() { | |
59 return new DomException.internal_(); | |
60 } | |
61 | 56 |
62 @Deprecated("Internal Use Only") | 57 @Deprecated("Internal Use Only") |
63 DomException.internal_() { } | 58 DomException.internal_() { } |
64 | 59 |
65 @Deprecated("Internal Use Only") | 60 @Deprecated("Internal Use Only") |
66 DomException.jsInterop(String m) { | 61 DomException.jsInterop(String m) { |
67 var name_index = m.indexOf(': '); | 62 var name_index = m.indexOf(': '); |
68 if (name_index < 0) { | 63 if (name_index < 0) { |
69 _name = ""; | 64 _name = ""; |
70 _message = m; | 65 _message = m; |
(...skipping 17 matching lines...) Expand all Loading... |
88 | 83 |
89 $else | 84 $else |
90 $!MEMBERS | 85 $!MEMBERS |
91 $endif | 86 $endif |
92 $if DART2JS | 87 $if DART2JS |
93 @DomName('DOMException.toString') | 88 @DomName('DOMException.toString') |
94 @DocsEditable() | 89 @DocsEditable() |
95 String toString() => JS('String', 'String(#)', this); | 90 String toString() => JS('String', 'String(#)', this); |
96 $endif | 91 $endif |
97 } | 92 } |
OLD | NEW |