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

Side by Side Diff: Source/devtools/front_end/UISourceCode.js

Issue 220903002: DevTools: wrap DebuggerAgent.Location with DebuggerModel.Location. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All tests!!! Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/devtools/front_end/Target.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) 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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/Target.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698