Closed Bug 1192330 Opened 9 years ago Closed 9 years ago

prepare text change data to work with proxied text change events

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: tbsaunde, Assigned: tbsaunde)

References

Details

Attachments

(4 files)

      No description provided.
This will enable us to remove the virtual function GetModifiedText().
Attachment #8645052 - Flags: review?(surkov.alexander)
There's no point in this indirection since ia2AccessibleText has direct access
to this data.
Attachment #8645053 - Flags: review?(surkov.alexander)
Soon we will need to be able to update the text change event data from both
 HandleAccEvent() and ProxyTextChangeEvent(), so separate out the logic to do
 that into a function.
Attachment #8645054 - Flags: review?(surkov.alexander)
Attachment #8645052 - Flags: review?(surkov.alexander) → review+
Attachment #8645053 - Flags: review?(surkov.alexander) → review+
Comment on attachment 8645054 [details] [diff] [review]
add ia2AccessibleText::UpdateTextChangeData

Review of attachment 8645054 [details] [diff] [review]:
-----------------------------------------------------------------

::: accessible/windows/msaa/HyperTextAccessibleWrap.cpp
@@ +58,5 @@
> +          static_cast<HyperTextAccessibleWrap*>(accessible->AsHyperText());
> +      ia2AccessibleText::UpdateTextChangeData(text, event->IsTextInserted(),
> +                                              event->ModifiedText(),
> +                                              event->GetStartOffset(),
> +                                              event->GetLength());

it might nicer if UpdateTextChangeData was taking AccTextChangeEvent as argument, at least less variables on stack.
Attachment #8645054 - Flags: review?(surkov.alexander) → review+
(In reply to alexander :surkov from comment #4)
> Comment on attachment 8645054 [details] [diff] [review]
> add ia2AccessibleText::UpdateTextChangeData
> 
> Review of attachment 8645054 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: accessible/windows/msaa/HyperTextAccessibleWrap.cpp
> @@ +58,5 @@
> > +          static_cast<HyperTextAccessibleWrap*>(accessible->AsHyperText());
> > +      ia2AccessibleText::UpdateTextChangeData(text, event->IsTextInserted(),
> > +                                              event->ModifiedText(),
> > +                                              event->GetStartOffset(),
> > +                                              event->GetLength());
> 
> it might nicer if UpdateTextChangeData was taking AccTextChangeEvent as
> argument, at least less variables on stack.

but ProxyTextChangeEvent() doesn't have one so it wouldn't work there.
Attachment #8645126 - Flags: review?(lorien) → review?(surkov.alexander)
Attachment #8645126 - Flags: review?(surkov.alexander) → review+
Depends on: 1222800
Assignee: nobody → tbsaunde+mozbugs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: