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

Side by Side Diff: Source/devtools/front_end/CPUProfileView.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 { 409 {
410 var node = event.data; 410 var node = event.data;
411 if (!node || !node.scriptId) 411 if (!node || !node.scriptId)
412 return; 412 return;
413 var script = WebInspector.debuggerModel.scriptForId(node.scriptId) 413 var script = WebInspector.debuggerModel.scriptForId(node.scriptId)
414 if (!script) 414 if (!script)
415 return; 415 return;
416 var uiLocation = script.rawLocationToUILocation(node.lineNumber); 416 var uiLocation = script.rawLocationToUILocation(node.lineNumber);
417 if (!uiLocation) 417 if (!uiLocation)
418 return; 418 return;
419 WebInspector.showPanel("scripts").showUILocation(uiLocation); 419 WebInspector.showPanel("sources").showUILocation(uiLocation);
420 }, 420 },
421 421
422 _changeView: function() 422 _changeView: function()
423 { 423 {
424 if (!this.profile) 424 if (!this.profile)
425 return; 425 return;
426 426
427 switch (this.viewSelectComboBox.selectedOption().value) { 427 switch (this.viewSelectComboBox.selectedOption().value) {
428 case WebInspector.CPUProfileView._TypeFlame: 428 case WebInspector.CPUProfileView._TypeFlame:
429 this._ensureFlameChartCreated(); 429 this._ensureFlameChartCreated();
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 this.title = file.name; 926 this.title = file.name;
927 this.sidebarElement.subtitle = WebInspector.UIString("Loading\u2026"); 927 this.sidebarElement.subtitle = WebInspector.UIString("Loading\u2026");
928 this.sidebarElement.wait = true; 928 this.sidebarElement.wait = true;
929 929
930 var fileReader = new WebInspector.ChunkedFileReader(file, 10000000, this ); 930 var fileReader = new WebInspector.ChunkedFileReader(file, 10000000, this );
931 fileReader.start(this); 931 fileReader.start(this);
932 }, 932 },
933 933
934 __proto__: WebInspector.ProfileHeader.prototype 934 __proto__: WebInspector.ProfileHeader.prototype
935 } 935 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/AdvancedSearchController.js ('k') | Source/devtools/front_end/CallStackSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698