Closed
Bug 869845
Opened 12 years ago
Closed 12 years ago
FirePlatformEvent shouldn't be virtual
Categories
(Core :: Disability Access APIs, defect)
Core
Disability Access APIs
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: surkov, Assigned: xuku)
References
(Blocks 1 open bug)
Details
(Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=c++])
Attachments
(1 file, 1 obsolete file)
|
7.25 KB,
patch
|
Details | Diff | Splinter Review |
Comment 1•12 years ago
|
||
why can't we just put all that code in HandleAccevent()?
| Reporter | ||
Comment 2•12 years ago
|
||
it seems ok
| Assignee | ||
Comment 4•12 years ago
|
||
Attachment #749908 -
Flags: review?(trev.saunders)
Comment 5•12 years ago
|
||
Comment on attachment 749908 [details] [diff] [review]
Takes FirePlatformEvent() code and makes it inline at the only call site per platform, removes declarations and definitions of the function.
> AccessibleWrap::HandleAccEvent(AccEvent* aEvent)
> {
> NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
>
> nsresult rv = Accessible::HandleAccEvent(aEvent);
> NS_ENSURE_SUCCESS(rv, rv);
>
>- return FirePlatformEvent(aEvent);
>-
>- NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;
>-}
>-
>-nsresult
>-AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
>-{
> NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
I think you can remove this and then you won't need the second one at the end of the function.
Attachment #749908 -
Flags: review?(trev.saunders) → review+
| Assignee | ||
Comment 6•12 years ago
|
||
Attachment #749908 -
Attachment is obsolete: true
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 7•12 years ago
|
||
Keywords: checkin-needed
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•