DescriptionAdd View::AddedToWidget and RemovedFromWidget.
Many views implement ViewHierarchyChanged to perform some setup once a
Widget becomes available to them. This results with code duplication.
With these new methods there will be no need to implement
ViewHierarchyChanged for the common case.
BUG=5191
Review-Url: https://codereview.chromium.org/2713643002
Cr-Commit-Position: refs/heads/master@{#454542}
Committed: https://chromium.googlesource.com/chromium/src/+/88ece8a16a39921247c1a74dc1747ea00e8e9377
Patch Set 1 #
Total comments: 4
Patch Set 2 : Review fixes. #
Total comments: 2
Patch Set 3 : Reimplement without using the additional member View::attached_widget_. #
Total comments: 4
Patch Set 4 : Use existing propagation code instead of adding more tree walking. #
Total comments: 10
Patch Set 5 : Review fixes. #
Messages
Total messages: 18 (4 generated)
|