DescriptionDevTools: [SASS] introduce workspace/cssModel adapter for SASS processor.
The WI.SASSWorkspaceAdapter sits atop workspaces and CSSModel and provides
a consise and sufficient API for SASS processor operations.
Methods of WI.SASSWorkspaceAdapter:
- trackSources(sourceMap): WI.SASSWorkspaceAdapter.Client
Methods of The WI.SASSWorkspaceAdapter.Client:
- content(url): Promise<string>
- setCSSText(text, cssEdits): boolean
- setSASSText(url, text): boolean
- isOutdated(): boolean - wheather any sourceMap source has changed
since last content inquiry.
- dispose()
Events of WI.SASSWorkspaceAdapter.Client:
- SourceChanged(url) - whenever any source of source map gets changed
- TrackingStopped() - whenever the client gets disposed
BUG=527993
R=dgozman
Committed: https://crrev.com/877755e652517055db2247baf8282626757a3812
Cr-Commit-Position: refs/heads/master@{#371996}
Patch Set 1 #
Total comments: 30
Patch Set 2 : adddress comments #
Total comments: 2
Patch Set 3 : fix test flakiness #Patch Set 4 : remove settimeout from test #Messages
Total messages: 16 (7 generated)
|