Chromium Code Reviews
DescriptionMake it harder to forget itemCount for FixedHeightScrollable
Previously, if a subclass of FixedHeightScrollable didn't set itemCount,
everything would silently work except that you wouldn't actully be able to
scroll. This CL makes it harder to forget to provide the itemCount by making it
an abstract getter. Now the analyzer will flag it as missing in subclasses and
we'll throw an exception at runtime if you forget it.
R=ianh@google.com, tonyg@google.com
Committed: https://chromium.googlesource.com/external/mojo/+/e14757d2a9aeed883e1e33878fe4cba9ee9dbbee
Patch Set 1 #
Total comments: 2
Patch Set 2 : address ian's comments #
Messages
Total messages: 10 (2 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||