зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1455674 part 11. Remove nsIDOMElement use from xpidl in toolkit. r=mossop
This commit is contained in:
Родитель
914f11a6d2
Коммит
786ad6bda7
|
@ -2590,8 +2590,7 @@ TabParent::GetAuthPrompt(uint32_t aPromptReason, const nsIID& iid,
|
|||
|
||||
nsCOMPtr<nsILoginManagerPrompter> prompter = do_QueryInterface(prompt);
|
||||
if (prompter) {
|
||||
nsCOMPtr<nsIDOMElement> browser = do_QueryInterface(mFrameElement);
|
||||
prompter->SetBrowser(browser);
|
||||
prompter->SetBrowser(mFrameElement);
|
||||
}
|
||||
|
||||
*aResult = prompt.forget().take();
|
||||
|
|
|
@ -4,9 +4,10 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMElement;
|
||||
interface nsIAutoCompleteInput;
|
||||
|
||||
webidl Element;
|
||||
|
||||
[scriptable, uuid(bd3c2662-a988-41ab-8c94-c15ed0e6ac7d)]
|
||||
interface nsIAutoCompletePopup : nsISupports
|
||||
{
|
||||
|
@ -37,7 +38,7 @@ interface nsIAutoCompletePopup : nsISupports
|
|||
* @param input - The input object that the popup will be bound to
|
||||
* @param element - The element that the popup will be aligned with
|
||||
*/
|
||||
void openAutocompletePopup(in nsIAutoCompleteInput input, in nsIDOMElement element);
|
||||
void openAutocompletePopup(in nsIAutoCompleteInput input, in Element element);
|
||||
|
||||
/*
|
||||
* Close the popup and detach from the bound input
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIURI;
|
||||
interface nsIDOMElement;
|
||||
|
||||
webidl DocumentFragment;
|
||||
webidl Element;
|
||||
|
||||
/**
|
||||
* nsIFeedTextConstructs represent feed text fields that can contain
|
||||
|
@ -53,6 +53,6 @@ interface nsIFeedTextConstruct : nsISupports
|
|||
/**
|
||||
* Return an nsIDocumentFragment containing the text and markup.
|
||||
*/
|
||||
DocumentFragment createDocumentFragment(in nsIDOMElement element);
|
||||
DocumentFragment createDocumentFragment(in Element element);
|
||||
};
|
||||
|
||||
|
|
|
@ -6,9 +6,10 @@
|
|||
#include "nsISupports.idl"
|
||||
|
||||
interface nsILoginInfo;
|
||||
interface nsIDOMElement;
|
||||
interface nsIDOMWindow;
|
||||
|
||||
webidl Element;
|
||||
|
||||
[scriptable, uuid(425f73b9-b2db-4e8a-88c5-9ac2512934ce)]
|
||||
interface nsILoginManagerPrompter : nsISupports {
|
||||
/**
|
||||
|
@ -34,7 +35,7 @@ interface nsILoginManagerPrompter : nsISupports {
|
|||
* The browser this prompter is being created for.
|
||||
* This is required if the init function received a chrome window as argument.
|
||||
*/
|
||||
attribute nsIDOMElement browser;
|
||||
attribute Element browser;
|
||||
|
||||
/**
|
||||
* The opener that was used to open the window passed to init.
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
/********************************* #includes *********************************/
|
||||
|
||||
#include "domstubs.idl" // nsIDOMElement, nsIDOMWindow
|
||||
#include "domstubs.idl" // nsIDOMRange
|
||||
#include "nsISupports.idl" // nsISupports
|
||||
|
||||
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMElement;
|
||||
interface nsIURI;
|
||||
interface nsIVariant;
|
||||
|
||||
webidl Element;
|
||||
|
||||
/**
|
||||
* amIWebInstallPrompt is used, if available, by the default implementation of
|
||||
* amIWebInstallInfo to display a confirmation UI to the user before running
|
||||
|
@ -28,7 +29,7 @@ interface amIWebInstallPrompt : nsISupports
|
|||
* @param aCount
|
||||
* The number of AddonInstalls
|
||||
*/
|
||||
void confirm(in nsIDOMElement aBrowser, in nsIURI aUri,
|
||||
void confirm(in Element aBrowser, in nsIURI aUri,
|
||||
[array, size_is(aCount)] in nsIVariant aInstalls,
|
||||
[optional] in uint32_t aCount);
|
||||
};
|
||||
|
|
|
@ -5,14 +5,15 @@
|
|||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIDOMDocument;
|
||||
interface nsIDOMElement;
|
||||
interface nsIDOMWindow;
|
||||
interface nsIRequest;
|
||||
interface nsIRequestObserver;
|
||||
interface nsISimpleEnumerator;
|
||||
interface nsIFile;
|
||||
|
||||
webidl Element;
|
||||
webidl Document;
|
||||
|
||||
/**
|
||||
* An interface that describes an object representing a patch file that can
|
||||
* be downloaded and applied to a version of this application so that it
|
||||
|
@ -70,7 +71,7 @@ interface nsIUpdatePatch : nsISupports
|
|||
* The document to serialize into
|
||||
* @returns The DOM Element created by the serialization process
|
||||
*/
|
||||
nsIDOMElement serialize(in nsIDOMDocument updates);
|
||||
Element serialize(in Document updates);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -222,7 +223,7 @@ interface nsIUpdate : nsISupports
|
|||
* The document to serialize into
|
||||
* @returns The DOM Element created by the serialization process
|
||||
*/
|
||||
nsIDOMElement serialize(in nsIDOMDocument updates);
|
||||
Element serialize(in Document updates);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче