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

Unified Diff: Source/devtools/front_end/profiler/CPUProfileView.js

Issue 672553002: DevTools: [FlameChart] focus flamechart when it gets shown (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/profiler/CPUProfileView.js
diff --git a/Source/devtools/front_end/profiler/CPUProfileView.js b/Source/devtools/front_end/profiler/CPUProfileView.js
index 38eb785ef2fd1b9441d25fa41de22b6ab4929512..aea3dd376b32a91c28b47c54a2a38ea11d2bd401 100644
--- a/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -88,6 +88,14 @@ WebInspector.CPUProfileView._TypeTree = "Tree";
WebInspector.CPUProfileView._TypeHeavy = "Heavy";
WebInspector.CPUProfileView.prototype = {
+ focus: function()
+ {
+ if (this._flameChart)
+ this._flameChart.focus();
+ else
+ WebInspector.View.prototype.focus.call(this);
+ },
+
/**
* @return {?WebInspector.Target}
*/
« no previous file with comments | « Source/devtools/front_end/profiler/CPUProfileFlameChart.js ('k') | Source/devtools/front_end/profiler/ProfilesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698