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

Side by Side Diff: Source/devtools/front_end/InspectorFrontendAPI.js

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 /** 72 /**
73 * Focus on a particular line in the specified resource. 73 * Focus on a particular line in the specified resource.
74 * @param {string} url The url to the resource. 74 * @param {string} url The url to the resource.
75 * @param {number} lineNumber The line number to focus on. 75 * @param {number} lineNumber The line number to focus on.
76 * @param {number} columnNumber The column number to focus on. 76 * @param {number} columnNumber The column number to focus on.
77 */ 77 */
78 revealSourceLine: function(url, lineNumber, columnNumber) 78 revealSourceLine: function(url, lineNumber, columnNumber)
79 { 79 {
80 var uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(url); 80 var uiSourceCode = WebInspector.workspace.uiSourceCodeForURL(url);
81 if (uiSourceCode) { 81 if (uiSourceCode) {
82 WebInspector.showPanel("scripts").showUISourceCode(uiSourceCode, lin eNumber, columnNumber); 82 WebInspector.showPanel("sources").showUISourceCode(uiSourceCode, lin eNumber, columnNumber);
83 return; 83 return;
84 } 84 }
85 85
86 /** 86 /**
87 * @param {WebInspector.Event} event 87 * @param {WebInspector.Event} event
88 */ 88 */
89 function listener(event) 89 function listener(event)
90 { 90 {
91 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.d ata); 91 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.d ata);
92 if (uiSourceCode.url === url) { 92 if (uiSourceCode.url === url) {
93 WebInspector.showPanel("scripts").showUISourceCode(uiSourceCode, lineNumber, columnNumber); 93 WebInspector.showPanel("sources").showUISourceCode(uiSourceCode, lineNumber, columnNumber);
94 WebInspector.workspace.removeEventListener(WebInspector.Workspac e.Events.UISourceCodeAdded, listener); 94 WebInspector.workspace.removeEventListener(WebInspector.Workspac e.Events.UISourceCodeAdded, listener);
95 } 95 }
96 } 96 }
97 97
98 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.UI SourceCodeAdded, listener); 98 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.UI SourceCodeAdded, listener);
99 }, 99 },
100 100
101 fileSystemsLoaded: function(fileSystems) 101 fileSystemsLoaded: function(fileSystems)
102 { 102 {
103 WebInspector.isolatedFileSystemDispatcher.fileSystemsLoaded(fileSystems) ; 103 WebInspector.isolatedFileSystemDispatcher.fileSystemsLoaded(fileSystems) ;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 212 }
213 213
214 if (window.opener && window.dispatchStandaloneTestRunnerMessages) { 214 if (window.opener && window.dispatchStandaloneTestRunnerMessages) {
215 function onMessageFromOpener(event) 215 function onMessageFromOpener(event)
216 { 216 {
217 if (event.source === window.opener) 217 if (event.source === window.opener)
218 InspectorFrontendAPI.dispatch(event.data); 218 InspectorFrontendAPI.dispatch(event.data);
219 } 219 }
220 window.addEventListener("message", onMessageFromOpener, true); 220 window.addEventListener("message", onMessageFromOpener, true);
221 } 221 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/FilteredItemSelectionDialog.js ('k') | Source/devtools/front_end/JavaScriptSourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698