| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module blink.mojom; |
| |
| // Interface for handling badge messages from frames and subframes. |
| interface BadgeService { |
| // Sets the badge for the PWA corresponding to this request to be a |
| // non-zero, positive integer. |
| SetInteger(uint64 content); |
| |
| // Sets the badge for the PWA corresponding to this request to be a |
| // flag marker. |
| SetFlag(); |
| |
| // Clears the badge (if it exists) for the PWA corresponding to |
| // this request. |
| ClearBadge(); |
| }; |