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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 } | 763 } |
764 } | 764 } |
765 | 765 |
766 /** | 766 /** |
767 * @interface | 767 * @interface |
768 */ | 768 */ |
769 WebInspector.RawLocation = function() | 769 WebInspector.RawLocation = function() |
770 { | 770 { |
771 } | 771 } |
772 | 772 |
| 773 WebInspector.RawLocation.prototype = { |
| 774 /** |
| 775 * @return {?WebInspector.UILocation} |
| 776 */ |
| 777 toUILocation: function() { } |
| 778 } |
| 779 |
773 /** | 780 /** |
774 * @constructor | 781 * @constructor |
775 * @param {!WebInspector.RawLocation} rawLocation | 782 * @param {!WebInspector.RawLocation} rawLocation |
776 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDelegat
e | 783 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDelegat
e |
777 */ | 784 */ |
778 WebInspector.LiveLocation = function(rawLocation, updateDelegate) | 785 WebInspector.LiveLocation = function(rawLocation, updateDelegate) |
779 { | 786 { |
780 this._rawLocation = rawLocation; | 787 this._rawLocation = rawLocation; |
781 this._updateDelegate = updateDelegate; | 788 this._updateDelegate = updateDelegate; |
782 } | 789 } |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 function persist() | 985 function persist() |
979 { | 986 { |
980 window.localStorage[key] = this._content; | 987 window.localStorage[key] = this._content; |
981 window.localStorage["revision-history"] = JSON.stringify(registry); | 988 window.localStorage["revision-history"] = JSON.stringify(registry); |
982 } | 989 } |
983 | 990 |
984 // Schedule async storage. | 991 // Schedule async storage. |
985 setTimeout(persist.bind(this), 0); | 992 setTimeout(persist.bind(this), 0); |
986 } | 993 } |
987 } | 994 } |
OLD | NEW |