Quantum/DOM: Difference between revisions

Jump to navigation Jump to search
Update the guideline according to what has been done in IToplevelProtocol::GetMessageEventTarget().
(Talk more about nsINamed)
(Update the guideline according to what has been done in IToplevelProtocol::GetMessageEventTarget().)
Line 180: Line 180:
=== Actors constructed by the parent ===
=== Actors constructed by the parent ===


If the new actor is created on the parent side, then you must override the GetMessageEventTarget method on ContentChild (or whatever the top-level protocol is). All constructor messages are passed to this method. It can return an event target for the new actor or null if no special event target should be used. Be careful, because this method is called on the Gecko I/O thread!
If the new actor is created on the parent side, normally, it inherits its event target from its manager. If the manager has no event target, you must override the '''GetConstructedEventTarget''' method on ContentChild (or whatever the top-level protocol is). All constructor messages are passed to this method. It can return an event target for the new actor or null if no special event target should be used. Be careful, because this method is called on the Gecko I/O thread!
Confirmed users
205

edits

Navigation menu