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

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

Issue 756913002: DevTools: Rename WI.Color's toString(format) -> asString(format) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests Created 6 years 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 var container = memoryCountersPane.sidebarElement().createChild("div", "memo ry-counter-sidebar-info"); 381 var container = memoryCountersPane.sidebarElement().createChild("div", "memo ry-counter-sidebar-info");
382 var swatchColor = graphColor; 382 var swatchColor = graphColor;
383 this._swatch = new WebInspector.SwatchCheckbox(WebInspector.UIString(title), swatchColor); 383 this._swatch = new WebInspector.SwatchCheckbox(WebInspector.UIString(title), swatchColor);
384 this._swatch.addEventListener(WebInspector.SwatchCheckbox.Events.Changed, th is._toggleCounterGraph.bind(this)); 384 this._swatch.addEventListener(WebInspector.SwatchCheckbox.Events.Changed, th is._toggleCounterGraph.bind(this));
385 container.appendChild(this._swatch.element); 385 container.appendChild(this._swatch.element);
386 this._range = this._swatch.element.createChild("span"); 386 this._range = this._swatch.element.createChild("span");
387 387
388 this._value = memoryCountersPane._currentValuesBar.createChild("span", "memo ry-counter-value"); 388 this._value = memoryCountersPane._currentValuesBar.createChild("span", "memo ry-counter-value");
389 this._value.style.color = graphColor; 389 this._value.style.color = graphColor;
390 this.graphColor = graphColor; 390 this.graphColor = graphColor;
391 this.limitColor = WebInspector.Color.parse(graphColor).setAlpha(0.3).toStrin g(WebInspector.Color.Format.RGBA); 391 this.limitColor = WebInspector.Color.parse(graphColor).setAlpha(0.3).asStrin g(WebInspector.Color.Format.RGBA);
392 this.graphYValues = []; 392 this.graphYValues = [];
393 this._verticalPadding = 10; 393 this._verticalPadding = 10;
394 394
395 this._currentValueLabel = currentValueLabel; 395 this._currentValueLabel = currentValueLabel;
396 this._marker = memoryCountersPane._canvasContainer.createChild("div", "memor y-counter-marker"); 396 this._marker = memoryCountersPane._canvasContainer.createChild("div", "memor y-counter-marker");
397 this._marker.style.backgroundColor = graphColor; 397 this._marker.style.backgroundColor = graphColor;
398 this._clearCurrentValueAndMarker(); 398 this._clearCurrentValueAndMarker();
399 } 399 }
400 400
401 WebInspector.CountersGraph.CounterUI.prototype = { 401 WebInspector.CountersGraph.CounterUI.prototype = {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 }, 558 },
559 559
560 _toggleCheckbox: function(event) 560 _toggleCheckbox: function(event)
561 { 561 {
562 this.checked = !this.checked; 562 this.checked = !this.checked;
563 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed ); 563 this.dispatchEventToListeners(WebInspector.SwatchCheckbox.Events.Changed );
564 }, 564 },
565 565
566 __proto__: WebInspector.Object.prototype 566 __proto__: WebInspector.Object.prototype
567 } 567 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/screencast/ScreencastView.js ('k') | Source/devtools/front_end/timeline/TimelineFlameChart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698