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

Side by Side Diff: lib/dom/frog/dom_frog.dart

Issue 10584031: Proper support for IDL arrays in generators. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Next iteration Created 8 years, 6 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
OLDNEW
1 #library('dom'); 1 #library('dom');
2 2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
(...skipping 4372 matching lines...) Expand 10 before | Expand all | Expand 10 after
4383 final String name; 4383 final String name;
4384 4384
4385 final _IDBTransactionJs transaction; 4385 final _IDBTransactionJs transaction;
4386 4386
4387 _IDBRequestJs add(value, [key = null]) native; 4387 _IDBRequestJs add(value, [key = null]) native;
4388 4388
4389 _IDBRequestJs clear() native; 4389 _IDBRequestJs clear() native;
4390 4390
4391 _IDBRequestJs count([key_OR_range = null]) native; 4391 _IDBRequestJs count([key_OR_range = null]) native;
4392 4392
4393 _IDBIndexJs createIndex(String name, String keyPath, [Map options = null]) nat ive; 4393 _IDBIndexJs createIndex(String name, keyPath, [Map options = null]) native;
4394 4394
4395 _IDBRequestJs delete(key_OR_keyRange) native; 4395 _IDBRequestJs delete(key_OR_keyRange) native;
4396 4396
4397 void deleteIndex(String name) native; 4397 void deleteIndex(String name) native;
4398 4398
4399 _IDBRequestJs getObject(key) native 'get'; 4399 _IDBRequestJs getObject(key) native 'get';
4400 4400
4401 _IDBIndexJs index(String name) native; 4401 _IDBIndexJs index(String name) native;
4402 4402
4403 _IDBRequestJs openCursor([key_OR_range = null, direction = null]) native; 4403 _IDBRequestJs openCursor([key_OR_range = null, direction = null]) native;
(...skipping 6749 matching lines...) Expand 10 before | Expand all | Expand 10 after
11153 void framebufferTexture2D(int target, int attachment, int textarget, _WebGLTex tureJs texture, int level) native; 11153 void framebufferTexture2D(int target, int attachment, int textarget, _WebGLTex tureJs texture, int level) native;
11154 11154
11155 void frontFace(int mode) native; 11155 void frontFace(int mode) native;
11156 11156
11157 void generateMipmap(int target) native; 11157 void generateMipmap(int target) native;
11158 11158
11159 _WebGLActiveInfoJs getActiveAttrib(_WebGLProgramJs program, int index) native; 11159 _WebGLActiveInfoJs getActiveAttrib(_WebGLProgramJs program, int index) native;
11160 11160
11161 _WebGLActiveInfoJs getActiveUniform(_WebGLProgramJs program, int index) native ; 11161 _WebGLActiveInfoJs getActiveUniform(_WebGLProgramJs program, int index) native ;
11162 11162
11163 List getAttachedShaders(_WebGLProgramJs program) native; 11163 List<Object> getAttachedShaders(_WebGLProgramJs program) native;
11164 11164
11165 int getAttribLocation(_WebGLProgramJs program, String name) native; 11165 int getAttribLocation(_WebGLProgramJs program, String name) native;
11166 11166
11167 Object getBufferParameter(int target, int pname) native; 11167 Object getBufferParameter(int target, int pname) native;
11168 11168
11169 _WebGLContextAttributesJs getContextAttributes() native; 11169 _WebGLContextAttributesJs getContextAttributes() native;
11170 11170
11171 int getError() native; 11171 int getError() native;
11172 11172
11173 Object getExtension(String name) native; 11173 Object getExtension(String name) native;
11174 11174
11175 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native; 11175 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
11176 11176
11177 Object getParameter(int pname) native; 11177 Object getParameter(int pname) native;
11178 11178
11179 String getProgramInfoLog(_WebGLProgramJs program) native; 11179 String getProgramInfoLog(_WebGLProgramJs program) native;
11180 11180
11181 Object getProgramParameter(_WebGLProgramJs program, int pname) native; 11181 Object getProgramParameter(_WebGLProgramJs program, int pname) native;
11182 11182
11183 Object getRenderbufferParameter(int target, int pname) native; 11183 Object getRenderbufferParameter(int target, int pname) native;
11184 11184
11185 String getShaderInfoLog(_WebGLShaderJs shader) native; 11185 String getShaderInfoLog(_WebGLShaderJs shader) native;
11186 11186
11187 Object getShaderParameter(_WebGLShaderJs shader, int pname) native; 11187 Object getShaderParameter(_WebGLShaderJs shader, int pname) native;
11188 11188
11189 _WebGLShaderPrecisionFormatJs getShaderPrecisionFormat(int shadertype, int pre cisiontype) native; 11189 _WebGLShaderPrecisionFormatJs getShaderPrecisionFormat(int shadertype, int pre cisiontype) native;
11190 11190
11191 String getShaderSource(_WebGLShaderJs shader) native; 11191 String getShaderSource(_WebGLShaderJs shader) native;
11192 11192
11193 List<String> getSupportedExtensions() native;
11194
11193 Object getTexParameter(int target, int pname) native; 11195 Object getTexParameter(int target, int pname) native;
11194 11196
11195 Object getUniform(_WebGLProgramJs program, _WebGLUniformLocationJs location) n ative; 11197 Object getUniform(_WebGLProgramJs program, _WebGLUniformLocationJs location) n ative;
11196 11198
11197 _WebGLUniformLocationJs getUniformLocation(_WebGLProgramJs program, String nam e) native; 11199 _WebGLUniformLocationJs getUniformLocation(_WebGLProgramJs program, String nam e) native;
11198 11200
11199 Object getVertexAttrib(int index, int pname) native; 11201 Object getVertexAttrib(int index, int pname) native;
11200 11202
11201 int getVertexAttribOffset(int index, int pname) native; 11203 int getVertexAttribOffset(int index, int pname) native;
11202 11204
(...skipping 6054 matching lines...) Expand 10 before | Expand all | Expand 10 after
17257 final String name; 17259 final String name;
17258 17260
17259 final IDBTransaction transaction; 17261 final IDBTransaction transaction;
17260 17262
17261 IDBRequest add(/*SerializedScriptValue*/ value, [/*IDBKey*/ key]); 17263 IDBRequest add(/*SerializedScriptValue*/ value, [/*IDBKey*/ key]);
17262 17264
17263 IDBRequest clear(); 17265 IDBRequest clear();
17264 17266
17265 IDBRequest count([key_OR_range]); 17267 IDBRequest count([key_OR_range]);
17266 17268
17267 IDBIndex createIndex(String name, String keyPath, [Map options]); 17269 IDBIndex createIndex(String name, keyPath, [Map options]);
17268 17270
17269 IDBRequest delete(key_OR_keyRange); 17271 IDBRequest delete(key_OR_keyRange);
17270 17272
17271 void deleteIndex(String name); 17273 void deleteIndex(String name);
17272 17274
17273 IDBRequest getObject(key); 17275 IDBRequest getObject(key);
17274 17276
17275 IDBIndex index(String name); 17277 IDBIndex index(String name);
17276 17278
17277 IDBRequest openCursor([key_OR_range, direction]); 17279 IDBRequest openCursor([key_OR_range, direction]);
(...skipping 6023 matching lines...) Expand 10 before | Expand all | Expand 10 after
23301 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level); 23303 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level);
23302 23304
23303 void frontFace(int mode); 23305 void frontFace(int mode);
23304 23306
23305 void generateMipmap(int target); 23307 void generateMipmap(int target);
23306 23308
23307 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index); 23309 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index);
23308 23310
23309 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index); 23311 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index);
23310 23312
23311 List getAttachedShaders(WebGLProgram program); 23313 List<Object> getAttachedShaders(WebGLProgram program);
23312 23314
23313 int getAttribLocation(WebGLProgram program, String name); 23315 int getAttribLocation(WebGLProgram program, String name);
23314 23316
23315 Object getBufferParameter(int target, int pname); 23317 Object getBufferParameter(int target, int pname);
23316 23318
23317 WebGLContextAttributes getContextAttributes(); 23319 WebGLContextAttributes getContextAttributes();
23318 23320
23319 int getError(); 23321 int getError();
23320 23322
23321 Object getExtension(String name); 23323 Object getExtension(String name);
23322 23324
23323 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ); 23325 Object getFramebufferAttachmentParameter(int target, int attachment, int pname );
23324 23326
23325 Object getParameter(int pname); 23327 Object getParameter(int pname);
23326 23328
23327 String getProgramInfoLog(WebGLProgram program); 23329 String getProgramInfoLog(WebGLProgram program);
23328 23330
23329 Object getProgramParameter(WebGLProgram program, int pname); 23331 Object getProgramParameter(WebGLProgram program, int pname);
23330 23332
23331 Object getRenderbufferParameter(int target, int pname); 23333 Object getRenderbufferParameter(int target, int pname);
23332 23334
23333 String getShaderInfoLog(WebGLShader shader); 23335 String getShaderInfoLog(WebGLShader shader);
23334 23336
23335 Object getShaderParameter(WebGLShader shader, int pname); 23337 Object getShaderParameter(WebGLShader shader, int pname);
23336 23338
23337 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype); 23339 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype);
23338 23340
23339 String getShaderSource(WebGLShader shader); 23341 String getShaderSource(WebGLShader shader);
23340 23342
23343 List<String> getSupportedExtensions();
23344
23341 Object getTexParameter(int target, int pname); 23345 Object getTexParameter(int target, int pname);
23342 23346
23343 Object getUniform(WebGLProgram program, WebGLUniformLocation location); 23347 Object getUniform(WebGLProgram program, WebGLUniformLocation location);
23344 23348
23345 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name); 23349 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name);
23346 23350
23347 Object getVertexAttrib(int index, int pname); 23351 Object getVertexAttrib(int index, int pname);
23348 23352
23349 int getVertexAttribOffset(int index, int pname); 23353 int getVertexAttribOffset(int index, int pname);
23350 23354
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after
25245 if (length < 0) throw new IllegalArgumentException('length'); 25249 if (length < 0) throw new IllegalArgumentException('length');
25246 if (start < 0) throw new IndexOutOfRangeException(start); 25250 if (start < 0) throw new IndexOutOfRangeException(start);
25247 int end = start + length; 25251 int end = start + length;
25248 if (end > a.length) throw new IndexOutOfRangeException(end); 25252 if (end > a.length) throw new IndexOutOfRangeException(end);
25249 for (int i = start; i < end; i++) { 25253 for (int i = start; i < end; i++) {
25250 accumulator.add(a[i]); 25254 accumulator.add(a[i]);
25251 } 25255 }
25252 return accumulator; 25256 return accumulator;
25253 } 25257 }
25254 } 25258 }
OLDNEW
« no previous file with comments | « lib/dom/dom.dart ('k') | lib/dom/scripts/dartgenerator.py » ('j') | lib/dom/scripts/generator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698