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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/JavaScriptOutlineDialog.js

Issue 1938053002: DevTools: brush up command menu looks, render badges. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {WebInspector.FilteredListWidget.Delegate} 9 * @extends {WebInspector.FilteredListWidget.Delegate}
10 * @param {!WebInspector.UISourceCode} uiSourceCode 10 * @param {!WebInspector.UISourceCode} uiSourceCode
11 * @param {function(number, number)} selectItemCallback 11 * @param {function(number, number)} selectItemCallback
12 */ 12 */
13 WebInspector.JavaScriptOutlineDialog = function(uiSourceCode, selectItemCallback ) 13 WebInspector.JavaScriptOutlineDialog = function(uiSourceCode, selectItemCallback )
14 { 14 {
15 WebInspector.FilteredListWidget.Delegate.call(this, []); 15 WebInspector.FilteredListWidget.Delegate.call(this, []);
16 16
17 this._functionItems = []; 17 this._functionItems = [];
18 this._selectItemCallback = selectItemCallback; 18 this._selectItemCallback = selectItemCallback;
19 WebInspector.formatterWorkerPool.runChunkedTask("javaScriptOutline", {conten t: uiSourceCode.workingCopy() }, this._didBuildOutlineChunk.bind(this)); 19 WebInspector.formatterWorkerPool.runChunkedTask("javaScriptOutline", {conten t: uiSourceCode.workingCopy() }, this._didBuildOutlineChunk.bind(this));
20 } 20 }
21 21
22 /** 22 /**
23 * @param {!WebInspector.UISourceCode} uiSourceCode 23 * @param {!WebInspector.UISourceCode} uiSourceCode
24 * @param {function(number, number)} selectItemCallback 24 * @param {function(number, number)} selectItemCallback
25 */ 25 */
26 WebInspector.JavaScriptOutlineDialog.show = function(uiSourceCode, selectItemCal lback) 26 WebInspector.JavaScriptOutlineDialog.show = function(uiSourceCode, selectItemCal lback)
27 { 27 {
28 new WebInspector.FilteredListWidget(new WebInspector.JavaScriptOutlineDialog (uiSourceCode, selectItemCallback), false).showAsDialog(); 28 new WebInspector.FilteredListWidget(new WebInspector.JavaScriptOutlineDialog (uiSourceCode, selectItemCallback)).showAsDialog();
29 } 29 }
30 30
31 WebInspector.JavaScriptOutlineDialog.prototype = { 31 WebInspector.JavaScriptOutlineDialog.prototype = {
32 /** 32 /**
33 * @param {?MessageEvent} event 33 * @param {?MessageEvent} event
34 */ 34 */
35 _didBuildOutlineChunk: function(event) 35 _didBuildOutlineChunk: function(event)
36 { 36 {
37 if (!event) { 37 if (!event) {
38 this.dispose(); 38 this.dispose();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 { 115 {
116 }, 116 },
117 117
118 __proto__: WebInspector.FilteredListWidget.Delegate.prototype 118 __proto__: WebInspector.FilteredListWidget.Delegate.prototype
119 } 119 }
120 120
121 /** 121 /**
122 * @typedef {{isLastChunk: boolean, chunk: !Array.<!{selectorText: string, lineN umber: number, columnNumber: number}>}} 122 * @typedef {{isLastChunk: boolean, chunk: !Array.<!{selectorText: string, lineN umber: number, columnNumber: number}>}}
123 */ 123 */
124 WebInspector.JavaScriptOutlineDialog.MessageEventData; 124 WebInspector.JavaScriptOutlineDialog.MessageEventData;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698