OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 */ | 7 */ |
8 WebInspector.DocumentationURLProvider = function() | 8 WebInspector.DocumentationURLProvider = function() |
9 { | 9 { |
10 this._gapFromIndex = 0; | 10 this._gapFromIndex = 0; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 new WebInspector.DocumentationURLProvider.DocumentationSource(Number, "javas
cript/Number/", "Number"), | 133 new WebInspector.DocumentationURLProvider.DocumentationSource(Number, "javas
cript/Number/", "Number"), |
134 new WebInspector.DocumentationURLProvider.DocumentationSource(Number.prototy
pe, "javascript/Number/", "Number.prototype"), | 134 new WebInspector.DocumentationURLProvider.DocumentationSource(Number.prototy
pe, "javascript/Number/", "Number.prototype"), |
135 new WebInspector.DocumentationURLProvider.DocumentationSource(Error.prototyp
e, "javascript/Error/", "Error.prototype"), | 135 new WebInspector.DocumentationURLProvider.DocumentationSource(Error.prototyp
e, "javascript/Error/", "Error.prototype"), |
136 new WebInspector.DocumentationURLProvider.DocumentationSource(RegExp.prototy
pe, "javascript/regular_expression/", "RegExp.prototype"), | 136 new WebInspector.DocumentationURLProvider.DocumentationSource(RegExp.prototy
pe, "javascript/regular_expression/", "RegExp.prototype"), |
137 new WebInspector.DocumentationURLProvider.DocumentationSource(Function.proto
type, "javascript/Function/", "Function.prototype") | 137 new WebInspector.DocumentationURLProvider.DocumentationSource(Function.proto
type, "javascript/Function/", "Function.prototype") |
138 ]; | 138 ]; |
139 | 139 |
140 /** | 140 /** |
141 * @const | 141 * @const |
142 */ | 142 */ |
143 WebInspector.DocumentationURLProvider._articleUrlFormat = "http://docs.webplatfo
rm.org/w/api.php?action=query&titles=%s%s&prop=revisions&rvprop=timestamp|conten
t&format=json"; | 143 WebInspector.DocumentationURLProvider.urlPrefix = "http://docs.webplatform.org"; |
144 | 144 |
145 /** | 145 /** |
146 * @const | 146 * @const |
147 */ | 147 */ |
148 WebInspector.DocumentationURLProvider._articleListUrlFormat = "http://docs.webpl
atform.org/w/api.php?action=query&generator=allpages&gaplimit=500&gapfrom=%s&for
mat=json"; | 148 WebInspector.DocumentationURLProvider._articleUrlFormat = WebInspector.Documenta
tionURLProvider.urlPrefix + "/w/api.php?action=query&titles=%s%s&prop=revisions&
rvprop=timestamp|content&format=json"; |
149 | 149 |
150 /** | 150 /** |
151 * @const | 151 * @const |
| 152 */ |
| 153 WebInspector.DocumentationURLProvider._articleListUrlFormat = WebInspector.Docum
entationURLProvider.urlPrefix + "/w/api.php?action=query&generator=allpages&gapl
imit=500&gapfrom=%s&format=json"; |
| 154 |
| 155 /** |
| 156 * @const |
152 */ | 157 */ |
153 WebInspector.DocumentationURLProvider._gapFromList = [ | 158 WebInspector.DocumentationURLProvider._gapFromList = [ |
154 "dom/Node/", | 159 "dom/Node/", |
155 "javascript/" | 160 "javascript/" |
156 ]; | 161 ]; |
157 | 162 |
158 WebInspector.DocumentationURLProvider.prototype = { | 163 WebInspector.DocumentationURLProvider.prototype = { |
159 /** | 164 /** |
160 * @param {string} searchTerm | 165 * @param {string} searchTerm |
161 * @return {!Array.<!WebInspector.DocumentationURLProvider.ItemDescriptor>} | 166 * @return {!Array.<!WebInspector.DocumentationURLProvider.ItemDescriptor>} |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 * FIXME: object parameter is not annotated properly due to crbug.com/407097 | 257 * FIXME: object parameter is not annotated properly due to crbug.com/407097 |
253 * @param {*} object | 258 * @param {*} object |
254 * @param {string} propertyName | 259 * @param {string} propertyName |
255 * @return {boolean} | 260 * @return {boolean} |
256 */ | 261 */ |
257 _inheritedFromFunction: function(object, propertyName) | 262 _inheritedFromFunction: function(object, propertyName) |
258 { | 263 { |
259 return (object instanceof Function && object.hasOwnProperty(propertyName
) && Function.hasOwnProperty(propertyName)); | 264 return (object instanceof Function && object.hasOwnProperty(propertyName
) && Function.hasOwnProperty(propertyName)); |
260 } | 265 } |
261 } | 266 } |
OLD | NEW |