File tree Expand file tree Collapse file tree 3 files changed +52
-1
lines changed Expand file tree Collapse file tree 3 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 49
49
<Compile Include =" ConfigurationExtensions.cs" />
50
50
<Compile Include =" Dom\WebSocketReadyState.cs" />
51
51
<Compile Include =" Extensions\GeneralExtensions.cs" />
52
- <Compile Include =" Dom\IWebSocket.cs" />
52
+ <Compile Include =" Dom\WebSocket.cs" />
53
+ <Compile Include =" Interfaces\IStorage.cs" />
53
54
<Compile Include =" Network\HttpClientRequester.cs" />
54
55
<Compile Include =" Network\Response.cs" />
55
56
<Compile Include =" Properties\AssemblyInfo.cs" />
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ namespace AngleSharp . Io . Dom
2
+ {
3
+ using AngleSharp . Attributes ;
4
+ using System ;
5
+
6
+ /// <summary>
7
+ /// Represents the Storage interface. For more information see:
8
+ /// http://www.w3.org/TR/webstorage/#the-storage-interface
9
+ /// </summary>
10
+ [ DomName ( "Storage" ) ]
11
+ [ DomExposed ( "Window" ) ]
12
+ public interface IStorage
13
+ {
14
+ /// <summary>
15
+ /// Gets the number of stored keys.
16
+ /// </summary>
17
+ [ DomName ( "length" ) ]
18
+ Int32 Length { get ; }
19
+
20
+ /// <summary>
21
+ /// Gets the key at the given index, if any.
22
+ /// </summary>
23
+ /// <param name="index">The index of the key.</param>
24
+ /// <returns>The key or null.</returns>
25
+ [ DomName ( "key" ) ]
26
+ String Key ( Int32 index ) ;
27
+
28
+ /// <summary>
29
+ /// Gets or sets the item's value.
30
+ /// </summary>
31
+ /// <param name="key">The key of the item.</param>
32
+ /// <returns>The value if any.</returns>
33
+ [ DomAccessor ( Accessors . Getter | Accessors . Setter ) ]
34
+ String this [ String key ] { get ; set ; }
35
+
36
+ /// <summary>
37
+ /// Removes the item with the specified key.
38
+ /// </summary>
39
+ /// <param name="key">The key of the item to remove.</param>
40
+ [ DomAccessor ( Accessors . Deleter ) ]
41
+ [ DomName ( "removeItem" ) ]
42
+ void Remove ( String key ) ;
43
+
44
+ /// <summary>
45
+ /// Clears all items from the storage.
46
+ /// </summary>
47
+ [ DomName ( "clear" ) ]
48
+ void Clear ( ) ;
49
+ }
50
+ }
You can’t perform that action at this time.
0 commit comments