Chromium Code Reviews| 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") | |
|
Alan Knight
2015/11/02 17:57:21
This field should just be removed, it's shadowing
| |
| 55 js.JsObject blink_jsObject; | 56 js.JsObject blink_jsObject; |
| 56 | 57 |
| 57 factory DomException._internalWrap() { | 58 factory DomException._internalWrap() { |
| 58 return new DomException.internal_(); | 59 return new DomException.internal_(); |
| 59 } | 60 } |
| 60 | 61 |
| 62 @Deprecated("Internal Use Only") | |
| 61 DomException.internal_() { } | 63 DomException.internal_() { } |
| 62 | 64 |
| 65 @Deprecated("Internal Use Only") | |
| 63 DomException.jsInterop(String m) { | 66 DomException.jsInterop(String m) { |
| 64 var name_index = m.indexOf(': '); | 67 var name_index = m.indexOf(': '); |
| 65 if (name_index < 0) { | 68 if (name_index < 0) { |
| 66 _name = ""; | 69 _name = ""; |
| 67 _message = m; | 70 _message = m; |
| 68 } else { | 71 } else { |
| 69 _name = m.substring(0, name_index); | 72 _name = m.substring(0, name_index); |
| 70 _message = m.substring(name_index + 1).trim(); | 73 _message = m.substring(name_index + 1).trim(); |
| 71 } | 74 } |
| 72 } | 75 } |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 85 | 88 |
| 86 $else | 89 $else |
| 87 $!MEMBERS | 90 $!MEMBERS |
| 88 $endif | 91 $endif |
| 89 $if DART2JS | 92 $if DART2JS |
| 90 @DomName('DOMException.toString') | 93 @DomName('DOMException.toString') |
| 91 @DocsEditable() | 94 @DocsEditable() |
| 92 String toString() => JS('String', 'String(#)', this); | 95 String toString() => JS('String', 'String(#)', this); |
| 93 $endif | 96 $endif |
| 94 } | 97 } |
| OLD | NEW |