#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[] = …;
NavigatorBadge& NavigatorBadge::From(ScriptState* script_state) { … }
NavigatorBadge::NavigatorBadge(ExecutionContext* context)
: … { … }
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
ScriptState* script_state,
Navigator& ,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
ScriptState* script_state,
WorkerNavigator& ,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
ScriptState* script_state,
Navigator& ,
uint64_t content,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> NavigatorBadge::setAppBadge(
ScriptState* script_state,
WorkerNavigator& ,
uint64_t content,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> NavigatorBadge::clearAppBadge(
ScriptState* script_state,
Navigator& ,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> NavigatorBadge::clearAppBadge(
ScriptState* script_state,
WorkerNavigator& ,
ExceptionState& exception_state) { … }
void NavigatorBadge::Trace(Visitor* visitor) const { … }
ScriptPromise<IDLUndefined> NavigatorBadge::SetAppBadgeHelper(
ScriptState* script_state,
mojom::blink::BadgeValuePtr badge_value,
ExceptionState& exception_state) { … }
ScriptPromise<IDLUndefined> NavigatorBadge::ClearAppBadgeHelper(
ScriptState* script_state,
ExceptionState& exception_state) { … }
bool NavigatorBadge::IsAllowed(ScriptState* script_state) { … }
mojo::Remote<mojom::blink::BadgeService> NavigatorBadge::badge_service() { … }
}