Changes the shape of the Badging API, per the decision on the spec.
ExperimentalBadge.set ==> navigator.setExperimentalAppBadge ExperimentalBadge.clear ==> navigator.clearExperimentalAppBadge Note: This also removes the (unused) scope parameter from the IDL files and returns a Promise<void> from both APIs, in case we ever want to promisify the API in future (see https://github.com/WICG/badging/issues/55#issuecomment-535740159). TPAC Discussion Summary: https://github.com/WICG/badging/issues/55 Summary of IDL Changes: interface ExperimentalBadge { static void set(optional unsigned long long contents); static void clear(); } changed to: partial interface Navigator { Promise<void> setExperimentalAppBadge(optional unsigned long long contents); Promise<void> clearExperimentalAppBadge(); } Bug: 719176 Change-Id: Ied825cb1a58df674d5c7de59278cbf8b6e3b32f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816002 Commit-Queue: Jay Harris <harrisjay@chromium.org> Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Matt Giuca <mgiuca@chromium.org> Cr-Commit-Position: refs/heads/master@{#704926}
Showing
Please register or sign in to comment