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

Unified Diff: Source/devtools/front_end/timeline/TimelineModel.js

Issue 423433004: DevTools: move the "Capture *" checkboxes from timeline sidebar to the toolbar. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/timeline/TimelineModel.js
diff --git a/Source/devtools/front_end/timeline/TimelineModel.js b/Source/devtools/front_end/timeline/TimelineModel.js
index 9449c2d1a72b51a748d90ea36b1caa852e782121..d99ec08f49e6ce85788c7b9deffb2b6827c9ed15 100644
--- a/Source/devtools/front_end/timeline/TimelineModel.js
+++ b/Source/devtools/front_end/timeline/TimelineModel.js
@@ -284,6 +284,14 @@ WebInspector.TimelineModel.prototype = {
},
/**
+ * @return {boolean}
+ */
+ isEmpty: function()
+ {
+ return this.minimumRecordTime() === 0 && this.maximumRecordTime() === 0;
+ },
+
+ /**
* @param {!WebInspector.TimelineModel.Record} record
*/
_updateBoundaries: function(record)

Powered by Google App Engine
This is Rietveld 408576698