Project Fission/BrowsingContext: Difference between revisions

Jump to navigation Jump to search
Add a note about DidSet.
(Add notes on SetWithoutSyncing and Transaction::Commit)
(Add a note about DidSet.)
Line 48: Line 48:
field. <syntaxhighlight lang="C++" inline>CanSet</syntaxhighlight> takes three arguments:
field. <syntaxhighlight lang="C++" inline>CanSet</syntaxhighlight> takes three arguments:


# The type index that names it (for overloading)
# The field index that names it (for overloading)
# The value being set
# The value being set
# the <syntaxhighlight lang="C++" inline>ContentParent</syntaxhighlight> that changed the value
# the <syntaxhighlight lang="C++" inline>ContentParent</syntaxhighlight> that changed the value
Finally, there will also be field setter callbacks available as <syntaxhighlight lang="C++" inline>DidSet</syntaxhighlight> methods. <syntaxhighlight lang="C++" inline>DidSet</syntaxhighlight> is supposed to be overridden, and can either take only the field index that names it, or the field index and the previous value.


Here, 3 will only be non-null if in the parent process, and if the field
Here, 3 will only be non-null if in the parent process, and if the field
5

edits

Navigation menu