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

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

Issue 388963004: DevTools: get rid of the global capabilities set. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 5 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebInspect or.UIString("Capture stacks"), 347 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebInspect or.UIString("Capture stacks"),
348 this._capt ureStacksSetting, 348 this._capt ureStacksSetting,
349 WebInspect or.UIString("Capture JavaScript stack on every timeline event"))); 349 WebInspect or.UIString("Capture JavaScript stack on every timeline event")));
350 350
351 this._captureMemorySetting = WebInspector.settings.createSetting("timeli neCaptureMemory", false); 351 this._captureMemorySetting = WebInspector.settings.createSetting("timeli neCaptureMemory", false);
352 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebInspect or.UIString("Capture memory"), 352 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebInspect or.UIString("Capture memory"),
353 this._capt ureMemorySetting, 353 this._capt ureMemorySetting,
354 WebInspect or.UIString("Capture memory information on every timeline event"))); 354 WebInspect or.UIString("Capture memory information on every timeline event")));
355 this._captureMemorySetting.addChangeListener(this._onModeChanged, this); 355 this._captureMemorySetting.addChangeListener(this._onModeChanged, this);
356 356
357 if (Capabilities.canProfilePower) { 357 if (WebInspector.experimentsSettings.timelinePowerProfiler.isEnabled()) {
358 this._capturePowerSetting = WebInspector.settings.createSetting("tim elineCapturePower", false); 358 this._capturePowerSetting = WebInspector.settings.createSetting("tim elineCapturePower", false);
359 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Capture power"), 359 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Capture power"),
360 this._ capturePowerSetting, 360 this._ capturePowerSetting,
361 WebIns pector.UIString("Capture power information"))); 361 WebIns pector.UIString("Capture power information")));
362 this._capturePowerSetting.addChangeListener(this._onModeChanged, thi s); 362 this._capturePowerSetting.addChangeListener(this._onModeChanged, thi s);
363 } 363 }
364 364
365 if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled()) { 365 if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled()) {
366 this._captureTracingSetting = WebInspector.settings.createSetting("t imelineCaptureTracing", false); 366 this._captureTracingSetting = WebInspector.settings.createSetting("t imelineCaptureTracing", false);
367 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Capture tracing"), 367 topPaneSidebarElement.appendChild(this._createSettingCheckbox(WebIns pector.UIString("Capture tracing"),
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 * @param {!WebInspector.TimelineModel.Record} record 1474 * @param {!WebInspector.TimelineModel.Record} record
1475 * @return {boolean} 1475 * @return {boolean}
1476 */ 1476 */
1477 accept: function(record) 1477 accept: function(record)
1478 { 1478 {
1479 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex); 1479 return !this._regex || this._uiUtils.testContentMatching(record, this._r egex);
1480 }, 1480 },
1481 1481
1482 __proto__: WebInspector.TimelineModel.Filter.prototype 1482 __proto__: WebInspector.TimelineModel.Filter.prototype
1483 } 1483 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/SourcesPanel.js ('k') | Source/devtools/front_end/timeline/TimelinePowerOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698