| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 { | 1284 { |
| 1285 if (this._receiver) | 1285 if (this._receiver) |
| 1286 this._receiver.close(); | 1286 this._receiver.close(); |
| 1287 else if (this._snapshotProxy) | 1287 else if (this._snapshotProxy) |
| 1288 this._snapshotProxy.dispose(); | 1288 this._snapshotProxy.dispose(); |
| 1289 if (this._view) { | 1289 if (this._view) { |
| 1290 var view = this._view; | 1290 var view = this._view; |
| 1291 this._view = null; | 1291 this._view = null; |
| 1292 view.dispose(); | 1292 view.dispose(); |
| 1293 } | 1293 } |
| 1294 this.removeTempFile(); |
| 1294 }, | 1295 }, |
| 1295 | 1296 |
| 1296 _updateSubtitle: function(value) | 1297 _updateSubtitle: function(value) |
| 1297 { | 1298 { |
| 1298 this.sidebarElement.subtitle = value; | 1299 this.sidebarElement.subtitle = value; |
| 1299 }, | 1300 }, |
| 1300 | 1301 |
| 1301 _didCompleteSnapshotTransfer: function() | 1302 _didCompleteSnapshotTransfer: function() |
| 1302 { | 1303 { |
| 1303 this.sidebarElement.subtitle = Number.bytesToString(this._snapshotProxy.
totalSize); | 1304 this.sidebarElement.subtitle = Number.bytesToString(this._snapshotProxy.
totalSize); |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1923 zeroTime: function() | 1924 zeroTime: function() |
| 1924 { | 1925 { |
| 1925 return this._minimumBoundaries; | 1926 return this._minimumBoundaries; |
| 1926 }, | 1927 }, |
| 1927 | 1928 |
| 1928 boundarySpan: function() | 1929 boundarySpan: function() |
| 1929 { | 1930 { |
| 1930 return this._maximumBoundaries - this._minimumBoundaries; | 1931 return this._maximumBoundaries - this._minimumBoundaries; |
| 1931 } | 1932 } |
| 1932 } | 1933 } |
| OLD | NEW |