blob: c230f143b71b6867b454e7c0351ffc2cda5d6de5 [file] [log] [blame]
// 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();
};