Closed
Bug 812055
Opened 12 years ago
Closed 12 years ago
provide better naming for ETextEquivRule constants
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
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)
|
28.92 KB,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
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?
Comment 1•12 years ago
|
||
> Sounds ok?
sure
| Reporter | ||
Comment 2•12 years ago
|
||
ok, turning into gfb then
Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=c++]
| Assignee | ||
Comment 3•12 years ago
|
||
So just rename the names in the files below?
/accessible/src/base/nsTextEquivUtils.h
/accessible/src/base/RoleMap.h
| Reporter | ||
Comment 4•12 years ago
|
||
right
| Assignee | ||
Comment 5•12 years ago
|
||
Attachment #681857 -
Flags: review?(surkov.alexander)
| Reporter | ||
Comment 6•12 years ago
|
||
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)
| Assignee | ||
Comment 7•12 years ago
|
||
Attachment #681857 -
Attachment is obsolete: true
Attachment #681886 -
Flags: review?(surkov.alexander)
| Reporter | ||
Comment 8•12 years ago
|
||
Comment on attachment 681886 [details] [diff] [review]
rename variables
Review of attachment 681886 [details] [diff] [review]:
-----------------------------------------------------------------
thanks!
Attachment #681886 -
Flags: review?(surkov.alexander) → review+
| Reporter | ||
Updated•12 years ago
|
Assignee: nobody → haog
| Reporter | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
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.
Description
•