|
|
Chromium Code Reviews|
Created:
5 years, 9 months ago by David Tseng Modified:
5 years, 8 months ago Reviewers:
Peter Lundblad CC:
chromium-reviews, dtseng+watch_chromium.org, je_julie(Not used), nkostylev+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, arv+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAdd a role info dictionary to output.js to resolve role msgs.
Currently, ChromeVox Next uses the programmatic string when whenever $role gets used. This cl makes it so $role resolves to a msg id, if one exists. Additionally, the role info object also lists the arcon associated with that role.
This allows us to remove a few of the output rules (button, textField).
Committed: https://crrev.com/cdd27239efbd158480fc8bb2f21cf76297aea51f
Cr-Commit-Position: refs/heads/master@{#322423}
Patch Set 1 #Patch Set 2 : #
Total comments: 4
Patch Set 3 : Address feedback #
Total comments: 2
Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #
Total comments: 1
Patch Set 7 : @private #Patch Set 8 : fix test #
Messages
Total messages: 21 (6 generated)
dtseng@chromium.org changed reviewers: + plundblad@chromium.org
https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js (right): https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:103: msgId: 'LIST_WITH_ITEMS' nit: lower case. https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:103: msgId: 'LIST_WITH_ITEMS' This message takes one parameter, how is that handled? https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:521: var msgId = node.role; If we want this, then the msgIds should be qualified, e.g. msgId = 'role_' + node.role; to not polute the namespace with role names. https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:534: this.addToSpannable_( Should the msgId be suffixed by _brl if such a message exists to get the correct role for braille?
plundblad@chromium.org writes: > https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... > File > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js > (right): > > https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:103: > msgId: 'LIST_WITH_ITEMS' > nit: lower case. > Done. > https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:103: > msgId: 'LIST_WITH_ITEMS' > This message takes one parameter, how is that handled? It's not handled; removed this block. Added something to the list -> enter rule. > https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:521: > var msgId = node.role; > If we want this, then the msgIds should be qualified, e.g. > msgId = 'role_' + node.role; > to not polute the namespace with role names. > Revised to use unlocalized programmatic role and print an error. > https://codereview.chromium.org/1011913002/diff/20001/chrome/browser/resource... > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:534: > this.addToSpannable_( > Should the msgId be suffixed by _brl if such a message exists to get the > correct role for braille? > Done. > https://codereview.chromium.org/1011913002/ > > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org. -- Foo X. Bar http://www.example.com To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
https://codereview.chromium.org/1011913002/diff/40001/chrome/browser/resource... File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js (right): https://codereview.chromium.org/1011913002/diff/40001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:81: * @const {Object<string, {msgId: string, earcon: string}>} This should cause compliation errors since earcon is treated as optional below. Do you know why not? https://codereview.chromium.org/1011913002/diff/40001/chrome/browser/resource... chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:525: if (this.formatOptions_.braille) Indent.
plundblad@chromium.org writes: > https://codereview.chromium.org/1011913002/diff/40001/chrome/browser/resource... > File > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js > (right): > > https://codereview.chromium.org/1011913002/diff/40001/chrome/browser/resource... > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:81: > * @const {Object<string, {msgId: string, earcon: string}>} > This should cause compliation errors since earcon is treated as optional > below. Do you know why not? > Not sure; is there even a syntax to say earcon is optional here? Seems like Closure treats keys annotated this way as optional. > https://codereview.chromium.org/1011913002/diff/40001/chrome/browser/resource... > chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:525: > if (this.formatOptions_.braille) > Indent. > Done. > https://codereview.chromium.org/1011913002/ > > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org. -- Foo X. Bar http://www.example.com To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
Let me know when you've uploaded the latest patchset reflecting your latest comments.
Did you have a response to the optional object key annotation? The indented-response comment patchset is now uploaded. On Fri, Mar 20, 2015 at 4:26 AM, <plundblad@chromium.org> wrote: > Let me know when you've uploaded the latest patchset reflecting your latest > comments. > > > https://codereview.chromium.org/1011913002/ > > To unsubscribe from this group and stop receiving emails from it, send an > email to chromium-reviews+unsubscribe@chromium.org. > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
lgtm (Sorry, had reviewed this yesterday but the code review site 500'd) For the type annotation in the role map, I played with it and it seems like the compiler's type checking is incomplete here (or I am missing something). https://codereview.chromium.org/1011913002/diff/100001/chrome/browser/resourc... File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js (right): https://codereview.chromium.org/1011913002/diff/100001/chrome/browser/resourc... chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:83: Output.ROLE_INFO = { Why is this not private?
The CQ bit was checked by dtseng@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from plundblad@chromium.org Link to the patchset: https://codereview.chromium.org/1011913002/#ps120001 (title: "@private")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011913002/120001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by dtseng@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from plundblad@chromium.org Link to the patchset: https://codereview.chromium.org/1011913002/#ps140001 (title: "fix test")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1011913002/140001
Message was sent while issue was closed.
Committed patchset #8 (id:140001)
Message was sent while issue was closed.
Patchset 8 (id:??) landed as https://crrev.com/cdd27239efbd158480fc8bb2f21cf76297aea51f Cr-Commit-Position: refs/heads/master@{#322423}
Message was sent while issue was closed.
Something in this CL made the role be displayed before the value in an edit field. Was that intentional?
Message was sent while issue was closed.
Not intended. This is because we removed the text field output rule so the default rule applies and puts the role before value. I can change the default rule if that makes sense. To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
