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

Side by Side Diff: Source/WebCore/bindings/dart/custom/DartUint16ArrayCustom.cpp

Issue 9288026: Switch to using dartdomgenerator.py for Dart interface and implementation generation. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Address comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011, Google Inc. 1 // Copyright 2011, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 Dart_Handle toDartValue(Uint16Array* value) 37 Dart_Handle toDartValue(Uint16Array* value)
38 { 38 {
39 // We may have to customize it, once typed arrays are in the VM. 39 // We may have to customize it, once typed arrays are in the VM.
40 return DartDOMWrapper::toDart<DartUint16Array>(value); 40 return DartDOMWrapper::toDart<DartUint16Array>(value);
41 } 41 }
42 42
43 namespace DartUint16ArrayInternal { 43 namespace DartUint16ArrayInternal {
44 44
45 void constructorCallback(Dart_NativeArguments args) 45 void constructorCallback(Dart_NativeArguments args)
46 { 46 {
47 WebCore::DartArrayBufferViewInternal::constructWebGLArray<Uint16Array, uint1 6_t>(args); 47 WebCore::DartArrayBufferViewInternal::createWebGLArray<Uint16Array, uint16_t >(args);
48 } 48 }
49 49
50 void numericIndexSetterCallback(Dart_NativeArguments args) 50 void numericIndexSetterCallback(Dart_NativeArguments args)
51 { 51 {
52 WebCore::DartArrayBufferViewInternal::indexSetter<Uint16Array, uint16_t>(arg s); 52 WebCore::DartArrayBufferViewInternal::indexSetter<Uint16Array, uint16_t>(arg s);
53 } 53 }
54 54
55 void numericIndexGetterCallback(Dart_NativeArguments args) 55 void numericIndexGetterCallback(Dart_NativeArguments args)
56 { 56 {
57 WebCore::DartArrayBufferViewInternal::indexGetter<Uint16Array, int>(args); 57 WebCore::DartArrayBufferViewInternal::indexGetter<Uint16Array, int>(args);
58 } 58 }
59 59
60 void setElementsCallback(Dart_NativeArguments args) 60 void setElementsCallback(Dart_NativeArguments args)
61 { 61 {
62 WebCore::DartArrayBufferViewInternal::setWebGLArrayHelper<Uint16Array, DartU int16Array>(args); 62 WebCore::DartArrayBufferViewInternal::setWebGLArrayHelper<Uint16Array, DartU int16Array>(args);
63 } 63 }
64 64
65 } 65 }
66 66
67 } 67 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698