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

Side by Side Diff: html/canvas/DataView.idl

Issue 14107003: Update WebKit IDLs after chrome roll. (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: reupload again. Created 7 years, 8 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
« no previous file with comments | « html/canvas/CanvasRenderingContext.idl ('k') | html/canvas/EXTDrawBuffers.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 [ 26 [
27 CustomConstructor, 27 CustomConstructor,
28 ConstructorParameters=3, 28 ConstructorParameters=3,
29 CustomToJSObject, 29 CustomToJSObject
30 JSNoStaticTables
31 ] interface DataView : ArrayBufferView { 30 ] interface DataView : ArrayBufferView {
32 // All these methods raise an exception if they would read or write beyond t he end of the view. 31 // All these methods raise an exception if they would read or write beyond t he end of the view.
33 32
34 // We have to use custom code because our code generator does not support in t8_t type. 33 // We have to use custom code because our code generator does not support in t8_t type.
35 // int8_t getInt8(in unsigned long byteOffset); 34 // int8_t getInt8(in unsigned long byteOffset);
36 // uint8_t getUint8(in unsigned long byteOffset); 35 // uint8_t getUint8(in unsigned long byteOffset);
37 [Custom] any getInt8() 36 [Custom] any getInt8()
38 raises (DOMException); 37 raises (DOMException);
39 [Custom] any getUint8() 38 [Custom] any getUint8()
40 raises (DOMException); 39 raises (DOMException);
41 40
42 [StrictTypeChecking] short getInt16(in unsigned long byteOffset, in [Optiona l] boolean littleEndian) 41 [StrictTypeChecking] short getInt16(in unsigned long byteOffset, in [Optiona l] boolean littleEndian)
43 raises (DOMException); 42 raises (DOMException);
44 [StrictTypeChecking] unsigned short getUint16(in unsigned long byteOffset, i n [Optional] boolean littleEndian) 43 [StrictTypeChecking] unsigned short getUint16(in unsigned long byteOffset, i n [Optional] boolean littleEndian)
45 raises (DOMException); 44 raises (DOMException);
46 [StrictTypeChecking] long getInt32(in unsigned long byteOffset, in [Optional ] boolean littleEndian) 45 [StrictTypeChecking] long getInt32(in unsigned long byteOffset, in [Optional ] boolean littleEndian)
47 raises (DOMException); 46 raises (DOMException);
48 [StrictTypeChecking] unsigned long getUint32(in unsigned long byteOffset, in [Optional] boolean littleEndian) 47 [StrictTypeChecking] unsigned long getUint32(in unsigned long byteOffset, in [Optional] boolean littleEndian)
49 raises (DOMException); 48 raises (DOMException);
50 49
51 // Use custom code to handle NaN case for JSC. 50 // Use custom code to handle NaN case for JSC.
52 [JSCustom, StrictTypeChecking] float getFloat32(in unsigned long byteOffset, in [Optional] boolean littleEndian) 51 [StrictTypeChecking] float getFloat32(in unsigned long byteOffset, in [Optio nal] boolean littleEndian)
53 raises (DOMException); 52 raises (DOMException);
54 [JSCustom, StrictTypeChecking] double getFloat64(in unsigned long byteOffset , in [Optional] boolean littleEndian) 53 [StrictTypeChecking] double getFloat64(in unsigned long byteOffset, in [Opti onal] boolean littleEndian)
55 raises (DOMException); 54 raises (DOMException);
56 55
57 // We have to use custom code because our code generator does not support ui nt8_t type. 56 // We have to use custom code because our code generator does not support ui nt8_t type.
58 // void setInt8(in unsigned long byteOffset, in int8_t value); 57 // void setInt8(in unsigned long byteOffset, in int8_t value);
59 // void setUint8(in unsigned long byteOffset, in uint8_t value); 58 // void setUint8(in unsigned long byteOffset, in uint8_t value);
60 [Custom] void setInt8() 59 [Custom] void setInt8()
61 raises (DOMException); 60 raises (DOMException);
62 [Custom] void setUint8() 61 [Custom] void setUint8()
63 raises (DOMException); 62 raises (DOMException);
64 63
65 [StrictTypeChecking] void setInt16(in unsigned long byteOffset, in short val ue, in [Optional] boolean littleEndian) 64 [StrictTypeChecking] void setInt16(in unsigned long byteOffset, in short val ue, in [Optional] boolean littleEndian)
66 raises (DOMException); 65 raises (DOMException);
67 [StrictTypeChecking] void setUint16(in unsigned long byteOffset, in unsigned short value, in [Optional] boolean littleEndian) 66 [StrictTypeChecking] void setUint16(in unsigned long byteOffset, in unsigned short value, in [Optional] boolean littleEndian)
68 raises (DOMException); 67 raises (DOMException);
69 [StrictTypeChecking] void setInt32(in unsigned long byteOffset, in long valu e, in [Optional] boolean littleEndian) 68 [StrictTypeChecking] void setInt32(in unsigned long byteOffset, in long valu e, in [Optional] boolean littleEndian)
70 raises (DOMException); 69 raises (DOMException);
71 [StrictTypeChecking] void setUint32(in unsigned long byteOffset, in unsigned long value, in [Optional] boolean littleEndian) 70 [StrictTypeChecking] void setUint32(in unsigned long byteOffset, in unsigned long value, in [Optional] boolean littleEndian)
72 raises (DOMException); 71 raises (DOMException);
73 [StrictTypeChecking] void setFloat32(in unsigned long byteOffset, in float v alue, in [Optional] boolean littleEndian) 72 [StrictTypeChecking] void setFloat32(in unsigned long byteOffset, in float v alue, in [Optional] boolean littleEndian)
74 raises (DOMException); 73 raises (DOMException);
75 [StrictTypeChecking] void setFloat64(in unsigned long byteOffset, in double value, in [Optional] boolean littleEndian) 74 [StrictTypeChecking] void setFloat64(in unsigned long byteOffset, in double value, in [Optional] boolean littleEndian)
76 raises (DOMException); 75 raises (DOMException);
77 }; 76 };
78 77
OLDNEW
« no previous file with comments | « html/canvas/CanvasRenderingContext.idl ('k') | html/canvas/EXTDrawBuffers.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698