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

Issue 2931893002: More precise use of multiline state (Closed)

Created:
3 years, 6 months ago by aleventhal
Modified:
3 years, 5 months ago
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dmazzoni, dougt+watch_chromium.org, dtseng+watch_chromium.org, haraken, jam, je_julie, nektar+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

More precise use of multiline state. It only needs to be exposed at the root of the editable area. ARIA should override native markup. Add lots of tests. BUG=730138 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2931893002 Cr-Commit-Position: refs/heads/master@{#485051} Committed: https://chromium.googlesource.com/chromium/src/+/5a1e7c0f36fc682b8572f3d781943aef6edce818

Patch Set 1 #

Patch Set 2 : Fix more tests #

Patch Set 3 : Refinement #

Patch Set 4 : Refinement #

Patch Set 5 : Compile #

Patch Set 6 : Refinement #

Patch Set 7 : Refinement #

Patch Set 8 : Fix tests #

Patch Set 9 : Fix chromevox tests #

Patch Set 10 : Rebase #

Patch Set 11 : Next #

Patch Set 12 : Rebase #

Patch Set 13 : Textboxes should be single line by default #

Patch Set 14 : Update tests #

Patch Set 15 : Rebase #

Total comments: 10

Patch Set 16 : Address review notes and fix little test issues #

Patch Set 17 : Remove accidental event test expectation changes #

Patch Set 18 : Address review comments #

Patch Set 19 : More explicit comment #

Patch Set 20 : Better comment #

Patch Set 21 : Add TODO #

Patch Set 22 : Comboboxes do not need single or multi line state -- they are always single line #

Patch Set 23 : Try again to fix combo box #

Patch Set 24 : Fix typo #

Total comments: 5

Patch Set 25 : Fix nit #

Patch Set 26 : Rebase format #

Total comments: 2

Patch Set 27 : Try to use multiline field #

Patch Set 28 : Tests need to specify aria-multiline in order to avoid ARIA default of multiline=false #

Patch Set 29 : Fix test #

Total comments: 4

Patch Set 30 : Rebase #

Total comments: 1

Patch Set 31 : Rebase and address comments #

Patch Set 32 : Remove unnecessary changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -80 lines) Patch
M content/browser/accessibility/browser_accessibility.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 3 chunks +18 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_com_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 4 chunks +16 lines, -10 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-multiline.html View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/accessibility/aria/aria-multiline-expected-blink.txt View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/data/accessibility/aria/aria-multiline-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-textbox.html View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-expected-blink.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-expected-win.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-rich-text-expected-win.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-selection.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-selection-expected-android.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/aria/aria-textbox-with-selection-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/css/color-expected-blink.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/css/color-expected-win.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/css/font-style-expected-blink.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/css/font-style-expected-win.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/event/aria-combo-box-collapse-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/aria-combo-box-expand-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/aria-combo-box-focus-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/event/aria-combo-box-next-expected-win.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/contenteditable-descendants.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-descendants-expected-blink.txt View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -5 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-descendants-expected-win.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-descendants-with-selection.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-descendants-with-selection-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/contenteditable-descendants-with-selection-expected-win.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/contenteditable-with-embedded-contenteditables-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-with-embedded-contenteditables-expected-win.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/contenteditable-with-no-descendants-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/data/accessibility/html/contenteditable-with-no-descendants-expected-win.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M content/test/data/accessibility/html/input-text-value.html View 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/input-text-value-expected-blink.txt View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -10 lines 0 comments Download
A content/test/data/accessibility/html/input-text-value-expected-win.txt View 1 chunk +17 lines, -0 lines 0 comments Download
M content/test/data/accessibility/html/textarea-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/textarea-read-only-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M content/test/data/accessibility/html/textarea-with-selection-expected-blink.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2 chunks +33 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObject.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +0 lines, -18 lines 0 comments Download

Messages

Total messages: 175 (130 generated)
aleventhal
Ready for review.
3 years, 6 months ago (2017-06-23 17:41:44 UTC) #62
dougt
Note that this will conflict with my change and not sure who's going first. https://codereview.chromium.org/2943243002 ...
3 years, 6 months ago (2017-06-23 18:27:18 UTC) #66
nektarios
+ if (breaks.length < 1) + return 0; Isn't this the same as saying if ...
3 years, 5 months ago (2017-06-26 15:57:55 UTC) #77
aleventhal
On 2017/06/26 15:57:55, nektarios wrote: > + if (breaks.length < 1) > + return 0; ...
3 years, 5 months ago (2017-06-26 18:44:39 UTC) #78
blink-reviews
AXNodeObject.h > > + bool IsMultiline() const; Don't you need to say override at the ...
3 years, 5 months ago (2017-06-26 19:16:42 UTC) #81
chromium-reviews
AXNodeObject.h > > + bool IsMultiline() const; Don't you need to say override at the ...
3 years, 5 months ago (2017-06-26 19:16:42 UTC) #82
aleventhal
On 2017/06/26 19:16:42, chromium-reviews wrote: > AXNodeObject.h > > > + bool IsMultiline() const; > ...
3 years, 5 months ago (2017-06-26 19:28:49 UTC) #83
blink-reviews
Re combo box. Yes, I would think that a combo box is editable because when ...
3 years, 5 months ago (2017-06-26 19:31:47 UTC) #86
chromium-reviews
Re combo box. Yes, I would think that a combo box is editable because when ...
3 years, 5 months ago (2017-06-26 19:31:49 UTC) #87
nektarios
lgtm
3 years, 5 months ago (2017-06-26 20:12:07 UTC) #90
nektarios
Aaron will look into how standard compliant combo boxes should be structured. For now some ...
3 years, 5 months ago (2017-06-26 20:13:48 UTC) #91
dougt
Hey Aaron, some things you may want to consider. Also note, that this is going ...
3 years, 5 months ago (2017-06-27 17:23:38 UTC) #103
blink-reviews
On 6/27/2017 1:23 PM, dougt@chromium.org wrote: > Hey Aaron, some things you may want to ...
3 years, 5 months ago (2017-06-27 17:26:44 UTC) #104
chromium-reviews
On 6/27/2017 1:23 PM, dougt@chromium.org wrote: > Hey Aaron, some things you may want to ...
3 years, 5 months ago (2017-06-27 17:26:45 UTC) #105
David Tseng
https://codereview.chromium.org/2931893002/diff/450001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js (right): https://codereview.chromium.org/2931893002/diff/450001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js#newcode182 chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js:182: if (this.getLineBreaks_().length) { This isn't equivalent. Whether something is ...
3 years, 5 months ago (2017-06-27 18:41:14 UTC) #106
blink-reviews
On 6/27/2017 2:41 PM, dtseng@chromium.org wrote: > > https://codereview.chromium.org/2931893002/diff/450001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > File > chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > (right): ...
3 years, 5 months ago (2017-06-27 18:52:35 UTC) #107
chromium-reviews
On 6/27/2017 2:41 PM, dtseng@chromium.org wrote: > > https://codereview.chromium.org/2931893002/diff/450001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > File > chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > (right): ...
3 years, 5 months ago (2017-06-27 18:52:35 UTC) #108
aleventhal
On 2017/06/27 18:41:14, David Tseng wrote: > https://codereview.chromium.org/2931893002/diff/450001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > File chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > (right): > > ...
3 years, 5 months ago (2017-06-27 19:25:16 UTC) #111
David Tseng
On Tue, Jun 27, 2017 at 12:25 PM, <aleventhal@chromium.org> wrote: > On 2017/06/27 18:41:14, David ...
3 years, 5 months ago (2017-06-27 19:34:39 UTC) #114
David Tseng
On Tue, Jun 27, 2017 at 12:25 PM, <aleventhal@chromium.org> wrote: > On 2017/06/27 18:41:14, David ...
3 years, 5 months ago (2017-06-27 19:34:40 UTC) #115
blink-reviews
On 6/27/2017 3:25 PM, aleventhal@chromium.org wrote: > On 2017/06/27 18:41:14, David Tseng wrote: > > ...
3 years, 5 months ago (2017-06-27 19:34:49 UTC) #116
chromium-reviews
On 6/27/2017 3:25 PM, aleventhal@chromium.org wrote: > On 2017/06/27 18:41:14, David Tseng wrote: > > ...
3 years, 5 months ago (2017-06-27 19:34:50 UTC) #117
aleventhal
https://codereview.chromium.org/2931893002/diff/280001/content/browser/accessibility/browser_accessibility_com_win.cc File content/browser/accessibility/browser_accessibility_com_win.cc (right): https://codereview.chromium.org/2931893002/diff/280001/content/browser/accessibility/browser_accessibility_com_win.cc#newcode4315 content/browser/accessibility/browser_accessibility_com_win.cc:4315: BrowserAccessibility* parent = owner()->PlatformGetParent(); On 2017/06/23 18:27:18, dougt wrote: ...
3 years, 5 months ago (2017-06-28 14:20:57 UTC) #120
blink-reviews
> https://codereview.chromium.org/2931893002/diff/280001/content/browser/accessibility/browser_accessibility_com_win.h#newcode820 > content/browser/accessibility/browser_accessibility_com_win.h:820: // Is > an editbox of some type > On 2017/06/23 ...
3 years, 5 months ago (2017-06-28 14:50:34 UTC) #123
chromium-reviews
> https://codereview.chromium.org/2931893002/diff/280001/content/browser/accessibility/browser_accessibility_com_win.h#newcode820 > content/browser/accessibility/browser_accessibility_com_win.h:820: // Is > an editbox of some type > On 2017/06/23 ...
3 years, 5 months ago (2017-06-28 14:50:34 UTC) #124
dougt
https://codereview.chromium.org/2931893002/diff/490001/content/browser/accessibility/browser_accessibility.cc File content/browser/accessibility/browser_accessibility.cc (right): https://codereview.chromium.org/2931893002/diff/490001/content/browser/accessibility/browser_accessibility.cc#newcode134 content/browser/accessibility/browser_accessibility.cc:134: } I would add this to https://cs.chromium.org/chromium/src/ui/accessibility/ax_role_properties.h. Same with ...
3 years, 5 months ago (2017-06-28 19:43:21 UTC) #127
aleventhal
> Isn't it better to say EditField instead of EditBox? > It's the more formal ...
3 years, 5 months ago (2017-06-28 19:46:23 UTC) #128
nektarios
lgtm
3 years, 5 months ago (2017-06-28 19:54:52 UTC) #129
aleventhal
Try to use multiline field
3 years, 5 months ago (2017-06-28 21:03:31 UTC) #130
aleventhal
Tests need to specify aria-multiline in order to avoid ARIA default of multiline=false
3 years, 5 months ago (2017-06-30 14:21:09 UTC) #135
aleventhal
Fix test
3 years, 5 months ago (2017-06-30 18:41:08 UTC) #140
aleventhal
@dtseng PTAL
3 years, 5 months ago (2017-06-30 20:32:47 UTC) #143
dougt
https://codereview.chromium.org/2931893002/diff/550001/content/browser/accessibility/browser_accessibility.cc File content/browser/accessibility/browser_accessibility.cc (right): https://codereview.chromium.org/2931893002/diff/550001/content/browser/accessibility/browser_accessibility.cc#newcode131 content/browser/accessibility/browser_accessibility.cc:131: bool BrowserAccessibility::IsDocument() const { Please do not add more ...
3 years, 5 months ago (2017-06-30 22:03:30 UTC) #146
David Tseng
https://codereview.chromium.org/2931893002/diff/550001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js (right): https://codereview.chromium.org/2931893002/diff/550001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js#newcode157 chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js:157: if (breaks.length < 1) Thanks for the cleanup, but ...
3 years, 5 months ago (2017-07-01 01:17:41 UTC) #147
aleventhal
On 2017/07/01 01:17:41, David Tseng wrote: > https://codereview.chromium.org/2931893002/diff/550001/chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > File chrome/browser/resources/chromeos/chromevox/cvox2/background/editing.js > (right): > > ...
3 years, 5 months ago (2017-07-05 18:49:51 UTC) #148
aleventhal
Rebase
3 years, 5 months ago (2017-07-06 13:24:46 UTC) #149
aleventhal
On 2017/07/05 18:49:51, aleventhal wrote: > On 2017/07/01 01:17:41, David Tseng wrote: > > > ...
3 years, 5 months ago (2017-07-06 13:25:22 UTC) #152
aleventhal
On 2017/07/05 18:49:51, aleventhal wrote: > On 2017/07/01 01:17:41, David Tseng wrote: > > > ...
3 years, 5 months ago (2017-07-06 13:25:30 UTC) #153
aleventhal
Rebase and address comments
3 years, 5 months ago (2017-07-07 11:59:13 UTC) #156
aleventhal
Dtseng, it's rebased and ready. PTAL.
3 years, 5 months ago (2017-07-07 12:18:59 UTC) #159
David Tseng
lgtm for small ChromeVox change. nektar should review platform specific code; I can if he's ...
3 years, 5 months ago (2017-07-07 17:58:06 UTC) #162
aleventhal
On 2017/07/07 17:58:06, David Tseng wrote: > lgtm for small ChromeVox change. nektar should review ...
3 years, 5 months ago (2017-07-07 19:09:28 UTC) #163
aleventhal
Remove unnecessary changes
3 years, 5 months ago (2017-07-07 19:10:49 UTC) #164
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/2931893002/610001
3 years, 5 months ago (2017-07-07 19:12:20 UTC) #170
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 21:18:40 UTC) #175
Message was sent while issue was closed.
Committed patchset #32 (id:610001) as
https://chromium.googlesource.com/chromium/src/+/5a1e7c0f36fc682b8572f3d78194...

Powered by Google App Engine
This is Rietveld 408576698