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

Issue 23474010: DevTools: "Jump between editing locations" experiment (Closed)

Created:
7 years, 3 months ago by lushnikov
Modified:
6 years, 11 months ago
Reviewers:
vsevik, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

DevTools: "Jump between editing locations" experiment This patch introduces "Jump between editing locations" experiment. It adds "Alt+" and "Alt-" shortcuts to the scripts panel to navigate between editing locations. An editing location is considered to be switched if one of the following happens: - A user clicks with his mouse and changes cursor position - Position in editor was highlighted and cursor was moved there (e.g. due to "Goto function" outline dialog) - A new file was opened BUG=281507 R=vsevik@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165395

Patch Set 1 #

Patch Set 2 : updated shortcut names #

Patch Set 3 : rebaseline #

Total comments: 4

Patch Set 4 : massive refactoring #

Patch Set 5 : Creating default panel-wise jump history entries #

Patch Set 6 : removed unused code #

Patch Set 7 : making reveal() to return boolean value #

Total comments: 12

Patch Set 8 : #

Total comments: 14

Patch Set 9 : addressed @vsevik comments #

Total comments: 4

Patch Set 10 : address @vsevik comments #

Total comments: 12

Patch Set 11 : addressed @vsevik's comments #

Total comments: 1

Patch Set 12 : rebaseline this patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1000 lines, -8 lines) Patch
A LayoutTests/inspector/jump-to-previous-editing-location.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +269 lines, -0 lines 0 comments Download
A LayoutTests/inspector/jump-to-previous-editing-location-expected.txt View 1 2 3 4 5 6 7 1 chunk +125 lines, -0 lines 0 comments Download
M Source/devtools/devtools.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M Source/devtools/front_end/CodeMirrorTextEditor.js View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +87 lines, -1 line 0 comments Download
A Source/devtools/front_end/EditingLocationHistoryManager.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +196 lines, -0 lines 0 comments Download
A Source/devtools/front_end/SimpleHistoryManager.js View 1 2 3 4 5 6 7 1 chunk +167 lines, -0 lines 0 comments Download
M Source/devtools/front_end/SourceFrame.js View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -1 line 0 comments Download
M Source/devtools/front_end/SourcesPanel.js View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +64 lines, -3 lines 0 comments Download
M Source/devtools/front_end/SourcesPanelDescriptor.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -1 line 0 comments Download
M Source/devtools/front_end/TabbedEditorContainer.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M Source/devtools/front_end/TextEditor.js View 1 2 3 4 5 6 7 2 chunks +34 lines, -1 line 0 comments Download
M Source/devtools/front_end/TextRange.js View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M Source/devtools/front_end/UISourceCodeFrame.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M Source/devtools/scripts/frontend_modules.json View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
lushnikov
Please take a look
7 years, 3 months ago (2013-08-28 18:01:58 UTC) #1
vsevik
https://chromiumcodereview.appspot.com/23474010/diff/7001/Source/devtools/front_end/ScriptsPanel.js File Source/devtools/front_end/ScriptsPanel.js (right): https://chromiumcodereview.appspot.com/23474010/diff/7001/Source/devtools/front_end/ScriptsPanel.js#newcode369 Source/devtools/front_end/ScriptsPanel.js:369: this._jumpHistoryManager.dropHistoryEntries(project.id(), null); move this to _removeUISourceCodes https://chromiumcodereview.appspot.com/23474010/diff/7001/Source/devtools/front_end/ScriptsPanel.js#newcode638 Source/devtools/front_end/ScriptsPanel.js:638: this._jumpHistoryManager.dropHistoryEntries(uiSourceCode.project().id(), ...
7 years, 3 months ago (2013-08-29 10:46:16 UTC) #2
vsevik
https://chromiumcodereview.appspot.com/23474010/diff/7001/Source/devtools/front_end/ScriptsPanel.js File Source/devtools/front_end/ScriptsPanel.js (right): https://chromiumcodereview.appspot.com/23474010/diff/7001/Source/devtools/front_end/ScriptsPanel.js#newcode1636 Source/devtools/front_end/ScriptsPanel.js:1636: rollover: function() { { on the next line, here ...
7 years, 3 months ago (2013-08-29 10:49:29 UTC) #3
pfeldman
Please file a bug for each feature. How is this working in case I was ...
7 years, 3 months ago (2013-08-29 11:25:13 UTC) #4
lushnikov
7 years, 3 months ago (2013-08-29 14:44:14 UTC) #5
lushnikov
Addressed everything
7 years, 3 months ago (2013-08-29 16:13:20 UTC) #6
lushnikov
On 2013/08/29 16:13:20, lushnikov wrote: > Addressed everything So the latest version of patch generalizes ...
7 years, 3 months ago (2013-08-30 08:31:45 UTC) #7
lushnikov
The update adds additional logic to the "reveal()" method: no it should return a boolean ...
7 years, 3 months ago (2013-08-30 10:35:07 UTC) #8
vsevik
Please add a fix and test for the case where we first edit something then ...
7 years, 3 months ago (2013-09-04 09:46:22 UTC) #9
lushnikov
@pfeldman: The functionality doesn't allow beyond-panel navigation, because "editor-in-drawer" satisfies all the needs we had ...
6 years, 11 months ago (2014-01-02 14:06:09 UTC) #10
lushnikov
ping?
6 years, 11 months ago (2014-01-13 09:52:47 UTC) #11
lushnikov
On 2014/01/13 09:52:47, lushnikov wrote: > ping? ping ping?!
6 years, 11 months ago (2014-01-14 17:12:14 UTC) #12
vsevik
https://chromiumcodereview.appspot.com/23474010/diff/28001/LayoutTests/inspector/jump-to-previous-editing-location.html File LayoutTests/inspector/jump-to-previous-editing-location.html (right): https://chromiumcodereview.appspot.com/23474010/diff/28001/LayoutTests/inspector/jump-to-previous-editing-location.html#newcode81 LayoutTests/inspector/jump-to-previous-editing-location.html:81: var uiSourceCode = findSourceCode("blink-fs"); use InspectorTest.showScriptSource from debugger-test.js https://chromiumcodereview.appspot.com/23474010/diff/28001/LayoutTests/inspector/jump-to-previous-editing-location.html#newcode239 ...
6 years, 11 months ago (2014-01-15 16:19:05 UTC) #13
vsevik
lgtm https://chromiumcodereview.appspot.com/23474010/diff/28001/Source/devtools/front_end/SourcesPanel.js File Source/devtools/front_end/SourcesPanel.js (right): https://chromiumcodereview.appspot.com/23474010/diff/28001/Source/devtools/front_end/SourcesPanel.js#newcode552 Source/devtools/front_end/SourcesPanel.js:552: _showFile: function(uiSourceCode) I think you should move your ...
6 years, 11 months ago (2014-01-16 12:24:25 UTC) #14
vsevik
6 years, 11 months ago (2014-01-16 12:24:32 UTC) #15
vsevik
not lgtm, this was a mistake :)
6 years, 11 months ago (2014-01-16 12:24:52 UTC) #16
lushnikov
Addressed your comments in the latest CL. There should be no more mistakes this time ...
6 years, 11 months ago (2014-01-16 17:10:28 UTC) #17
vsevik
https://chromiumcodereview.appspot.com/23474010/diff/168001/Source/devtools/front_end/SourcesPanel.js File Source/devtools/front_end/SourcesPanel.js (right): https://chromiumcodereview.appspot.com/23474010/diff/168001/Source/devtools/front_end/SourcesPanel.js#newcode553 Source/devtools/front_end/SourcesPanel.js:553: this.highlightPosition(lineNumber, columnNumber); remove this! https://chromiumcodereview.appspot.com/23474010/diff/168001/Source/devtools/front_end/SourcesPanel.js#newcode714 Source/devtools/front_end/SourcesPanel.js:714: this._historyManager.pushNewState(); one line ...
6 years, 11 months ago (2014-01-17 13:00:22 UTC) #18
lushnikov
Addressed comments; please take a look https://codereview.chromium.org/23474010/diff/168001/Source/devtools/front_end/SourcesPanel.js File Source/devtools/front_end/SourcesPanel.js (right): https://codereview.chromium.org/23474010/diff/168001/Source/devtools/front_end/SourcesPanel.js#newcode553 Source/devtools/front_end/SourcesPanel.js:553: this.highlightPosition(lineNumber, columnNumber); On ...
6 years, 11 months ago (2014-01-17 13:28:44 UTC) #19
vsevik
Let's move this out of experiment and add a shortcut description to shortcut screen https://chromiumcodereview.appspot.com/23474010/diff/238001/Source/devtools/front_end/CodeMirrorTextEditor.js ...
6 years, 11 months ago (2014-01-17 16:30:00 UTC) #20
lushnikov
got it out of experiment; take a look! https://chromiumcodereview.appspot.com/23474010/diff/238001/Source/devtools/front_end/CodeMirrorTextEditor.js File Source/devtools/front_end/CodeMirrorTextEditor.js (right): https://chromiumcodereview.appspot.com/23474010/diff/238001/Source/devtools/front_end/CodeMirrorTextEditor.js#newcode164 Source/devtools/front_end/CodeMirrorTextEditor.js:164: this._anticipateJump ...
6 years, 11 months ago (2014-01-17 17:33:52 UTC) #21
vsevik
lgtm https://chromiumcodereview.appspot.com/23474010/diff/338001/Source/devtools/front_end/CodeMirrorTextEditor.js File Source/devtools/front_end/CodeMirrorTextEditor.js (right): https://chromiumcodereview.appspot.com/23474010/diff/338001/Source/devtools/front_end/CodeMirrorTextEditor.js#newcode162 Source/devtools/front_end/CodeMirrorTextEditor.js:162: function updateAnticipateJumpFlag(value) please update the name appropriately.
6 years, 11 months ago (2014-01-17 17:38:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/23474010/338001
6 years, 11 months ago (2014-01-17 17:46:40 UTC) #23
commit-bot: I haz the power
Failed to apply patch for Source/devtools/front_end/SourcesPanelDescriptor.js: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-17 17:46:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lushnikov@chromium.org/23474010/468001
6 years, 11 months ago (2014-01-20 09:29:59 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=23226
6 years, 11 months ago (2014-01-20 10:28:14 UTC) #26
lushnikov
6 years, 11 months ago (2014-01-20 10:31:56 UTC) #27
Message was sent while issue was closed.
Committed patchset #12 manually as r165395 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698