tree: 20f37a9ebbee8b0e03552d8221136f9e758f5fc6 [path history] [tgz]
  1. badge.cc
  2. badge.h
  3. BUILD.gn
  4. experimental_badge.idl
  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.