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

Side by Side Diff: Source/WebCore/inspector/front-end/DOMAgent.js

Issue 6368125: Merge 76517 - 2011-01-24 Pavel Podivilov <podivilov@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « Source/WebCore/inspector/front-end/ApplicationCacheItemsView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/ApplicationCacheItemsView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698