Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt signature of callback for views::Link::set_callback()
This used to expect 2 parameters (Link* source, int event_flags), but it's only one (int event_flags) now, so let's adapt it. Chromium change: https://chromium.googlesource.com/chromium/src/+/10d5bf9896fd3b41bb0b74b79b27c8df1feebcd4 commit 10d5bf9896fd3b41bb0b74b79b27c8df1feebcd4 Author: Peter Kasting <pkasting@chromium.org> Date: Thu Sep 10 22:51:15 2020 +0000 Remove StyledLabelListener. This replaces it with direct callback registration on the underlying links, conveyed by setting the callback on the RangeStyleInfo corresponding to the link. This allows eliminating parameters like the range, since a different callback or different bound arguments can be set for each range. With a change to how ContentSettingBubbleContents works (which was the other place using the Link* argument of Link::ClickedCallback), this allows reducing Link::ClickedCallback to one argument as well. It makes sense to make these changes simultaneously since they mostly affect the same listeners and thus this avoids changing lots of signatures twice. Bug: 1108460
- Loading branch information