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

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

Issue 1774503005: [DevTools] Roll closure compiler to ToT version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 /** 120 /**
121 * @param {!WebInspector.PanelDescriptor} left 121 * @param {!WebInspector.PanelDescriptor} left
122 * @param {!WebInspector.PanelDescriptor} right 122 * @param {!WebInspector.PanelDescriptor} right
123 */ 123 */
124 function orderComparator(left, right) 124 function orderComparator(left, right)
125 { 125 {
126 return panelWeights.get(left) > panelWeights.get(right); 126 return panelWeights.get(left) > panelWeights.get(right);
127 } 127 }
128 128
129 WebInspector.startBatchUpdate(); 129 WebInspector.startBatchUpdate();
130 /** @type {!Map.<!WebInspector.PanelDescriptor, number>} */ 130 /** @type {!Map<!WebInspector.PanelDescriptor, number>} */
131 var panelWeights = new Map(); 131 var panelWeights = new Map();
132 self.runtime.extensions(WebInspector.PanelFactory).forEach(processPanelE xtensions.bind(this)); 132 self.runtime.extensions(WebInspector.PanelFactory).forEach(processPanelE xtensions.bind(this));
133 var sortedPanels = panelWeights.keysArray().sort(orderComparator); 133 var sortedPanels = panelWeights.keysArray().sort(orderComparator);
134 for (var panelDescriptor of sortedPanels) 134 for (var panelDescriptor of sortedPanels)
135 this._innerAddPanel(panelDescriptor); 135 this._innerAddPanel(panelDescriptor);
136 WebInspector.endBatchUpdate(); 136 WebInspector.endBatchUpdate();
137 }, 137 },
138 138
139 createToolbars: function() 139 createToolbars: function()
140 { 140 {
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
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