| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 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 are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 childNodeRemoved: function(parentId, nodeId) | 495 childNodeRemoved: function(parentId, nodeId) |
| 496 { | 496 { |
| 497 this._domAgent._childNodeRemoved(parentId, nodeId); | 497 this._domAgent._childNodeRemoved(parentId, nodeId); |
| 498 } | 498 } |
| 499 } | 499 } |
| 500 | 500 |
| 501 WebInspector.ApplicationCacheDispatcher = function() | 501 WebInspector.ApplicationCacheDispatcher = function() |
| 502 { | 502 { |
| 503 } | 503 } |
| 504 | 504 |
| 505 WebInspector.ApplicationCacheDispatcher.getApplicationCachesAsync = function(cal
lback) |
| 506 { |
| 507 function mycallback(applicationCaches) |
| 508 { |
| 509 // FIXME: Currently, this list only returns a single application cache. |
| 510 if (applicationCaches) |
| 511 callback(applicationCaches); |
| 512 } |
| 513 |
| 514 InspectorBackend.getApplicationCaches(mycallback); |
| 515 } |
| 516 |
| 505 WebInspector.ApplicationCacheDispatcher.prototype = { | 517 WebInspector.ApplicationCacheDispatcher.prototype = { |
| 506 getApplicationCachesAsync: function(callback) | |
| 507 { | |
| 508 function mycallback(applicationCaches) | |
| 509 { | |
| 510 // FIXME: Currently, this list only returns a single application cac
he. | |
| 511 if (applicationCaches) | |
| 512 callback(applicationCaches); | |
| 513 } | |
| 514 | |
| 515 InspectorBackend.getApplicationCaches(mycallback); | |
| 516 }, | |
| 517 | |
| 518 updateApplicationCacheStatus: function(status) | 518 updateApplicationCacheStatus: function(status) |
| 519 { | 519 { |
| 520 WebInspector.panels.resources.updateApplicationCacheStatus(status); | 520 WebInspector.panels.resources.updateApplicationCacheStatus(status); |
| 521 }, | 521 }, |
| 522 | 522 |
| 523 updateNetworkState: function(isNowOnline) | 523 updateNetworkState: function(isNowOnline) |
| 524 { | 524 { |
| 525 WebInspector.panels.resources.updateNetworkState(isNowOnline); | 525 WebInspector.panels.resources.updateNetworkState(isNowOnline); |
| 526 } | 526 } |
| 527 } | 527 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 580 } | 580 } |
| 581 | 581 |
| 582 WebInspector.EventListeners = {} | 582 WebInspector.EventListeners = {} |
| 583 | 583 |
| 584 WebInspector.EventListeners.getEventListenersForNodeAsync = function(node, callb
ack) | 584 WebInspector.EventListeners.getEventListenersForNodeAsync = function(node, callb
ack) |
| 585 { | 585 { |
| 586 if (!node) | 586 if (!node) |
| 587 return; | 587 return; |
| 588 InspectorBackend.getEventListenersForNode(node.id, callback); | 588 InspectorBackend.getEventListenersForNode(node.id, callback); |
| 589 } | 589 } |
| OLD | NEW |