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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/TabbedPane.js

Issue 2557973002: DevTools: Introduce Landing page for Timeline panel. (Closed)
Patch Set: minor tweaks Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 if (effectiveTab && this._autoSelectFirstItemOnShow) 448 if (effectiveTab && this._autoSelectFirstItemOnShow)
449 this.selectTab(effectiveTab.id); 449 this.selectTab(effectiveTab.id);
450 } 450 }
451 451
452 /** 452 /**
453 * @param {boolean} enable 453 * @param {boolean} enable
454 */ 454 */
455 setTabSlider(enable) { 455 setTabSlider(enable) {
456 this._sliderEnabled = enable; 456 this._sliderEnabled = enable;
457 this._tabSlider.classList.toggle('enabled', enable); 457 this._tabSlider.classList.toggle('enabled', enable);
458 this._headerElement.classList.add('tabbed-pane-no-tab-borders');
458 } 459 }
459 460
460 /** 461 /**
461 * @override 462 * @override
462 * @return {!Constraints} 463 * @return {!Constraints}
463 */ 464 */
464 calculateConstraints() { 465 calculateConstraints() {
465 var constraints = super.calculateConstraints(); 466 var constraints = super.calculateConstraints();
466 var minContentConstraints = new Constraints(new Size(0, 0), new Size(50, 50) ); 467 var minContentConstraints = new Constraints(new Size(0, 0), new Size(50, 50) );
467 constraints = constraints.widthToMax(minContentConstraints).heightToMax(minC ontentConstraints); 468 constraints = constraints.widthToMax(minContentConstraints).heightToMax(minC ontentConstraints);
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 * @param {!Array.<string>} ids 1210 * @param {!Array.<string>} ids
1210 */ 1211 */
1211 closeTabs(tabbedPane, ids) {}, 1212 closeTabs(tabbedPane, ids) {},
1212 1213
1213 /** 1214 /**
1214 * @param {string} tabId 1215 * @param {string} tabId
1215 * @param {!UI.ContextMenu} contextMenu 1216 * @param {!UI.ContextMenu} contextMenu
1216 */ 1217 */
1217 onContextMenu(tabId, contextMenu) {} 1218 onContextMenu(tabId, contextMenu) {}
1218 }; 1219 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698