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

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

Issue 182113004: DevTools: Get rid of Element.prototype.enableStyleClass (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 6 years, 9 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
« no previous file with comments | « Source/devtools/front_end/ThreadsToolbar.js ('k') | Source/devtools/front_end/TimelineView.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 * @return {!Element} 394 * @return {!Element}
395 */ 395 */
396 defaultFocusedElement: function() 396 defaultFocusedElement: function()
397 { 397 {
398 return this.element; 398 return this.element;
399 }, 399 },
400 400
401 _onFiltersToggled: function(event) 401 _onFiltersToggled: function(event)
402 { 402 {
403 var toggled = /** @type {boolean} */ (event.data); 403 var toggled = /** @type {boolean} */ (event.data);
404 this._filtersContainer.enableStyleClass("hidden", !toggled); 404 this._filtersContainer.classList.toggle("hidden", !toggled);
405 this.doResize(); 405 this.doResize();
406 }, 406 },
407 407
408 /** 408 /**
409 * @return {?WebInspector.ProgressIndicator} 409 * @return {?WebInspector.ProgressIndicator}
410 */ 410 */
411 _prepareToLoadTimeline: function() 411 _prepareToLoadTimeline: function()
412 { 412 {
413 if (this._operationInProgress) 413 if (this._operationInProgress)
414 return null; 414 return null;
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 this._titleElement.textContent = WebInspector.UIString("DETAILS: %s", ti tle); 887 this._titleElement.textContent = WebInspector.UIString("DETAILS: %s", ti tle);
888 this._contentElement.removeChildren(); 888 this._contentElement.removeChildren();
889 this._contentElement.appendChild(node); 889 this._contentElement.appendChild(node);
890 }, 890 },
891 891
892 /** 892 /**
893 * @param {boolean} vertical 893 * @param {boolean} vertical
894 */ 894 */
895 setVertical: function(vertical) 895 setVertical: function(vertical)
896 { 896 {
897 this._contentElement.enableStyleClass("hbox", !vertical); 897 this._contentElement.classList.toggle("hbox", !vertical);
898 this._contentElement.enableStyleClass("vbox", vertical); 898 this._contentElement.classList.toggle("vbox", vertical);
899 }, 899 },
900 900
901 __proto__: WebInspector.View.prototype 901 __proto__: WebInspector.View.prototype
902 } 902 }
903 903
904 /** 904 /**
905 * @interface 905 * @interface
906 */ 906 */
907 WebInspector.TimelineModeView = function() 907 WebInspector.TimelineModeView = function()
908 { 908 {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 * @param {!WebInspector.TimelineModel.Record} record 1129 * @param {!WebInspector.TimelineModel.Record} record
1130 * @return {boolean} 1130 * @return {boolean}
1131 */ 1131 */
1132 accept: function(record) 1132 accept: function(record)
1133 { 1133 {
1134 return !this._hiddenRecords[record.type]; 1134 return !this._hiddenRecords[record.type];
1135 }, 1135 },
1136 1136
1137 __proto__: WebInspector.TimelineModel.Filter.prototype 1137 __proto__: WebInspector.TimelineModel.Filter.prototype
1138 } 1138 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ThreadsToolbar.js ('k') | Source/devtools/front_end/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698