18e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project/* 206ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 3643ca7872b450ea4efacab6188849e5aac2ba161Steve Block * Copyright (C) 2009 Google Inc. All rights reserved. 48e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 58e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * Redistribution and use in source and binary forms, with or without 68e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * modification, are permitted provided that the following conditions 78e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * are met: 88e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 1. Redistributions of source code must retain the above copyright 98e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * notice, this list of conditions and the following disclaimer. 108e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 2. Redistributions in binary form must reproduce the above copyright 118e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * notice, this list of conditions and the following disclaimer in the 128e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * documentation and/or other materials provided with the distribution. 138e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 148e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY 158e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 168e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 178e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR 188e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 198e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 208e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 218e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 228e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 238e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 248e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 258e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project */ 268e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project 27231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Blockmodule html { 28231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block interface [ 2906ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen CanBeConstructed, 3006ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen CustomConstructFunction, 3106ea8e899e48f1f2f396b70e63fae369f2f23232Kristian Monsen V8CustomConstructor, 32231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block HasNumericIndexGetter, 33231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block HasCustomIndexSetter, 34231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block GenerateNativeConverter, 35a94275402997c11dd2e778633dacf4b7e630a35dBen Murdoch NoStaticTables, 36967717af5423377c967781471ee106e2bb4e11c8Ben Murdoch CustomToJS, 37967717af5423377c967781471ee106e2bb4e11c8Ben Murdoch DontCheckEnums 386c2af9490927c3c5959b5cb07461b646f8b32f6cKristian Monsen ] Uint8Array : ArrayBufferView { 39545e470e52f0ac6a3a072bf559c796b42c6066b6Ben Murdoch const unsigned int BYTES_PER_ELEMENT = 1; 40545e470e52f0ac6a3a072bf559c796b42c6066b6Ben Murdoch 414576aa36e9a9671459299c7963ac95aa94beaea9Shimeng (Simon) Wang readonly attribute unsigned long length; 422fc2651226baac27029e38c9d6ef883fa32084dbSteve Block Uint8Array subarray(in long start, in [Optional] long end); 434576aa36e9a9671459299c7963ac95aa94beaea9Shimeng (Simon) Wang 446c2af9490927c3c5959b5cb07461b646f8b32f6cKristian Monsen // void set(in Uint8Array array, [Optional] in unsigned long offset); 45643ca7872b450ea4efacab6188849e5aac2ba161Steve Block // void set(in sequence<long> array, [Optional] in unsigned long offset); 46643ca7872b450ea4efacab6188849e5aac2ba161Steve Block [Custom] void set(); 478e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project }; 488e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project} 49