chromium/third_party/blink/renderer/modules/contacts_picker/contacts_manager.idl

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://wicg.github.io/contact-api/spec/#contacts-manager

[
    Exposed=Window,
    SecureContext,
    RuntimeEnabled=ContactsManager
] interface ContactsManager {
    [CallWith=ScriptState, MeasureAs=ContactsManagerGetProperties] Promise<sequence<ContactProperty>> getProperties();
    [CallWith=ScriptState, RaisesException, MeasureAs=ContactsManagerSelect] Promise<sequence<ContactInfo>> select(sequence<ContactProperty> properties, optional ContactsSelectOptions options = {});
};