| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class _CSSStyleSheetWrappingImplementation extends _StyleSheetWrappingImplementa
tion implements CSSStyleSheet { | |
| 8 _CSSStyleSheetWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__CSSStyleSheetWrappingImplementation() native { | |
| 11 return new _CSSStyleSheetWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 CSSRuleList get cssRules() { return _get_cssRules(this); } | |
| 15 static CSSRuleList _get_cssRules(var _this) native; | |
| 16 | |
| 17 CSSRule get ownerRule() { return _get_ownerRule(this); } | |
| 18 static CSSRule _get_ownerRule(var _this) native; | |
| 19 | |
| 20 CSSRuleList get rules() { return _get_rules(this); } | |
| 21 static CSSRuleList _get_rules(var _this) native; | |
| 22 | |
| 23 int addRule(String selector, String style, [int index = null]) { | |
| 24 if (index === null) { | |
| 25 return _addRule(this, selector, style); | |
| 26 } else { | |
| 27 return _addRule_2(this, selector, style, index); | |
| 28 } | |
| 29 } | |
| 30 static int _addRule(receiver, selector, style) native; | |
| 31 static int _addRule_2(receiver, selector, style, index) native; | |
| 32 | |
| 33 void deleteRule(int index) { | |
| 34 _deleteRule(this, index); | |
| 35 return; | |
| 36 } | |
| 37 static void _deleteRule(receiver, index) native; | |
| 38 | |
| 39 int insertRule(String rule, int index) { | |
| 40 return _insertRule(this, rule, index); | |
| 41 } | |
| 42 static int _insertRule(receiver, rule, index) native; | |
| 43 | |
| 44 void removeRule(int index) { | |
| 45 _removeRule(this, index); | |
| 46 return; | |
| 47 } | |
| 48 static void _removeRule(receiver, index) native; | |
| 49 | |
| 50 String get typeName() { return "CSSStyleSheet"; } | |
| 51 } | |
| OLD | NEW |