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

Unified Diff: client/html/generated/html/dartium/CSSStyleSheet.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/CSSStyleSheet.dart
diff --git a/client/html/generated/html/dartium/CSSStyleSheet.dart b/client/html/generated/html/dartium/CSSStyleSheet.dart
new file mode 100644
index 0000000000000000000000000000000000000000..f9d660b981732acff3d598397b30f4d8f306f6a5
--- /dev/null
+++ b/client/html/generated/html/dartium/CSSStyleSheet.dart
@@ -0,0 +1,32 @@
+
+class _CSSStyleSheetImpl extends _StyleSheetImpl implements CSSStyleSheet {
+ _CSSStyleSheetImpl._wrap(ptr) : super._wrap(ptr);
+
+ CSSRuleList get cssRules() => _wrap(_ptr.cssRules);
+
+ CSSRule get ownerRule() => _wrap(_ptr.ownerRule);
+
+ CSSRuleList get rules() => _wrap(_ptr.rules);
+
+ int addRule(String selector, String style, [int index = null]) {
+ if (index === null) {
+ return _wrap(_ptr.addRule(_unwrap(selector), _unwrap(style)));
+ } else {
+ return _wrap(_ptr.addRule(_unwrap(selector), _unwrap(style), _unwrap(index)));
+ }
+ }
+
+ void deleteRule(int index) {
+ _ptr.deleteRule(_unwrap(index));
+ return;
+ }
+
+ int insertRule(String rule, int index) {
+ return _wrap(_ptr.insertRule(_unwrap(rule), _unwrap(index)));
+ }
+
+ void removeRule(int index) {
+ _ptr.removeRule(_unwrap(index));
+ return;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698