OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 this.connectivityMessage.textContent = WebInspector.UIString("On
line"); | 129 this.connectivityMessage.textContent = WebInspector.UIString("On
line"); |
130 } else { | 130 } else { |
131 this.connectivityIcon.src = "Images/errorRedDot.png"; | 131 this.connectivityIcon.src = "Images/errorRedDot.png"; |
132 this.connectivityMessage.textContent = WebInspector.UIString("Of
fline"); | 132 this.connectivityMessage.textContent = WebInspector.UIString("Of
fline"); |
133 } | 133 } |
134 } | 134 } |
135 }, | 135 }, |
136 | 136 |
137 _update: function() | 137 _update: function() |
138 { | 138 { |
139 WebInspector.ApplicationCache.getApplicationCachesAsync(this._updateCall
back.bind(this)); | 139 WebInspector.ApplicationCacheDispatcher.getApplicationCachesAsync(this._
updateCallback.bind(this)); |
140 }, | 140 }, |
141 | 141 |
142 _updateCallback: function(applicationCaches) | 142 _updateCallback: function(applicationCaches) |
143 { | 143 { |
144 // FIXME: applicationCaches is just one cache. | 144 // FIXME: applicationCaches is just one cache. |
145 // FIXME: are these variables needed anywhere else? | 145 // FIXME: are these variables needed anywhere else? |
146 this._manifest = applicationCaches.manifest; | 146 this._manifest = applicationCaches.manifest; |
147 this._creationTime = applicationCaches.creationTime; | 147 this._creationTime = applicationCaches.creationTime; |
148 this._updateTime = applicationCaches.updateTime; | 148 this._updateTime = applicationCaches.updateTime; |
149 this._size = applicationCaches.size; | 149 this._size = applicationCaches.size; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 }, | 261 }, |
262 | 262 |
263 _refreshButtonClicked: function(event) | 263 _refreshButtonClicked: function(event) |
264 { | 264 { |
265 // FIXME: Is this a refresh button or a re-fetch manifest button? | 265 // FIXME: Is this a refresh button or a re-fetch manifest button? |
266 // this._update(); | 266 // this._update(); |
267 } | 267 } |
268 } | 268 } |
269 | 269 |
270 WebInspector.ApplicationCacheItemsView.prototype.__proto__ = WebInspector.View.p
rototype; | 270 WebInspector.ApplicationCacheItemsView.prototype.__proto__ = WebInspector.View.p
rototype; |
OLD | NEW |