Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: Source/devtools/front_end/documentation/DocumentationView.js

Issue 458753003: Revert of DevTools: Introduce module initializers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/devices/module.json ('k') | Source/devtools/front_end/documentation/_module.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698