1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/IDBKeyRange.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 +/* 1.8 + * The origin of this IDL file is 1.9 + * https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html 1.10 + * 1.11 + * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C 1.12 + * liability, trademark and document use rules apply. 1.13 + */ 1.14 + 1.15 +interface IDBKeyRange { 1.16 + [Throws] 1.17 + readonly attribute any lower; 1.18 + [Throws] 1.19 + readonly attribute any upper; 1.20 + [Constant] 1.21 + readonly attribute boolean lowerOpen; 1.22 + [Constant] 1.23 + readonly attribute boolean upperOpen; 1.24 + [NewObject, Throws] 1.25 + static IDBKeyRange only (any value); 1.26 + [NewObject, Throws] 1.27 + static IDBKeyRange lowerBound (any lower, optional boolean open = false); 1.28 + [NewObject, Throws] 1.29 + static IDBKeyRange upperBound (any upper, optional boolean open = false); 1.30 + [NewObject, Throws] 1.31 + static IDBKeyRange bound (any lower, any upper, optional boolean lowerOpen = false, optional boolean upperOpen = false); 1.32 +};