OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @param {?Object} config | 7 * @param {?Object} config |
8 */ | 8 */ |
9 WebInspector.ARIAMetadata = function(config) | 9 WebInspector.ARIAMetadata = function(config) |
10 { | 10 { |
11 /** @type {!Map<string, !WebInspector.ARIAMetadata.Attribute>} */ | 11 /** @type {!Map<string, !WebInspector.ARIAMetadata.Attribute>} */ |
12 this._attributes = new Map(); | 12 this._attributes = new Map(); |
13 | 13 |
14 if (config) | 14 if (config) |
15 this._initialize(config); | 15 this._initialize(config); |
16 } | 16 }; |
17 | 17 |
18 /** | 18 /** |
19 * @return {!WebInspector.ARIAMetadata} | 19 * @return {!WebInspector.ARIAMetadata} |
20 */ | 20 */ |
21 WebInspector.ariaMetadata = function() | 21 WebInspector.ariaMetadata = function() |
22 { | 22 { |
23 if (!WebInspector.ARIAMetadata._instance) | 23 if (!WebInspector.ARIAMetadata._instance) |
24 WebInspector.ARIAMetadata._instance = new WebInspector.ARIAMetadata(WebI
nspector.ARIAMetadata._config || null); | 24 WebInspector.ARIAMetadata._instance = new WebInspector.ARIAMetadata(WebI
nspector.ARIAMetadata._config || null); |
25 return WebInspector.ARIAMetadata._instance; | 25 return WebInspector.ARIAMetadata._instance; |
26 }; | 26 }; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 WebInspector.ARIAMetadata.Attribute.prototype = { | 77 WebInspector.ARIAMetadata.Attribute.prototype = { |
78 /** | 78 /** |
79 * @return {!Array<string>} | 79 * @return {!Array<string>} |
80 */ | 80 */ |
81 enum: function() | 81 enum: function() |
82 { | 82 { |
83 return this._enum; | 83 return this._enum; |
84 } | 84 } |
85 }; | 85 }; |
OLD | NEW |