tree: 41549e2629a4c5204b9a169f374d059a37b8d9d2 [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. badge.cc
  5. badge.h
  6. badge.idl
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.