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

Issue 2971913003: Make character text changes work in Docs (Closed)

Created:
3 years, 5 months ago by David Tseng
Modified:
3 years, 5 months ago
Reviewers:
dmazzoni
CC:
chromium-reviews, alemate+watch_chromium.org, dtseng+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, dougt+watch_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, aleventhal+watch_chromium.org, je_julie, arv+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make character text changes work in Docs In "braille mode", Docs re-exports the entire paragraph if you type. For a sample tree: text field (paragraph (static text (inline text box))) everything except for the text field gets destroyed. Thus, any client holding a reference to any node cannot use it in any logic. To work around this issue, add a new RecoveryStrategy class along with subclasses that implement specific recovery strategies. One such strategy is based on the tree path of the node and is useful here. When requested, the recovery can compute the recovered node for the invalidated node. In EditableLine, add a new member to track the line start container using a tree path recovery strategy. When determining whether two lines are equal, use the recovered node to decide if the two lines are the same along with the local start offset. TEST=type into Docs; verify character echo works. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2971913003 Cr-Commit-Position: refs/heads/master@{#485062} Committed: https://chromium.googlesource.com/chromium/src/+/a28aeb7be0f77767683a8157ab9277a3dd110154

Patch Set 1 : Proper diffbase. #

Total comments: 2

Patch Set 2 : Introduce RecoveryStrategy. #

Patch Set 3 : test #

Patch Set 4 : Rename test and make it slightly more complex. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+227 lines, -19 lines) Patch
M chrome/browser/resources/chromeos/chromevox/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js View 1 4 chunks +8 lines, -18 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js View 1 4 chunks +13 lines, -1 line 0 comments Download
A chrome/browser/resources/chromeos/chromevox/cvox2/background/recovery_strategy.js View 1 2 3 1 chunk +133 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/chromevox/cvox2/background/recovery_strategy_test.extjs View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 27 (18 generated)
David Tseng
3 years, 5 months ago (2017-07-06 20:52:29 UTC) #3
dmazzoni
https://codereview.chromium.org/2971913003/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js (right): https://codereview.chromium.org/2971913003/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js#newcode110 chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js:110: this.recoveryChildIndex_.push(nodeWalker.indexInParent); I like this idea in general but how ...
3 years, 5 months ago (2017-07-06 21:17:07 UTC) #7
David Tseng
https://codereview.chromium.org/2971913003/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js (right): https://codereview.chromium.org/2971913003/diff/20001/chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js#newcode110 chrome/browser/resources/chromeos/chromevox/cvox2/background/cursors.js:110: this.recoveryChildIndex_.push(nodeWalker.indexInParent); On 2017/07/06 21:17:06, dmazzoni wrote: > I like ...
3 years, 5 months ago (2017-07-06 22:15:44 UTC) #8
dmazzoni
OK, here's what I'm thinking: keep your current logic, but instead of every cursor having ...
3 years, 5 months ago (2017-07-06 22:43:40 UTC) #9
David Tseng
On 2017/07/06 22:43:40, dmazzoni wrote: > OK, here's what I'm thinking: keep your current logic, ...
3 years, 5 months ago (2017-07-07 17:06:44 UTC) #10
David Tseng
On 2017/07/07 17:06:44, David Tseng wrote: > On 2017/07/06 22:43:40, dmazzoni wrote: > > OK, ...
3 years, 5 months ago (2017-07-07 17:52:15 UTC) #13
David Tseng
3 years, 5 months ago (2017-07-07 17:59:01 UTC) #16
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/2971913003/80001
3 years, 5 months ago (2017-07-07 21:45:08 UTC) #24
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 21:51:23 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/a28aeb7be0f77767683a8157ab92...

Powered by Google App Engine
This is Rietveld 408576698