tree: eba6b1be6878a24198725da856265408d6ab9480 [path history] [tgz]
  1. badge.cc
  2. badge.h
  3. badge.idl
  4. BUILD.gn
  5. OWNERS
  6. README.md
third_party/blink/renderer/modules/badging/README.md

Badging

This module contains the implementation of the Badging API. The implementation is under active development.

API

See the explainer for details. The Badge interface is a member on Window and exposes two static methods:

  • set(contents): Sets the associated app's badge as a “flag” (the argument is ignored).
  • clear(): Sets the associated app's badge to nothing.

Testing

web_tests/badging/*.html tests that the API accepts/rejects the appropriate inputs (with a mock Mojo service). Testing at other layers will be added during implementation.