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

Unified Diff: Source/devtools/front_end/sdk/CSSParser.js

Issue 1331083002: DevTools: [STRUCT] edit SASS through SourceMaps (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline atop master Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/common/TextUtils.js ('k') | Source/devtools/front_end/workspace/UISourceCode.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/CSSParser.js
diff --git a/Source/devtools/front_end/sdk/CSSParser.js b/Source/devtools/front_end/sdk/CSSParser.js
index a09318cafda6f621ba9356ede237108745c1287d..97441d385b8cf20c35978ab74d9b3ed71b797981 100644
--- a/Source/devtools/front_end/sdk/CSSParser.js
+++ b/Source/devtools/front_end/sdk/CSSParser.js
@@ -42,6 +42,20 @@ WebInspector.CSSParser.prototype = {
this._innerParse(text);
},
+ /**
+ * @param {string} text
+ * @return {!Promise<!Array.<!WebInspector.CSSParser.Rule>>}
+ */
+ parsePromise: function(text)
+ {
+ return new Promise(promiseConstructor.bind(this));
+
+ function promiseConstructor(succ, fail)
+ {
+ this.parse(text, succ);
+ }
+ },
+
dispose: function()
{
if (this._worker) {
« no previous file with comments | « Source/devtools/front_end/common/TextUtils.js ('k') | Source/devtools/front_end/workspace/UISourceCode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698