OLD | NEW |
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 /** | 162 /** |
163 * @param {string} panelName | 163 * @param {string} panelName |
164 * @return {!Promise.<?UI.Panel>} | 164 * @return {!Promise.<?UI.Panel>} |
165 */ | 165 */ |
166 showPanel(panelName) { | 166 showPanel(panelName) { |
167 return UI.viewManager.showView(panelName); | 167 return UI.viewManager.showView(panelName); |
168 } | 168 } |
169 | 169 |
170 /** | 170 /** |
171 * @param {string} panelName | 171 * @param {string} panelName |
172 * @param {string} iconType | 172 * @param {?UI.Icon} icon |
173 * @param {string=} iconTooltip | |
174 */ | 173 */ |
175 setPanelIcon(panelName, iconType, iconTooltip) { | 174 setPanelIcon(panelName, icon) { |
176 this._tabbedPane.setTabIcon(panelName, iconType, iconTooltip); | 175 this._tabbedPane.setTabIcon(panelName, icon); |
177 } | 176 } |
178 | 177 |
179 /** | 178 /** |
180 * @return {!UI.Panel} | 179 * @return {!UI.Panel} |
181 */ | 180 */ |
182 currentPanelDeprecated() { | 181 currentPanelDeprecated() { |
183 return /** @type {!UI.Panel} */ (UI.viewManager.materializedWidget(this._tab
bedPane.selectedTabId || '')); | 182 return /** @type {!UI.Panel} */ (UI.viewManager.materializedWidget(this._tab
bedPane.selectedTabId || '')); |
184 } | 183 } |
185 | 184 |
186 /** | 185 /** |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 * @return {boolean} | 313 * @return {boolean} |
315 */ | 314 */ |
316 handleAction(context, actionId) { | 315 handleAction(context, actionId) { |
317 if (UI.inspectorView.drawerVisible()) | 316 if (UI.inspectorView.drawerVisible()) |
318 UI.inspectorView._closeDrawer(); | 317 UI.inspectorView._closeDrawer(); |
319 else | 318 else |
320 UI.inspectorView._showDrawer(true); | 319 UI.inspectorView._showDrawer(true); |
321 return true; | 320 return true; |
322 } | 321 } |
323 }; | 322 }; |
OLD | NEW |