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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 this._tabs = []; 52 this._tabs = [];
53 /** @type {!Array.<!WebInspector.TabbedPaneTab>} */ 53 /** @type {!Array.<!WebInspector.TabbedPaneTab>} */
54 this._tabsHistory = []; 54 this._tabsHistory = [];
55 /** @type {!Object.<string, !WebInspector.TabbedPaneTab>} */ 55 /** @type {!Object.<string, !WebInspector.TabbedPaneTab>} */
56 this._tabsById = {}; 56 this._tabsById = {};
57 this._currentTabLocked = false; 57 this._currentTabLocked = false;
58 this._autoSelectFirstItemOnShow = true; 58 this._autoSelectFirstItemOnShow = true;
59 59
60 this._dropDownButton = this._createDropDownButton(); 60 this._dropDownButton = this._createDropDownButton();
61 WebInspector.zoomManager.addEventListener(WebInspector.ZoomManager.Events.Zo omChanged, this._zoomChanged, this); 61 WebInspector.zoomManager.addEventListener(WebInspector.ZoomManager.Events.Zo omChanged, this._zoomChanged, this);
62 } 62 };
63 63
64 /** @enum {symbol} */ 64 /** @enum {symbol} */
65 WebInspector.TabbedPane.Events = { 65 WebInspector.TabbedPane.Events = {
66 TabSelected: Symbol("TabSelected"), 66 TabSelected: Symbol("TabSelected"),
67 TabClosed: Symbol("TabClosed"), 67 TabClosed: Symbol("TabClosed"),
68 TabOrderChanged: Symbol("TabOrderChanged") 68 TabOrderChanged: Symbol("TabOrderChanged")
69 } 69 };
70 70
71 WebInspector.TabbedPane.prototype = { 71 WebInspector.TabbedPane.prototype = {
72 /** 72 /**
73 * @param {boolean} locked 73 * @param {boolean} locked
74 */ 74 */
75 setCurrentTabLocked: function(locked) 75 setCurrentTabLocked: function(locked)
76 { 76 {
77 this._currentTabLocked = locked; 77 this._currentTabLocked = locked;
78 this._headerElement.classList.toggle("locked", this._currentTabLocked); 78 this._headerElement.classList.toggle("locked", this._currentTabLocked);
79 }, 79 },
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 * @param {boolean} allow 880 * @param {boolean} allow
881 * @param {boolean=} automatic 881 * @param {boolean=} automatic
882 */ 882 */
883 setAllowTabReorder: function(allow, automatic) 883 setAllowTabReorder: function(allow, automatic)
884 { 884 {
885 this._allowTabReorder = allow; 885 this._allowTabReorder = allow;
886 this._automaticReorder = automatic; 886 this._automaticReorder = automatic;
887 }, 887 },
888 888
889 __proto__: WebInspector.VBox.prototype 889 __proto__: WebInspector.VBox.prototype
890 } 890 };
891 891
892 /** 892 /**
893 * @constructor 893 * @constructor
894 * @param {!WebInspector.TabbedPane} tabbedPane 894 * @param {!WebInspector.TabbedPane} tabbedPane
895 * @param {string} id 895 * @param {string} id
896 * @param {string} title 896 * @param {string} title
897 * @param {boolean} closeable 897 * @param {boolean} closeable
898 * @param {!WebInspector.Widget} view 898 * @param {!WebInspector.Widget} view
899 * @param {string=} tooltip 899 * @param {string=} tooltip
900 */ 900 */
901 WebInspector.TabbedPaneTab = function(tabbedPane, id, title, closeable, view, to oltip) 901 WebInspector.TabbedPaneTab = function(tabbedPane, id, title, closeable, view, to oltip)
902 { 902 {
903 this._closeable = closeable; 903 this._closeable = closeable;
904 this._tabbedPane = tabbedPane; 904 this._tabbedPane = tabbedPane;
905 this._id = id; 905 this._id = id;
906 this._title = title; 906 this._title = title;
907 this._tooltip = tooltip; 907 this._tooltip = tooltip;
908 this._view = view; 908 this._view = view;
909 this._shown = false; 909 this._shown = false;
910 /** @type {number} */ this._measuredWidth; 910 /** @type {number} */ this._measuredWidth;
911 /** @type {!Element|undefined} */ this._tabElement; 911 /** @type {!Element|undefined} */ this._tabElement;
912 } 912 };
913 913
914 WebInspector.TabbedPaneTab.prototype = { 914 WebInspector.TabbedPaneTab.prototype = {
915 /** 915 /**
916 * @return {string} 916 * @return {string}
917 */ 917 */
918 get id() 918 get id()
919 { 919 {
920 return this._id; 920 return this._id;
921 }, 921 },
922 922
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 /** 1253 /**
1254 * @param {!Event} event 1254 * @param {!Event} event
1255 */ 1255 */
1256 _endTabDragging: function(event) 1256 _endTabDragging: function(event)
1257 { 1257 {
1258 this._tabElement.classList.remove("dragging"); 1258 this._tabElement.classList.remove("dragging");
1259 this._tabElement.style.removeProperty("left"); 1259 this._tabElement.style.removeProperty("left");
1260 delete this._dragStartX; 1260 delete this._dragStartX;
1261 this._tabbedPane._updateTabSlider(); 1261 this._tabbedPane._updateTabSlider();
1262 } 1262 }
1263 } 1263 };
1264 1264
1265 /** 1265 /**
1266 * @interface 1266 * @interface
1267 */ 1267 */
1268 WebInspector.TabbedPaneTabDelegate = function() 1268 WebInspector.TabbedPaneTabDelegate = function()
1269 { 1269 {
1270 } 1270 };
1271 1271
1272 WebInspector.TabbedPaneTabDelegate.prototype = { 1272 WebInspector.TabbedPaneTabDelegate.prototype = {
1273 /** 1273 /**
1274 * @param {!WebInspector.TabbedPane} tabbedPane 1274 * @param {!WebInspector.TabbedPane} tabbedPane
1275 * @param {!Array.<string>} ids 1275 * @param {!Array.<string>} ids
1276 */ 1276 */
1277 closeTabs: function(tabbedPane, ids) { }, 1277 closeTabs: function(tabbedPane, ids) { },
1278 1278
1279 /** 1279 /**
1280 * @param {string} tabId 1280 * @param {string} tabId
1281 * @param {!WebInspector.ContextMenu} contextMenu 1281 * @param {!WebInspector.ContextMenu} contextMenu
1282 */ 1282 */
1283 onContextMenu: function(tabId, contextMenu) { } 1283 onContextMenu: function(tabId, contextMenu) { }
1284 } 1284 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698