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

Unified Diff: tools/dom/templates/html/impl/impl_ImageData.darttemplate

Issue 12036013: Initial work on ImageData.data. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_ImageData.darttemplate
diff --git a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate b/tools/dom/templates/html/impl/impl_ImageData.darttemplate
similarity index 54%
copy from tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate
copy to tools/dom/templates/html/impl/impl_ImageData.darttemplate
index 599b50c579bcccbc8d05e0b53ad26eabe7578fb8..c7e0977bb537c18f02357fedc6c19d2581ee1eb8 100644
--- a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate
+++ b/tools/dom/templates/html/impl/impl_ImageData.darttemplate
@@ -3,11 +3,18 @@
// BSD-style license that can be found in the LICENSE file.
part of $LIBRARYNAME;
+$ANNOTATIONS
+class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
+$if DARTIUM
+ List<int> __data;
-$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-$!MEMBERS
- static SpeechRecognition _create() {
- return JS('SpeechRecognition',
- 'new (window.SpeechRecognition || window.webkitSpeechRecognition)()');
+ List<int> get data {
+ if (__data == null) {
+ __data = _data;
+ }
+ return __data;
}
+$endif
+
+$!MEMBERS
}
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698