// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This should match the DialogButton enum in browser_protocol.pdl enum DialogButton { "ConfirmIdpLoginContinue", "ErrorGotIt", "ErrorMoreDetails", }; dictionary FedCmTitleAndSubtitle { required DOMString title; DOMString subtitle; }; [ ImplementedAs=InternalsFedCm ] partial interface Internals { [CallWith=ScriptState] Promise getFedCmDialogType(); [CallWith=ScriptState] Promise getFedCmTitleAndSubtitle(); [CallWith=ScriptState, RaisesException] Promise selectFedCmAccount(long accountIndex); [CallWith=ScriptState] Promise dismissFedCmDialog(); [CallWith=ScriptState] Promise clickFedCmDialogButton(DialogButton dialogButton); };