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

Side by Side Diff: Source/devtools/front_end/sdk/CSSStyleModel.js

Issue 298333003: DevTools: Implement console message logging through an extension (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove duplicate logging Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 requestContent: function(callback) 1576 requestContent: function(callback)
1577 { 1577 {
1578 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this) ); 1578 this._cssModel._agent.getStyleSheetText(this.id, textCallback.bind(this) );
1579 1579
1580 /** 1580 /**
1581 * @this {WebInspector.CSSStyleSheetHeader} 1581 * @this {WebInspector.CSSStyleSheetHeader}
1582 */ 1582 */
1583 function textCallback(error, text) 1583 function textCallback(error, text)
1584 { 1584 {
1585 if (error) { 1585 if (error) {
1586 WebInspector.console.log("Failed to get text for stylesheet " + this.id + ": " + error); 1586 WebInspector.messageSink.addErrorMessage("Failed to get text for stylesheet " + this.id + ": " + error);
1587 text = ""; 1587 text = "";
1588 // Fall through. 1588 // Fall through.
1589 } 1589 }
1590 text = this._trimSourceURL(text); 1590 text = this._trimSourceURL(text);
1591 callback(text); 1591 callback(text);
1592 } 1592 }
1593 }, 1593 },
1594 1594
1595 /** 1595 /**
1596 * @override 1596 * @override
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 for (var i = 0; i < callbacks.length; ++i) 1715 for (var i = 0; i < callbacks.length; ++i)
1716 callbacks[i](computedStyle); 1716 callbacks[i](computedStyle);
1717 } 1717 }
1718 } 1718 }
1719 } 1719 }
1720 1720
1721 /** 1721 /**
1722 * @type {!WebInspector.CSSStyleModel} 1722 * @type {!WebInspector.CSSStyleModel}
1723 */ 1723 */
1724 WebInspector.cssModel; 1724 WebInspector.cssModel;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | Source/devtools/front_end/sdk/ConsoleModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698