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

Issue 2729783002: DevTools: Diff subsystem (Closed)

Created:
3 years, 9 months ago by einbinder
Modified:
3 years, 9 months ago
Reviewers:
lushnikov
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Diff subsystem This moves the diff computation out of SourceCodeDiff into a new module. Now the diff can be shared by more than one consumer. BUG=610061 Review-Url: https://codereview.chromium.org/2729783002 Cr-Commit-Position: refs/heads/master@{#456991} Committed: https://chromium.googlesource.com/chromium/src/+/569f345a2ee19b54dc008c3c2011cee9e7405d36

Patch Set 1 #

Patch Set 2 : remove #

Patch Set 3 : requestDiff #

Total comments: 16

Patch Set 4 : private UISourceCodeDiff #

Patch Set 5 : private uisc #

Patch Set 6 : this #

Total comments: 9

Patch Set 7 : subscribe #

Total comments: 4

Patch Set 8 : fix test #

Patch Set 9 : refactor test #

Patch Set 10 : constant #

Total comments: 12

Patch Set 11 : Changes #

Total comments: 6

Patch Set 12 : async #

Total comments: 2

Patch Set 13 : nullable diff #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -49 lines) Patch
M third_party/WebKit/LayoutTests/inspector/initial-modules-load-expected.txt View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/diff/Diff.js View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inspector.json View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/SourceCodeDiff.js View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +23 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/source_frame/module.json View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +119 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/devtools/front_end/workspace_diff/module.json View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (6 generated)
einbinder
ptal
3 years, 9 months ago (2017-03-02 02:25:38 UTC) #2
einbinder
Clients request diff now instead of receiving them on DiffChangedEvent.
3 years, 9 months ago (2017-03-04 02:11:24 UTC) #3
lushnikov
https://codereview.chromium.org/2729783002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js (left): https://codereview.chromium.org/2729783002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js#oldcode193 third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js:193: this._diff.updateDiffMarkersWhenPossible(); why did these go? https://codereview.chromium.org/2729783002/diff/40001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js (right): ...
3 years, 9 months ago (2017-03-04 04:00:29 UTC) #4
einbinder
https://codereview.chromium.org/2729783002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js File third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js (left): https://codereview.chromium.org/2729783002/diff/40001/third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js#oldcode193 third_party/WebKit/Source/devtools/front_end/source_frame/UISourceCodeFrame.js:193: this._diff.updateDiffMarkersWhenPossible(); On 2017/03/04 at 04:00:28, lushnikov wrote: > why ...
3 years, 9 months ago (2017-03-07 06:03:31 UTC) #5
einbinder
3 years, 9 months ago (2017-03-07 06:03:32 UTC) #6
lushnikov
https://codereview.chromium.org/2729783002/diff/100001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js (right): https://codereview.chromium.org/2729783002/diff/100001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js#newcode18 third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js:18: WorkspaceDiff.addThrottledDiffListener = function(uiSourceCode, callback, thisObj) { .subscribeToDiffChange(..) https://codereview.chromium.org/2729783002/diff/100001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js#newcode41 third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js:41: ...
3 years, 9 months ago (2017-03-08 17:55:16 UTC) #7
einbinder
https://codereview.chromium.org/2729783002/diff/100001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js (right): https://codereview.chromium.org/2729783002/diff/100001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js#newcode18 third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js:18: WorkspaceDiff.addThrottledDiffListener = function(uiSourceCode, callback, thisObj) { On 2017/03/08 at ...
3 years, 9 months ago (2017-03-08 23:12:47 UTC) #8
lushnikov
https://codereview.chromium.org/2729783002/diff/120001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js (right): https://codereview.chromium.org/2729783002/diff/120001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js#newcode9 third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js:9: WorkspaceDiff.requestDiff = function(uiSourceCode) { Let's do WorkspaceDiff.workspaceDiff().requestDiff(..) and put ...
3 years, 9 months ago (2017-03-09 00:09:25 UTC) #9
einbinder
https://codereview.chromium.org/2729783002/diff/120001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js (right): https://codereview.chromium.org/2729783002/diff/120001/third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js#newcode9 third_party/WebKit/Source/devtools/front_end/workspace_diff/UISourceCodeDiff.js:9: WorkspaceDiff.requestDiff = function(uiSourceCode) { On 2017/03/09 at 00:09:25, lushnikov ...
3 years, 9 months ago (2017-03-09 21:07:20 UTC) #10
lushnikov
https://codereview.chromium.org/2729783002/diff/180001/third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html File third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html (right): https://codereview.chromium.org/2729783002/diff/180001/third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html#newcode27 third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html:27: InspectorTest.showUISourceCode(uiSourceCode, () => undefined); showUISourceCodePromise https://codereview.chromium.org/2729783002/diff/180001/third_party/WebKit/Source/devtools/front_end/diff/Diff.js File third_party/WebKit/Source/devtools/front_end/diff/Diff.js (right): ...
3 years, 9 months ago (2017-03-10 01:17:04 UTC) #11
einbinder
https://codereview.chromium.org/2729783002/diff/180001/third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html File third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html (right): https://codereview.chromium.org/2729783002/diff/180001/third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html#newcode27 third_party/WebKit/LayoutTests/inspector/sources/source-code-diff.html:27: InspectorTest.showUISourceCode(uiSourceCode, () => undefined); On 2017/03/10 at 01:17:04, lushnikov ...
3 years, 9 months ago (2017-03-13 17:47:57 UTC) #12
lushnikov
https://codereview.chromium.org/2729783002/diff/200001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js (right): https://codereview.chromium.org/2729783002/diff/200001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js#newcode34 third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js:34: unsubscribeToDiffChange(uiSourceCode, callback, thisObj) { unsubscribeFromDiffChange https://codereview.chromium.org/2729783002/diff/200001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js#newcode49 third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js:49: WorkspaceDiff.WorkspaceDiff._UISourceCodeDiff = ...
3 years, 9 months ago (2017-03-13 18:19:14 UTC) #13
einbinder
https://codereview.chromium.org/2729783002/diff/200001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js (right): https://codereview.chromium.org/2729783002/diff/200001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js#newcode34 third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js:34: unsubscribeToDiffChange(uiSourceCode, callback, thisObj) { On 2017/03/13 at 18:19:14, lushnikov ...
3 years, 9 months ago (2017-03-13 20:46:29 UTC) #14
einbinder
made the diff nullable
3 years, 9 months ago (2017-03-13 21:11:30 UTC) #15
lushnikov
lgtm we should rename SourceCodeDiff class into GutterDiff to reduce confusion https://codereview.chromium.org/2729783002/diff/220001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js (right): ...
3 years, 9 months ago (2017-03-13 23:02:38 UTC) #16
einbinder
https://codereview.chromium.org/2729783002/diff/220001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js File third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js (right): https://codereview.chromium.org/2729783002/diff/220001/third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js#newcode92 third_party/WebKit/Source/devtools/front_end/workspace_diff/WorkspaceDiff.js:92: * @return {!Promise<!Diff.Diff.DiffArray>} On 2017/03/13 at 23:02:38, lushnikov wrote: ...
3 years, 9 months ago (2017-03-14 00:17:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729783002/240001
3 years, 9 months ago (2017-03-14 00:18:08 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/249428)
3 years, 9 months ago (2017-03-14 00:33:21 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2729783002/240001
3 years, 9 months ago (2017-03-15 02:47:22 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 04:26:03 UTC) #26
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/569f345a2ee19b54dc008c3c2011...

Powered by Google App Engine
This is Rietveld 408576698