chromium/extensions/renderer/bindings/declarative_event.h

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

#ifndef EXTENSIONS_RENDERER_BINDINGS_DECLARATIVE_EVENT_H_
#define EXTENSIONS_RENDERER_BINDINGS_DECLARATIVE_EVENT_H_

#include <vector>

#include "base/memory/raw_ptr.h"
#include "gin/wrappable.h"
#include "v8/include/v8.h"

namespace gin {
class Arguments;
}

namespace extensions {
class APIRequestHandler;
class APITypeReferenceMap;

// A gin::Wrappable object for declarative events (i.e., events that support
// "rules"). Unlike regular events, these do not have associated listeners, and
// extensions register an action to perform when the event happens.
class DeclarativeEvent final : public gin::Wrappable<DeclarativeEvent> {};

}  // namespace extensions

#endif  // EXTENSIONS_RENDERER_BINDINGS_DECLARATIVE_EVENT_H_