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

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

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 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
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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.TabbedEditorContainerDelegate} 7 * @implements {WebInspector.TabbedEditorContainerDelegate}
8 * @implements {WebInspector.Searchable} 8 * @implements {WebInspector.Searchable}
9 * @implements {WebInspector.Replaceable} 9 * @implements {WebInspector.Replaceable}
10 * @extends {WebInspector.VBox} 10 * @extends {WebInspector.VBox}
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 { 263 {
264 var project = event.data; 264 var project = event.data;
265 var uiSourceCodes = project.uiSourceCodes(); 265 var uiSourceCodes = project.uiSourceCodes();
266 this._removeUISourceCodes(uiSourceCodes); 266 this._removeUISourceCodes(uiSourceCodes);
267 }, 267 },
268 268
269 _updateScriptViewToolbarItems: function() 269 _updateScriptViewToolbarItems: function()
270 { 270 {
271 this._scriptViewToolbar.removeToolbarItems(); 271 this._scriptViewToolbar.removeToolbarItems();
272 var view = this.visibleView() 272 var view = this.visibleView()
273 if (view instanceof WebInspector.View) { 273 if (view instanceof WebInspector.SimpleView) {
274 for (var item of (/** @type {?WebInspector.View} */(view)).toolbarIt ems()) 274 for (var item of (/** @type {?WebInspector.SimpleView} */(view)).syn cToolbarItems())
275 this._scriptViewToolbar.appendToolbarItem(item); 275 this._scriptViewToolbar.appendToolbarItem(item);
276 } 276 }
277 }, 277 },
278 278
279 /** 279 /**
280 * @param {!WebInspector.UISourceCode} uiSourceCode 280 * @param {!WebInspector.UISourceCode} uiSourceCode
281 * @param {number=} lineNumber 0-based 281 * @param {number=} lineNumber 0-based
282 * @param {number=} columnNumber 282 * @param {number=} columnNumber
283 * @param {boolean=} omitFocus 283 * @param {boolean=} omitFocus
284 * @param {boolean=} omitHighlight 284 * @param {boolean=} omitHighlight
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 */ 775 */
776 handleAction: function(context, actionId) 776 handleAction: function(context, actionId)
777 { 777 {
778 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView); 778 var sourcesView = WebInspector.context.flavor(WebInspector.SourcesView);
779 if (!sourcesView) 779 if (!sourcesView)
780 return false; 780 return false;
781 sourcesView._editorContainer.closeAllFiles(); 781 sourcesView._editorContainer.closeAllFiles();
782 return true; 782 return true;
783 } 783 }
784 } 784 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698