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

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

Issue 2679483002: DevTools: Create extensible QuickOpen control (Closed)
Patch Set: Created 3 years, 10 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 992
993 var location = response.location; 993 var location = response.location;
994 if (!location) 994 if (!location)
995 return; 995 return;
996 996
997 var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(l ocation); 997 var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(l ocation);
998 if (uiLocation) 998 if (uiLocation)
999 this.showUILocation(uiLocation); 999 this.showUILocation(uiLocation);
1000 } 1000 }
1001 1001
1002 showGoToSourceDialog() {
1003 this._sourcesView.showOpenResourceDialog();
1004 }
1005
1006 _revealNavigatorSidebar() { 1002 _revealNavigatorSidebar() {
1007 this._setAsCurrentPanel(); 1003 this._setAsCurrentPanel();
1008 this.editorView.showBoth(true); 1004 this.editorView.showBoth(true);
1009 } 1005 }
1010 1006
1011 _revealDebuggerSidebar() { 1007 _revealDebuggerSidebar() {
1012 this._setAsCurrentPanel(); 1008 this._setAsCurrentPanel();
1013 this._splitWidget.showBoth(true); 1009 this._splitWidget.showBoth(true);
1014 } 1010 }
1015 1011
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 * @return {boolean} 1215 * @return {boolean}
1220 */ 1216 */
1221 handleAction(context, actionId) { 1217 handleAction(context, actionId) {
1222 var panel = Sources.SourcesPanel.instance(); 1218 var panel = Sources.SourcesPanel.instance();
1223 if (!panel._ensureSourcesViewVisible()) 1219 if (!panel._ensureSourcesViewVisible())
1224 return false; 1220 return false;
1225 switch (actionId) { 1221 switch (actionId) {
1226 case 'debugger.toggle-pause': 1222 case 'debugger.toggle-pause':
1227 panel._togglePause(); 1223 panel._togglePause();
1228 return true; 1224 return true;
1229 case 'sources.go-to-source':
1230 panel.showGoToSourceDialog();
1231 return true;
1232 } 1225 }
1233 return false; 1226 return false;
1234 } 1227 }
1235 }; 1228 };
1236 1229
1237 /** 1230 /**
1238 * @implements {UI.ActionDelegate} 1231 * @implements {UI.ActionDelegate}
1239 * @unrestricted 1232 * @unrestricted
1240 */ 1233 */
1241 Sources.SourcesPanel.DebuggingActionDelegate = class { 1234 Sources.SourcesPanel.DebuggingActionDelegate = class {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 */ 1305 */
1313 willHide() { 1306 willHide() {
1314 UI.inspectorView.setDrawerMinimized(false); 1307 UI.inspectorView.setDrawerMinimized(false);
1315 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance())); 1308 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc es.SourcesPanel.instance()));
1316 } 1309 }
1317 1310
1318 _showViewInWrapper() { 1311 _showViewInWrapper() {
1319 this._view.show(this.element); 1312 this._view.show(this.element);
1320 } 1313 }
1321 }; 1314 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698