forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ash: CalendarMonthView fetches events
Instead of binding calendar event fetching to scrolling of CalendarView, bind it to construction of individual CalendarMonthView instances. CalendarMonthView's constructor fetches events, the view is re-painted when events arrive in OnEventsFetched(), and (if necessary) the fetch is cancelled from CalendarMonthView's destructor. Reasons for doing this: (1) More efficient redraw, since a CalendarMonthView only repaints its children if the loading status is "success" and the events it receives are from its own month. (2) Allows CalendarMonthView to (eventually) assume control of put-up/tear-down of the "loading..." indicator. (3) Eliminates the need to maintain a sliding window of visible months to be fetched. CalendarEventFetch now uses calendar_utils::GetFetchStartEndTimes() to get fetch start/end times adjusted for time zone differences and daylight savings. Bug: 1298357 Change-Id: I02aaca184f9bd6206c4f1f83b32ec787544a8a35 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3564628 Reviewed-by: Jiaming Cheng <jiamingc@chromium.org> Reviewed-by: Alex Newcomer <newcomer@chromium.org> Commit-Queue: Roger Tinkoff <rtinkoff@google.com> Cr-Commit-Position: refs/heads/main@{#1002602}
- Loading branch information
1 parent
eaee3b7
commit 3b560a2
Showing
14 changed files
with
189 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.