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

Issue 1416793005: Devtools: API To set the red/yellow squiggles for a file via DI (Closed)

Created:
5 years, 2 months ago by wes
Modified:
5 years, 1 month ago
Reviewers:
paulirish, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, yurys+blink_chromium.org, yurys, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, lushnikov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

API To set the red/yellow squiggles for a file via DI Known internally as "LineMessage"s. Additionally, Extends them to take start and end line/column sets, to prepare for a future where the UI actually supports rendering multiline squiggles. This migrates https://codereview.chromium.org/1361863002/ This work was split from https://codereview.chromium.org/1264133002/ BUG=484261

Patch Set 1 #

Total comments: 12

Patch Set 2 : event-based design #

Total comments: 16

Patch Set 3 : update API with feedback from cl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -26 lines) Patch
M third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js View 1 2 7 chunks +27 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptCompiler.js View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/JavaScriptSourceFrame.js View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js View 1 2 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js View 1 2 4 chunks +105 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
wes
5 years, 2 months ago (2015-10-23 20:36:06 UTC) #3
pfeldman
https://codereview.chromium.org/1416793005/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js (right): https://codereview.chromium.org/1416793005/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js#newcode614 third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js:614: this.clearMessages(); We should allow for concurrent error messages, you ...
5 years, 1 month ago (2015-10-26 18:08:49 UTC) #4
wes
https://codereview.chromium.org/1416793005/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js (right): https://codereview.chromium.org/1416793005/diff/1/third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js#newcode614 third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js:614: this.clearMessages(); On 2015/10/26 18:08:49, pfeldman wrote: > We should ...
5 years, 1 month ago (2015-10-26 22:16:32 UTC) #5
wes
I've redone it to use events rather than a revealer and utilize individual message add/remove ...
5 years, 1 month ago (2015-10-26 22:19:59 UTC) #6
pfeldman
https://codereview.chromium.org/1416793005/diff/20001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js (right): https://codereview.chromium.org/1416793005/diff/20001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js#newcode98 third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js:98: _onLineMessageAdded: function(evt) { Here and below, { goes the ...
5 years, 1 month ago (2015-10-27 17:37:34 UTC) #7
pfeldman
https://codereview.chromium.org/1416793005/diff/20001/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js File third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js (right): https://codereview.chromium.org/1416793005/diff/20001/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js#newcode580 third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js:580: if (m.equal(message)) { There is no reason to dedupe ...
5 years, 1 month ago (2015-10-27 17:44:04 UTC) #8
pfeldman
I actually need these messages on UISourceCode too. Do you want me to take over ...
5 years, 1 month ago (2015-10-27 17:48:04 UTC) #9
wes
https://codereview.chromium.org/1416793005/diff/20001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js (right): https://codereview.chromium.org/1416793005/diff/20001/third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js#newcode98 third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js:98: _onLineMessageAdded: function(evt) { On 2015/10/27 17:37:34, pfeldman wrote: > ...
5 years, 1 month ago (2015-10-27 21:59:17 UTC) #10
pfeldman
I uploaded a number of patches that are introducing the uisourcecodemessage and migrate existing code ...
5 years, 1 month ago (2015-10-27 22:15:47 UTC) #11
wes
On 2015/10/27 22:15:47, pfeldman wrote: > I uploaded a number of patches that are introducing ...
5 years, 1 month ago (2015-10-27 22:34:37 UTC) #12
pfeldman
> I suppose I'm going to want to discard this cl and just add a ...
5 years, 1 month ago (2015-10-27 22:36:32 UTC) #13
pfeldman
All should be landed by now.
5 years, 1 month ago (2015-10-29 22:56:50 UTC) #14
paulirish
5 years, 1 month ago (2015-11-11 23:43:46 UTC) #15
wes, are you clear on the next steps for this one?

Powered by Google App Engine
This is Rietveld 408576698