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

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

Issue 2626143004: DevTools: move from Common module - Geometry and CSSShadowModel (Closed)
Patch Set: minimize test diff Created 3 years, 11 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
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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 * @param {boolean} enable 446 * @param {boolean} enable
447 */ 447 */
448 setTabSlider(enable) { 448 setTabSlider(enable) {
449 this._sliderEnabled = enable; 449 this._sliderEnabled = enable;
450 this._tabSlider.classList.toggle('enabled', enable); 450 this._tabSlider.classList.toggle('enabled', enable);
451 this._headerElement.classList.add('tabbed-pane-no-tab-borders'); 451 this._headerElement.classList.add('tabbed-pane-no-tab-borders');
452 } 452 }
453 453
454 /** 454 /**
455 * @override 455 * @override
456 * @return {!Constraints} 456 * @return {!UI.Constraints}
457 */ 457 */
458 calculateConstraints() { 458 calculateConstraints() {
459 var constraints = super.calculateConstraints(); 459 var constraints = super.calculateConstraints();
460 var minContentConstraints = new Constraints(new Size(0, 0), new Size(50, 50) ); 460 var minContentConstraints = new UI.Constraints(new UI.Size(0, 0), new UI.Siz e(50, 50));
461 constraints = constraints.widthToMax(minContentConstraints).heightToMax(minC ontentConstraints); 461 constraints = constraints.widthToMax(minContentConstraints).heightToMax(minC ontentConstraints);
462 if (this._verticalTabLayout) 462 if (this._verticalTabLayout)
463 constraints = constraints.addWidth(new Constraints(new Size(120, 0))); 463 constraints = constraints.addWidth(new UI.Constraints(new UI.Size(120, 0)) );
464 else 464 else
465 constraints = constraints.addHeight(new Constraints(new Size(0, 30))); 465 constraints = constraints.addHeight(new UI.Constraints(new UI.Size(0, 30)) );
466 return constraints; 466 return constraints;
467 } 467 }
468 468
469 _updateTabElements() { 469 _updateTabElements() {
470 UI.invokeOnceAfterBatchUpdate(this, this._innerUpdateTabElements); 470 UI.invokeOnceAfterBatchUpdate(this, this._innerUpdateTabElements);
471 } 471 }
472 472
473 /** 473 /**
474 * @param {string} text 474 * @param {string} text
475 */ 475 */
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 * @param {!Array.<string>} ids 1203 * @param {!Array.<string>} ids
1204 */ 1204 */
1205 closeTabs(tabbedPane, ids) {}, 1205 closeTabs(tabbedPane, ids) {},
1206 1206
1207 /** 1207 /**
1208 * @param {string} tabId 1208 * @param {string} tabId
1209 * @param {!UI.ContextMenu} contextMenu 1209 * @param {!UI.ContextMenu} contextMenu
1210 */ 1210 */
1211 onContextMenu(tabId, contextMenu) {} 1211 onContextMenu(tabId, contextMenu) {}
1212 }; 1212 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698