chromium/third_party/blink/renderer/modules/badging/navigator_badge.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/modules/badging/navigator_badge.h"

#include "build/build_config.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/navigator.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/workers/worker_navigator.h"
#include "third_party/blink/renderer/modules/notifications/notification_manager.h"
#include "third_party/blink/renderer/platform/bindings/exception_code.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"

namespace blink {

const char NavigatorBadge::kSupplementName[] =;

// static
NavigatorBadge& NavigatorBadge::From(ScriptState* script_state) {}

NavigatorBadge::NavigatorBadge(ExecutionContext* context)
    :{}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
    ScriptState* script_state,
    Navigator& /*navigator*/,
    ExceptionState& exception_state) {}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
    ScriptState* script_state,
    WorkerNavigator& /*navigator*/,
    ExceptionState& exception_state) {}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
    ScriptState* script_state,
    Navigator& /*navigator*/,
    uint64_t content,
    ExceptionState& exception_state) {}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
    ScriptState* script_state,
    WorkerNavigator& /*navigator*/,
    uint64_t content,
    ExceptionState& exception_state) {}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::clearAppBadge(
    ScriptState* script_state,
    Navigator& /*navigator*/,
    ExceptionState& exception_state) {}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::clearAppBadge(
    ScriptState* script_state,
    WorkerNavigator& /*navigator*/,
    ExceptionState& exception_state) {}

void NavigatorBadge::Trace(Visitor* visitor) const {}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::SetAppBadgeHelper(
    ScriptState* script_state,
    mojom::blink::BadgeValuePtr badge_value,
    ExceptionState& exception_state) {}

// static
ScriptPromise<IDLUndefined> NavigatorBadge::ClearAppBadgeHelper(
    ScriptState* script_state,
    ExceptionState& exception_state) {}

// static
bool NavigatorBadge::IsAllowed(ScriptState* script_state) {}

mojo::Remote<mojom::blink::BadgeService> NavigatorBadge::badge_service() {}

}  // namespace blink