Closed Bug 812055 Opened 12 years ago Closed 12 years ago

provide better naming for ETextEquivRule constants

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: surkov, Assigned: hao)

References

(Blocks 1 open bug)

Details

(Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=c++])

Attachments

(1 file, 1 obsolete file)

Now ETextEquivRule have eNoRule eFromSubtreeIfRec eFromSubtree eFromValue Role map look like: ROLE(SPINBUTTON, "spinbutton", ATK_ROLE_SPIN_BUTTON, NSAccessibilityIncrementorRole, //Subroles: Increment/Decrement. ROLE_SYSTEM_SPINBUTTON, ROLE_SYSTEM_SPINBUTTON, eFromValue) There's no any single bit pointing what eFromValue is. I suggest to rename those to have move verbal names like: eNoNameRule eNameFromSubtreeIfReqRule eNameFromSubtreeRule eNameFromValueRule 'Rule' in the end to avoid collisions with ENameValueFlag constants which contains eNameFromSubtree for example. Basically ETextEquivRule is about how to compute name, ENameValueFlag is about how name was computed. They are close but not the same. Sounds ok?
> Sounds ok? sure
ok, turning into gfb then
Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=c++]
So just rename the names in the files below? /accessible/src/base/nsTextEquivUtils.h /accessible/src/base/RoleMap.h
right
Attached patch rename variables (obsolete) — Splinter Review
Attachment #681857 - Flags: review?(surkov.alexander)
Comment on attachment 681857 [details] [diff] [review] rename variables Review of attachment 681857 [details] [diff] [review]: ----------------------------------------------------------------- yep but you forgot to change them in nsTextEquivUitls.cpp, it'd be nice if you make sure the patch builds before requesting a review.
Attachment #681857 - Flags: review?(surkov.alexander)
Attached patch rename variablesSplinter Review
Attachment #681857 - Attachment is obsolete: true
Attachment #681886 - Flags: review?(surkov.alexander)
Comment on attachment 681886 [details] [diff] [review] rename variables Review of attachment 681886 [details] [diff] [review]: ----------------------------------------------------------------- thanks!
Attachment #681886 - Flags: review?(surkov.alexander) → review+
Assignee: nobody → haog
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: