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 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1352 panel.togglePause(); | 1352 panel.togglePause(); |
1353 return true; | 1353 return true; |
1354 case "sources.go-to-source": | 1354 case "sources.go-to-source": |
1355 panel.showGoToSourceDialog(); | 1355 panel.showGoToSourceDialog(); |
1356 return true; | 1356 return true; |
1357 } | 1357 } |
1358 return false; | 1358 return false; |
1359 } | 1359 } |
1360 } | 1360 } |
1361 | 1361 |
1362 | |
1363 /** | |
1364 * @constructor | |
1365 * @implements {WebInspector.Revealer} | |
1366 */ | |
1367 WebInspector.SourcesPanel.LineMessageRevealer = function() | |
1368 { | |
1369 } | |
1370 | |
1371 WebInspector.SourcesPanel.LineMessageRevealer.prototype = { | |
1372 /** | |
1373 * @override | |
1374 * @param {!Object} object | |
1375 * @return {!Promise} | |
1376 */ | |
1377 reveal: function(object) | |
1378 { | |
1379 var container = /** @type {!WebInspector.UISourceCodeMessages} */ (objec t); | |
1380 if (!(container instanceof WebInspector.UISourceCodeMessages)) | |
1381 return Promise.reject(new Error("Internal error: container not a Web Inspector.UISourceCodeMessages")); | |
1382 | |
1383 var frame = WebInspector.SourcesPanel.instance().sourcesView().viewForFi le(container.source()); | |
1384 frame.setMessagesForSource(container.messages().map(function(m){ | |
pfeldman
2015/10/26 18:08:49
Revealer is for revealing, not for providing messa
wes
2015/10/26 22:16:32
Acknowledged.
| |
1385 return new WebInspector.SourceFrameMessage(m.text(), WebInspector.So urceFrameMessage.Level[m.kind()], m.location()); | |
1386 })); | |
1387 | |
1388 return Promise.resolve(); | |
1389 } | |
1390 } | |
1391 | |
1362 /** | 1392 /** |
1363 * @constructor | 1393 * @constructor |
1364 * @implements {WebInspector.ActionDelegate} | 1394 * @implements {WebInspector.ActionDelegate} |
1365 */ | 1395 */ |
1366 WebInspector.SourcesPanel.DebuggingActionDelegate = function() | 1396 WebInspector.SourcesPanel.DebuggingActionDelegate = function() |
1367 { | 1397 { |
1368 } | 1398 } |
1369 | 1399 |
1370 WebInspector.SourcesPanel.DebuggingActionDelegate.prototype = { | 1400 WebInspector.SourcesPanel.DebuggingActionDelegate.prototype = { |
1371 /** | 1401 /** |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1427 WebInspector.SourcesPanelFactory.prototype = { | 1457 WebInspector.SourcesPanelFactory.prototype = { |
1428 /** | 1458 /** |
1429 * @override | 1459 * @override |
1430 * @return {!WebInspector.Panel} | 1460 * @return {!WebInspector.Panel} |
1431 */ | 1461 */ |
1432 createPanel: function() | 1462 createPanel: function() |
1433 { | 1463 { |
1434 return WebInspector.SourcesPanel.instance(); | 1464 return WebInspector.SourcesPanel.instance(); |
1435 } | 1465 } |
1436 } | 1466 } |
OLD | NEW |