blob: 5c9e3b7b7af0bdb1530597a8edd80d42eda80dd9 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/input/dispatch_to_renderer_callback.h"
namespace input {
ScopedDispatchToRendererCallback::ScopedDispatchToRendererCallback(
DispatchToRendererCallback dispatch_callback)
: callback(std::move(dispatch_callback)) {}
ScopedDispatchToRendererCallback::~ScopedDispatchToRendererCallback() {
CHECK(!callback);
}
} // namespace input