1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/embedding/components/windowwatcher/public/nsPIPromptService.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +/* The general dialog posing function within nsPromptService, for 1.10 + private consumption, only. */ 1.11 + 1.12 +#include "nsISupports.idl" 1.13 + 1.14 +interface nsIDOMWindow; 1.15 +interface nsIDialogParamBlock; 1.16 + 1.17 +[uuid(C60A1955-6CB3-4827-8EF8-4F5C668AF0B3)] 1.18 +interface nsPIPromptService : nsISupports 1.19 +{ 1.20 +%{C++ 1.21 + // eOpeningSound is obsolete but we need to support it for the compatibility. 1.22 + // The implementers should use eSoundEventId instead. 1.23 + enum {eMsg=0, eCheckboxMsg=1, eIconClass=2, eTitleMessage=3, eEditfield1Msg=4, 1.24 + eEditfield2Msg=5, eEditfield1Value=6, eEditfield2Value=7, 1.25 + eButton0Text=8, eButton1Text=9, eButton2Text=10, eButton3Text=11, 1.26 + eDialogTitle=12, eOpeningSound=13}; 1.27 + enum {eButtonPressed=0, eCheckboxState=1, eNumberButtons=2, 1.28 + eNumberEditfields=3, eEditField1Password=4, eDefaultButton=5, 1.29 + eDelayButtonEnable=6, eSoundEventId=7}; 1.30 +%} 1.31 + 1.32 + void doDialog(in nsIDOMWindow aParent, in nsIDialogParamBlock aParamBlock, in string aChromeURL); 1.33 +}; 1.34 +