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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js b/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
index b014a170f47322bc85859aacdb8d346565f185b2..20af21111105384f203531b9aa1be20d365e437a 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/MemoryCountersGraph.js
@@ -28,29 +28,29 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
- * @implements {WebInspector.TimelineModeView}
+ * @implements {Timeline.TimelineModeView}
* @unrestricted
*/
-WebInspector.MemoryCountersGraph = class extends WebInspector.CountersGraph {
+Timeline.MemoryCountersGraph = class extends Timeline.CountersGraph {
/**
- * @param {!WebInspector.TimelineModeViewDelegate} delegate
- * @param {!WebInspector.TimelineModel} model
- * @param {!Array<!WebInspector.TimelineModel.Filter>} filters
+ * @param {!Timeline.TimelineModeViewDelegate} delegate
+ * @param {!TimelineModel.TimelineModel} model
+ * @param {!Array<!TimelineModel.TimelineModel.Filter>} filters
*/
constructor(delegate, model, filters) {
super(delegate, model, filters);
this._countersByName = {};
this._countersByName['jsHeapSizeUsed'] = this.createCounter(
- WebInspector.UIString('JS Heap'), WebInspector.UIString('JS Heap: %s'), 'hsl(220, 90%, 43%)',
+ Common.UIString('JS Heap'), Common.UIString('JS Heap: %s'), 'hsl(220, 90%, 43%)',
Number.bytesToString);
this._countersByName['documents'] = this.createCounter(
- WebInspector.UIString('Documents'), WebInspector.UIString('Documents: %s'), 'hsl(0, 90%, 43%)');
+ Common.UIString('Documents'), Common.UIString('Documents: %s'), 'hsl(0, 90%, 43%)');
this._countersByName['nodes'] =
- this.createCounter(WebInspector.UIString('Nodes'), WebInspector.UIString('Nodes: %s'), 'hsl(120, 90%, 43%)');
+ this.createCounter(Common.UIString('Nodes'), Common.UIString('Nodes: %s'), 'hsl(120, 90%, 43%)');
this._countersByName['jsEventListeners'] = this.createCounter(
- WebInspector.UIString('Listeners'), WebInspector.UIString('Listeners: %s'), 'hsl(38, 90%, 43%)');
+ Common.UIString('Listeners'), Common.UIString('Listeners: %s'), 'hsl(38, 90%, 43%)');
this._gpuMemoryCounter = this.createCounter(
- WebInspector.UIString('GPU Memory'), WebInspector.UIString('GPU Memory [KB]: %s'), 'hsl(300, 90%, 43%)',
+ Common.UIString('GPU Memory'), Common.UIString('GPU Memory [KB]: %s'), 'hsl(300, 90%, 43%)',
Number.bytesToString);
this._countersByName['gpuMemoryUsedKB'] = this._gpuMemoryCounter;
}
@@ -63,7 +63,7 @@ WebInspector.MemoryCountersGraph = class extends WebInspector.CountersGraph {
var events = this._model.mainThreadEvents();
for (var i = 0; i < events.length; ++i) {
var event = events[i];
- if (event.name !== WebInspector.TimelineModel.RecordType.UpdateCounters)
+ if (event.name !== TimelineModel.TimelineModel.RecordType.UpdateCounters)
continue;
var counters = event.args.data;

Powered by Google App Engine
This is Rietveld 408576698