Chromium Code Reviews| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 { | 110 { |
| 111 return this._name; | 111 return this._name; |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 /** | 115 /** |
| 116 * @const | 116 * @const |
| 117 * @type {!Array.<!WebInspector.DocumentationURLProvider.DocumentationSource>} | 117 * @type {!Array.<!WebInspector.DocumentationURLProvider.DocumentationSource>} |
| 118 */ | 118 */ |
| 119 WebInspector.DocumentationURLProvider._sources = [ | 119 WebInspector.DocumentationURLProvider._sources = [ |
| 120 new WebInspector.DocumentationURLProvider.DocumentationSource(window, "javas cript/","Global"), | 120 new WebInspector.DocumentationURLProvider.DocumentationSource(Window.prototy pe, "javascript/","Global"), |
|
lushnikov
2014/09/08 14:08:29
why this change again?
iliia
2014/09/08 15:20:49
Done.
| |
| 121 new WebInspector.DocumentationURLProvider.DocumentationSource(Node.prototype , "dom/Node/", "Node.prototype"), | 121 new WebInspector.DocumentationURLProvider.DocumentationSource(Node.prototype , "dom/Node/", "Node.prototype"), |
| 122 new WebInspector.DocumentationURLProvider.DocumentationSource(Node, "dom/Nod e/", "Node"), | 122 new WebInspector.DocumentationURLProvider.DocumentationSource(Node, "dom/Nod e/", "Node"), |
| 123 new WebInspector.DocumentationURLProvider.DocumentationSource(Object.prototy pe, "javascript/Object/", "Object.prototype"), | 123 new WebInspector.DocumentationURLProvider.DocumentationSource(Object.prototy pe, "javascript/Object/", "Object.prototype"), |
| 124 new WebInspector.DocumentationURLProvider.DocumentationSource(Object, "javas cript/Object/", "Object"), | 124 new WebInspector.DocumentationURLProvider.DocumentationSource(Object, "javas cript/Object/", "Object"), |
| 125 new WebInspector.DocumentationURLProvider.DocumentationSource(Math, "javascr ipt/Math/", "Math"), | 125 new WebInspector.DocumentationURLProvider.DocumentationSource(Math, "javascr ipt/Math/", "Math"), |
| 126 new WebInspector.DocumentationURLProvider.DocumentationSource(Array.prototyp e, "javascript/Array/", "Array.prototype"), | 126 new WebInspector.DocumentationURLProvider.DocumentationSource(Array.prototyp e, "javascript/Array/", "Array.prototype"), |
| 127 new WebInspector.DocumentationURLProvider.DocumentationSource(Array, "javasc ript/Array/", "Array"), | 127 new WebInspector.DocumentationURLProvider.DocumentationSource(Array, "javasc ript/Array/", "Array"), |
| 128 new WebInspector.DocumentationURLProvider.DocumentationSource(String.prototy pe, "javascript/String/","String.prototype"), | 128 new WebInspector.DocumentationURLProvider.DocumentationSource(String.prototy pe, "javascript/String/","String.prototype"), |
| 129 new WebInspector.DocumentationURLProvider.DocumentationSource(String, "javas cript/String/", "String"), | 129 new WebInspector.DocumentationURLProvider.DocumentationSource(String, "javas cript/String/", "String"), |
| 130 new WebInspector.DocumentationURLProvider.DocumentationSource(Date.prototype , "javascript/Date/", "Date.prototype"), | 130 new WebInspector.DocumentationURLProvider.DocumentationSource(Date.prototype , "javascript/Date/", "Date.prototype"), |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 242 var sources = WebInspector.DocumentationURLProvider._sources; | 242 var sources = WebInspector.DocumentationURLProvider._sources; |
| 243 for (var i = 0; i < sources.length; ++i) { | 243 for (var i = 0; i < sources.length; ++i) { |
| 244 if (sources[i].url() !== sourceName || !sources[i].source().hasOwnPr operty(propertyName)) | 244 if (sources[i].url() !== sourceName || !sources[i].source().hasOwnPr operty(propertyName)) |
| 245 continue; | 245 continue; |
| 246 var descriptors = this._articleList.get(propertyName) || []; | 246 var descriptors = this._articleList.get(propertyName) || []; |
| 247 descriptors.push(new WebInspector.DocumentationURLProvider.ItemDescr iptor(sources[i], propertyName)); | 247 descriptors.push(new WebInspector.DocumentationURLProvider.ItemDescr iptor(sources[i], propertyName)); |
| 248 this._articleList.set(propertyName, descriptors); | 248 this._articleList.set(propertyName, descriptors); |
| 249 } | 249 } |
| 250 } | 250 } |
| 251 } | 251 } |
| OLD | NEW |