| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 { | 179 { |
| 180 var target = /** @type {?WebInspector.Target} */ (event.data); | 180 var target = /** @type {?WebInspector.Target} */ (event.data); |
| 181 this._setTarget(target); | 181 this._setTarget(target); |
| 182 }, | 182 }, |
| 183 | 183 |
| 184 /** | 184 /** |
| 185 * @return {!Element} | 185 * @return {!Element} |
| 186 */ | 186 */ |
| 187 defaultFocusedElement: function() | 187 defaultFocusedElement: function() |
| 188 { | 188 { |
| 189 return this._sourcesView.defaultFocusedElement() || this._navigator.view
.defaultFocusedElement(); | 189 return this._sourcesView.defaultFocusedElement(); |
| 190 }, | 190 }, |
| 191 | 191 |
| 192 /** | 192 /** |
| 193 * @return {boolean} | 193 * @return {boolean} |
| 194 */ | 194 */ |
| 195 paused: function() | 195 paused: function() |
| 196 { | 196 { |
| 197 return this._paused; | 197 return this._paused; |
| 198 }, | 198 }, |
| 199 | 199 |
| (...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 */ | 1450 */ |
| 1451 handleAction: function() | 1451 handleAction: function() |
| 1452 { | 1452 { |
| 1453 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); | 1453 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); |
| 1454 if (!panel) | 1454 if (!panel) |
| 1455 return false; | 1455 return false; |
| 1456 panel.togglePause(); | 1456 panel.togglePause(); |
| 1457 return true; | 1457 return true; |
| 1458 } | 1458 } |
| 1459 } | 1459 } |
| OLD | NEW |