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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: 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 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 tab.view = view; 458 tab.view = view;
459 tab.view.attach(this); 459 tab.view.attach(this);
460 if (isSelected) 460 if (isSelected)
461 this._showTab(tab); 461 this._showTab(tab);
462 if (shouldFocus) 462 if (shouldFocus)
463 tab.view.focus(); 463 tab.view.focus();
464 464
465 this.resumeInvalidations(); 465 this.resumeInvalidations();
466 }, 466 },
467 467
468 /**
469 * @override
470 */
468 onResize: function() 471 onResize: function()
469 { 472 {
470 this._updateTabElements(); 473 this._updateTabElements();
471 }, 474 },
472 475
473 headerResized: function() 476 headerResized: function()
474 { 477 {
475 this._updateTabElements(); 478 this._updateTabElements();
476 }, 479 },
477 480
481 /**
482 * @override
483 */
478 wasShown: function() 484 wasShown: function()
479 { 485 {
480 var effectiveTab = this._currentTab || this._tabsHistory[0]; 486 var effectiveTab = this._currentTab || this._tabsHistory[0];
481 if (effectiveTab && this._autoSelectFirstItemOnShow) 487 if (effectiveTab && this._autoSelectFirstItemOnShow)
482 this.selectTab(effectiveTab.id); 488 this.selectTab(effectiveTab.id);
483 }, 489 },
484 490
485 /** 491 /**
486 * @param {boolean} enable 492 * @param {boolean} enable
487 */ 493 */
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 }, 927 },
922 928
923 /** 929 /**
924 * @return {string} 930 * @return {string}
925 */ 931 */
926 get title() 932 get title()
927 { 933 {
928 return this._title; 934 return this._title;
929 }, 935 },
930 936
937 /**
938 * @param {string} title
939 */
931 set title(title) 940 set title(title)
932 { 941 {
933 if (title === this._title) 942 if (title === this._title)
934 return; 943 return;
935 this._title = title; 944 this._title = title;
936 if (this._titleElement) 945 if (this._titleElement)
937 this._titleElement.textContent = title; 946 this._titleElement.textContent = title;
938 delete this._measuredWidth; 947 delete this._measuredWidth;
939 }, 948 },
940 949
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 }, 989 },
981 990
982 /** 991 /**
983 * @return {!WebInspector.Widget} 992 * @return {!WebInspector.Widget}
984 */ 993 */
985 get view() 994 get view()
986 { 995 {
987 return this._view; 996 return this._view;
988 }, 997 },
989 998
999 /**
1000 * @param {!WebInspector.Widget} view
1001 */
990 set view(view) 1002 set view(view)
991 { 1003 {
992 this._view = view; 1004 this._view = view;
993 }, 1005 },
994 1006
995 /** 1007 /**
996 * @return {string|undefined} 1008 * @return {string|undefined}
997 */ 1009 */
998 get tooltip() 1010 get tooltip()
999 { 1011 {
1000 return this._tooltip; 1012 return this._tooltip;
1001 }, 1013 },
1002 1014
1015 /**
1016 * @param {string|undefined} tooltip
1017 */
1003 set tooltip(tooltip) 1018 set tooltip(tooltip)
1004 { 1019 {
1005 this._tooltip = tooltip; 1020 this._tooltip = tooltip;
1006 if (this._titleElement) 1021 if (this._titleElement)
1007 this._titleElement.title = tooltip || ""; 1022 this._titleElement.title = tooltip || "";
1008 }, 1023 },
1009 1024
1010 /** 1025 /**
1011 * @return {!Element} 1026 * @return {!Element}
1012 */ 1027 */
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 * @param {!Array.<string>} ids 1290 * @param {!Array.<string>} ids
1276 */ 1291 */
1277 closeTabs: function(tabbedPane, ids) { }, 1292 closeTabs: function(tabbedPane, ids) { },
1278 1293
1279 /** 1294 /**
1280 * @param {string} tabId 1295 * @param {string} tabId
1281 * @param {!WebInspector.ContextMenu} contextMenu 1296 * @param {!WebInspector.ContextMenu} contextMenu
1282 */ 1297 */
1283 onContextMenu: function(tabId, contextMenu) { } 1298 onContextMenu: function(tabId, contextMenu) { }
1284 }; 1299 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698