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

Side by Side Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 659403006: DevTools: do not consider ? a shortcut while editing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.U IString("Frames view. (Activity split into frames)"), "timeline-frames-status-ba r-item"); 335 var framesToggleButton = new WebInspector.StatusBarButton(WebInspector.U IString("Frames view. (Activity split into frames)"), "timeline-frames-status-ba r-item");
336 framesToggleButton.toggled = this._overviewModeSetting.get() === WebInsp ector.TimelinePanel.OverviewMode.Frames; 336 framesToggleButton.toggled = this._overviewModeSetting.get() === WebInsp ector.TimelinePanel.OverviewMode.Frames;
337 framesToggleButton.addEventListener("click", this._overviewModeChanged.b ind(this, framesToggleButton)); 337 framesToggleButton.addEventListener("click", this._overviewModeChanged.b ind(this, framesToggleButton));
338 this._statusBarButtons.push(framesToggleButton); 338 this._statusBarButtons.push(framesToggleButton);
339 panelStatusBarElement.appendChild(framesToggleButton.element); 339 panelStatusBarElement.appendChild(framesToggleButton.element);
340 340
341 if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) { 341 if (Runtime.experiments.isEnabled("timelineOnTraceEvents")) {
342 this._flameChartToggleButton = new WebInspector.StatusBarButton(WebI nspector.UIString("Flame chart view. (Use WASD or time selection to navigate)"), "timeline-flame-chart-status-bar-item"); 342 this._flameChartToggleButton = new WebInspector.StatusBarButton(WebI nspector.UIString("Flame chart view. (Use WASD or time selection to navigate)"), "timeline-flame-chart-status-bar-item");
343 this._flameChartToggleButton.toggled = this._flameChartEnabledSettin g.get(); 343 this._flameChartToggleButton.toggled = this._flameChartEnabledSettin g.get();
344 this._flameChartToggleButton.addEventListener("click", this._flameCh artEnabledChanged.bind(this, this._flameChartToggleButton)); 344 this._flameChartToggleButton.addEventListener("click", this._flameCh artEnabledChanged.bind(this));
345 this._statusBarButtons.push(this._flameChartToggleButton); 345 this._statusBarButtons.push(this._flameChartToggleButton);
346 panelStatusBarElement.appendChild(this._flameChartToggleButton.eleme nt); 346 panelStatusBarElement.appendChild(this._flameChartToggleButton.eleme nt);
347 } 347 }
348 348
349 this._captureCausesSetting = WebInspector.settings.createSetting("timeli neCaptureCauses", true); 349 this._captureCausesSetting = WebInspector.settings.createSetting("timeli neCaptureCauses", true);
350 this._captureCausesSetting.addChangeListener(this._refreshViews, this); 350 this._captureCausesSetting.addChangeListener(this._refreshViews, this);
351 panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspect or.UIString("Causes"), 351 panelStatusBarElement.appendChild(this._createSettingCheckbox(WebInspect or.UIString("Causes"),
352 this._capt ureCausesSetting, 352 this._capt ureCausesSetting,
353 WebInspect or.UIString("Capture causes (e.g., stack traces) for timeline events. (Has perfo rmance overhead)"))); 353 WebInspect or.UIString("Capture causes (e.g., stack traces) for timeline events. (Has perfo rmance overhead)")));
354 if (Runtime.experiments.isEnabled("timelineJSCPUProfile")) { 354 if (Runtime.experiments.isEnabled("timelineJSCPUProfile")) {
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 1475
1476 WebInspector.TimelinePanelFactory.prototype = { 1476 WebInspector.TimelinePanelFactory.prototype = {
1477 /** 1477 /**
1478 * @return {!WebInspector.Panel} 1478 * @return {!WebInspector.Panel}
1479 */ 1479 */
1480 createPanel: function() 1480 createPanel: function()
1481 { 1481 {
1482 return WebInspector.TimelinePanel._instance(); 1482 return WebInspector.TimelinePanel._instance();
1483 } 1483 }
1484 } 1484 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698