| 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 importScript("WikiParser.js"); |
| 6 importScript("JSArticle.js"); |
| 7 importScript("CSSArticle.js"); |
| 8 importScript("DocumentationURLProvider.js"); |
| 9 |
| 5 /** | 10 /** |
| 6 * @constructor | 11 * @constructor |
| 7 * @extends {WebInspector.VBox} | 12 * @extends {WebInspector.VBox} |
| 8 */ | 13 */ |
| 9 WebInspector.DocumentationView = function() | 14 WebInspector.DocumentationView = function() |
| 10 { | 15 { |
| 11 WebInspector.VBox.call(this); | 16 WebInspector.VBox.call(this); |
| 12 } | 17 } |
| 13 | 18 |
| 14 /** | 19 /** |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 */ | 58 */ |
| 54 _showDocumentation: function(textEditor) | 59 _showDocumentation: function(textEditor) |
| 55 { | 60 { |
| 56 var selection = textEditor.selection(); | 61 var selection = textEditor.selection(); |
| 57 if (!selection || selection.isEmpty()) | 62 if (!selection || selection.isEmpty()) |
| 58 return; | 63 return; |
| 59 var selectedText = textEditor.copyRange(selection); | 64 var selectedText = textEditor.copyRange(selection); |
| 60 WebInspector.DocumentationView.showSearchTerm(selectedText); | 65 WebInspector.DocumentationView.showSearchTerm(selectedText); |
| 61 } | 66 } |
| 62 } | 67 } |
| OLD | NEW |