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

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

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 }, 536 },
537 537
538 /** 538 /**
539 * @param {!WebInspector.Event} event 539 * @param {!WebInspector.Event} event
540 */ 540 */
541 _persistPanelOrder: function(event) 541 _persistPanelOrder: function(event)
542 { 542 {
543 var tabs = /** @type {!Array.<!WebInspector.TabbedPaneTab>} */(event.dat a); 543 var tabs = /** @type {!Array.<!WebInspector.TabbedPaneTab>} */(event.dat a);
544 var tabOrders = this._tabOrderSetting.get(); 544 var tabOrders = this._tabOrderSetting.get();
545 for (var i = 0; i < tabs.length; i++) 545 for (var i = 0; i < tabs.length; i++)
546 tabOrders[tabs[i].id] = (i + 1)* 10; 546 tabOrders[tabs[i].id] = (i + 1) * 10;
547 this._tabOrderSetting.set(tabOrders); 547 this._tabOrderSetting.set(tabOrders);
548 }, 548 },
549 549
550 __proto__: WebInspector.VBox.prototype 550 __proto__: WebInspector.VBox.prototype
551 }; 551 };
552 552
553 /** 553 /**
554 * @type {!WebInspector.InspectorView} 554 * @type {!WebInspector.InspectorView}
555 */ 555 */
556 WebInspector.inspectorView; 556 WebInspector.inspectorView;
(...skipping 15 matching lines...) Expand all
572 */ 572 */
573 handleAction: function(context, actionId) 573 handleAction: function(context, actionId)
574 { 574 {
575 if (WebInspector.inspectorView.drawerVisible()) 575 if (WebInspector.inspectorView.drawerVisible())
576 WebInspector.inspectorView.closeDrawer(); 576 WebInspector.inspectorView.closeDrawer();
577 else 577 else
578 WebInspector.inspectorView.showDrawer(); 578 WebInspector.inspectorView.showDrawer();
579 return true; 579 return true;
580 } 580 }
581 } 581 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698