blob: 75d629b581143daf183b79e63366bd05e614dbb9 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/shape-detection-api/#barcode-detection-api
[
Constructor,
ConstructorCallWith=Document,
Exposed=(Window,Worker),
RuntimeEnabled=ShapeDetection,
] interface BarcodeDetector {
[CallWith=ScriptState, Measure] Promise<sequence<DetectedBarcode>> detect(ImageBitmapSource image);
};