// Copyright 2019 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 | |
enum BarcodeFormat { | |
"aztec", | |
"code_128", | |
"code_39", | |
"code_93", | |
"codabar", | |
"data_matrix", | |
"ean_13", | |
"ean_8", | |
"itf", | |
"pdf417", | |
"qr_code", | |
"unknown", | |
"upc_a", | |
"upc_e" | |
}; | |
dictionary BarcodeDetectorOptions { | |
sequence<BarcodeFormat> formats; | |
}; |