// Copyright 2016 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_API_BINDING_TYPES_H_ #define EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TYPES_H_ #include <memory> #include "base/functional/callback.h" #include "v8/include/v8.h" namespace extensions { namespace binding { // A value indicating an event has no maximum listener count. extern const int kNoListenerMax; // Types of changes for event listener registration. enum class EventListenersChanged { … }; // Whether promises are supported in a given API function. enum class APIPromiseSupport { … }; // The type of async response handler an API caller can have. enum class AsyncResponseType { … }; // Adds an error message to the context's console. AddConsoleError; V8ArgumentList; ResultModifierFunction; } // namespace binding } // namespace extensions #endif // EXTENSIONS_RENDERER_BINDINGS_API_BINDING_TYPES_H_