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

Side by Side Diff: tools/dom/templates/html/impl/impl_DomException.darttemplate

Issue 11946006: Fix git rebase fail on my part that merged the status files poorly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « tools/dom/templates/html/dart2js/impl_DomException.darttemplate ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 html; 5 part of html;
6 6
7 /// @domName $DOMNAME 7 /// @domName $DOMNAME
8 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 8 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
9 9
10 static const String INDEX_SIZE = 'IndexSizeError'; 10 static const String INDEX_SIZE = 'IndexSizeError';
(...skipping 11 matching lines...) Expand all
22 static const String TYPE_MISMATCH = 'TypeMismatchError'; 22 static const String TYPE_MISMATCH = 'TypeMismatchError';
23 static const String SECURITY = 'SecurityError'; 23 static const String SECURITY = 'SecurityError';
24 static const String NETWORK = 'NetworkError'; 24 static const String NETWORK = 'NetworkError';
25 static const String ABORT = 'AbortError'; 25 static const String ABORT = 'AbortError';
26 static const String URL_MISMATCH = 'URLMismatchError'; 26 static const String URL_MISMATCH = 'URLMismatchError';
27 static const String QUOTA_EXCEEDED = 'QuotaExceededError'; 27 static const String QUOTA_EXCEEDED = 'QuotaExceededError';
28 static const String TIMEOUT = 'TimeoutError'; 28 static const String TIMEOUT = 'TimeoutError';
29 static const String INVALID_NODE_TYPE = 'InvalidNodeTypeError'; 29 static const String INVALID_NODE_TYPE = 'InvalidNodeTypeError';
30 static const String DATA_CLONE = 'DataCloneError'; 30 static const String DATA_CLONE = 'DataCloneError';
31 31
32 $if DART2JS
32 String get name { 33 String get name {
33 var errorName = JS('String', '#.name', this); 34 var errorName = JS('String', '#.name', this);
34 // Although Safari nightly has updated the name to SecurityError, Safari 5 35 // Although Safari nightly has updated the name to SecurityError, Safari 5
35 // and 6 still return SECURITY_ERR. 36 // and 6 still return SECURITY_ERR.
36 if (_Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; 37 if (_Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError';
37 // Chrome release still uses old string, remove this line when Chrome stable 38 // Chrome release still uses old string, remove this line when Chrome stable
38 // also prints out SyntaxError. 39 // also prints out SyntaxError.
39 if (_Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; 40 if (_Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError';
40 return errorName; 41 return errorName;
41 } 42 }
43 $endif
42 $!MEMBERS 44 $!MEMBERS
43 } 45 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/dart2js/impl_DomException.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698