#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_DOM_EVENTS_EVENT_DISPATCH_FORBIDDEN_SCOPE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_DOM_EVENTS_EVENT_DISPATCH_FORBIDDEN_SCOPE_H_
#include "base/auto_reset.h"
#include "base/dcheck_is_on.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/platform/wtf/allocator/allocator.h"
#include "third_party/blink/renderer/platform/wtf/wtf.h"
namespace blink {
#if DCHECK_IS_ON()
class EventDispatchForbiddenScope { … };
#else
class EventDispatchForbiddenScope {
STACK_ALLOCATED();
public:
EventDispatchForbiddenScope() {}
EventDispatchForbiddenScope(const EventDispatchForbiddenScope&) = delete;
EventDispatchForbiddenScope& operator=(const EventDispatchForbiddenScope&) =
delete;
class AllowUserAgentEvents {
public:
AllowUserAgentEvents() {}
};
};
#endif
}
#endif