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

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

Issue 710113002: DevTools: remove TimelineModel.Events.RecordAdded event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comment Created 6 years, 1 month 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 * 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 WebSocketCreate : "WebSocketCreate", 96 WebSocketCreate : "WebSocketCreate",
97 WebSocketSendHandshakeRequest : "WebSocketSendHandshakeRequest", 97 WebSocketSendHandshakeRequest : "WebSocketSendHandshakeRequest",
98 WebSocketReceiveHandshakeResponse : "WebSocketReceiveHandshakeResponse", 98 WebSocketReceiveHandshakeResponse : "WebSocketReceiveHandshakeResponse",
99 WebSocketDestroy : "WebSocketDestroy", 99 WebSocketDestroy : "WebSocketDestroy",
100 100
101 EmbedderCallback : "EmbedderCallback", 101 EmbedderCallback : "EmbedderCallback",
102 } 102 }
103 103
104 WebInspector.TimelineModel.Events = { 104 WebInspector.TimelineModel.Events = {
105 RecordAdded: "RecordAdded",
106 RecordsCleared: "RecordsCleared", 105 RecordsCleared: "RecordsCleared",
107 RecordingStarted: "RecordingStarted", 106 RecordingStarted: "RecordingStarted",
108 RecordingStopped: "RecordingStopped", 107 RecordingStopped: "RecordingStopped",
109 RecordingProgress: "RecordingProgress",
110 RecordFilterChanged: "RecordFilterChanged" 108 RecordFilterChanged: "RecordFilterChanged"
111 } 109 }
112 110
113 WebInspector.TimelineModel.MainThreadName = "main"; 111 WebInspector.TimelineModel.MainThreadName = "main";
114 112
115 /** 113 /**
116 * @param {!Array.<!WebInspector.TimelineModel.Record>} recordsArray 114 * @param {!Array.<!WebInspector.TimelineModel.Record>} recordsArray
117 * @param {?function(!WebInspector.TimelineModel.Record)|?function(!WebInspector .TimelineModel.Record,number)} preOrderCallback 115 * @param {?function(!WebInspector.TimelineModel.Record)|?function(!WebInspector .TimelineModel.Record,number)} preOrderCallback
118 * @param {function(!WebInspector.TimelineModel.Record)|function(!WebInspector.T imelineModel.Record,number)=} postOrderCallback 116 * @param {function(!WebInspector.TimelineModel.Record)|function(!WebInspector.T imelineModel.Record,number)=} postOrderCallback
119 * @return {boolean} 117 * @return {boolean}
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 case FileError.NOT_READABLE_ERR: 610 case FileError.NOT_READABLE_ERR:
613 WebInspector.console.error(WebInspector.UIString("File \"%s\" is not readable", reader.fileName())); 611 WebInspector.console.error(WebInspector.UIString("File \"%s\" is not readable", reader.fileName()));
614 break; 612 break;
615 case FileError.ABORT_ERR: 613 case FileError.ABORT_ERR:
616 break; 614 break;
617 default: 615 default:
618 WebInspector.console.error(WebInspector.UIString("An error occurred while reading the file \"%s\"", reader.fileName())); 616 WebInspector.console.error(WebInspector.UIString("An error occurred while reading the file \"%s\"", reader.fileName()));
619 } 617 }
620 } 618 }
621 } 619 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelineFlameChart.js ('k') | Source/devtools/front_end/timeline/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698