2 * Copyright 2009 The Closure Compiler Authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * @fileoverview Definitions for W3C's WebStorage specification.
18 * This file depends on html5.js.
24 * @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-storage-interface
32 Storage
.prototype.length
;
35 * @param {number} index
38 Storage
.prototype.key = function(index
) {};
44 Storage
.prototype.getItem = function(key
) {};
48 * @param {string} data
51 Storage
.prototype.setItem = function(key
, data
) {};
57 Storage
.prototype.removeItem = function(key
) {};
62 Storage
.prototype.clear = function() {};
66 * @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-sessionstorage-attribute
68 function WindowSessionStorage() {}
73 WindowSessionStorage
.prototype.sessionStorage
;
76 * Window implements WindowSessionStorage
80 Window
.prototype.sessionStorage
;
84 * @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-localstorage-attribute
86 function WindowLocalStorage() {}
91 WindowLocalStorage
.prototype.localStorage
;
94 * Window implements WindowLocalStorage
98 Window
.prototype.localStorage
;
101 * This is the storage event interface.
102 * @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-storage-event
106 function StorageEvent() {}
111 StorageEvent
.prototype.key
;
116 StorageEvent
.prototype.oldValue
;
121 StorageEvent
.prototype.newValue
;
126 StorageEvent
.prototype.url
;
131 StorageEvent
.prototype.storageArea
;
134 * @param {string} typeArg
135 * @param {boolean} canBubbleArg
136 * @param {boolean} cancelableArg
137 * @param {string} keyArg
138 * @param {?string} oldValueArg
139 * @param {?string} newValueArg
140 * @param {string} urlArg
141 * @param {?Storage} storageAreaArg
144 StorageEvent
.prototype.initStorageEvent = function(typeArg
, canBubbleArg
,
145 cancelableArg
, keyArg
,
146 oldValueArg
, newValueArg
,
147 urlArg
, storageAreaArg
) {};