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

Side by Side Diff: Source/devtools/front_end/StylesSourceMapping.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/StylesSidebarPane.js ('k') | Source/devtools/front_end/Target.js » ('j') | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 }, 65 },
66 66
67 /** 67 /**
68 * @param {!WebInspector.UISourceCode} uiSourceCode 68 * @param {!WebInspector.UISourceCode} uiSourceCode
69 * @param {number} lineNumber 69 * @param {number} lineNumber
70 * @param {number} columnNumber 70 * @param {number} columnNumber
71 * @return {!WebInspector.RawLocation} 71 * @return {!WebInspector.RawLocation}
72 */ 72 */
73 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) 73 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber)
74 { 74 {
75 return new WebInspector.CSSLocation(uiSourceCode.url || "", lineNumber, columnNumber); 75 return new WebInspector.CSSLocation(this._cssModel.target(), uiSourceCod e.url || "", lineNumber, columnNumber);
76 }, 76 },
77 77
78 /** 78 /**
79 * @return {boolean} 79 * @return {boolean}
80 */ 80 */
81 isIdentity: function() 81 isIdentity: function()
82 { 82 {
83 return true; 83 return true;
84 }, 84 },
85 85
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 this._uiSourceCode.addRevision(content); 375 this._uiSourceCode.addRevision(content);
376 delete this._isAddingRevision; 376 delete this._isAddingRevision;
377 }, 377 },
378 378
379 dispose: function() 379 dispose: function()
380 { 380 {
381 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this); 381 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this);
382 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this); 382 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this);
383 } 383 }
384 } 384 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/StylesSidebarPane.js ('k') | Source/devtools/front_end/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698