Bug 1318096 part 3. Remove the unused XPCOM fullscreen API. r=froydnj

This commit is contained in:
Boris Zbarsky 2016-11-17 13:49:27 -05:00
Родитель dfab9956ca
Коммит c8ec840cee
6 изменённых файлов: 0 добавлений и 81 удалений

Просмотреть файл

@ -1887,11 +1887,5 @@ NS_IMETHOD ReleaseCapture(void) final override \
{ \
Element::ReleaseCapture(); \
return NS_OK; \
} \
NS_IMETHOD MozRequestFullScreen(void) final override \
{ \
mozilla::ErrorResult rv; \
Element::RequestFullscreen(rv); \
return rv.StealNSResult(); \
}
#endif // mozilla_dom_Element_h__

Просмотреть файл

@ -10468,13 +10468,6 @@ nsDocument::SetFullscreenRoot(nsIDocument* aRoot)
mFullscreenRoot = do_GetWeakReference(aRoot);
}
NS_IMETHODIMP
nsDocument::MozCancelFullScreen()
{
nsIDocument::ExitFullscreen();
return NS_OK;
}
void
nsIDocument::ExitFullscreen()
{
@ -11412,15 +11405,6 @@ nsDocument::ApplyFullscreen(const FullscreenRequest& aRequest)
return true;
}
NS_IMETHODIMP
nsDocument::GetMozFullScreenElement(nsIDOMElement **aFullScreenElement)
{
Element* el = GetFullscreenElement();
nsCOMPtr<nsIDOMElement> retval = do_QueryInterface(el);
retval.forget(aFullScreenElement);
return NS_OK;
}
Element*
nsDocument::GetFullscreenElement()
{
@ -11431,21 +11415,6 @@ nsDocument::GetFullscreenElement()
return element;
}
NS_IMETHODIMP
nsDocument::GetMozFullScreen(bool *aFullScreen)
{
*aFullScreen = Fullscreen();
return NS_OK;
}
NS_IMETHODIMP
nsDocument::GetMozFullScreenEnabled(bool *aFullScreen)
{
NS_ENSURE_ARG_POINTER(aFullScreen);
*aFullScreen = FullscreenEnabled();
return NS_OK;
}
bool
nsDocument::FullscreenEnabled()
{

Просмотреть файл

@ -94,7 +94,6 @@ public:
using nsDocument::SetTitle;
using nsDocument::GetLastStyleSheetSet;
using nsDocument::MozSetImageElement;
using nsDocument::GetMozFullScreenElement;
// nsIDOMNode interface
NS_FORWARD_NSIDOMNODE_TO_NSINODE

Просмотреть файл

@ -334,39 +334,6 @@ interface nsIDOMDocument : nsIDOMNode
void mozSetImageElement(in DOMString aImageElementId,
in nsIDOMElement aImageElement);
/**
* Element which is currently the full-screen element as per the DOM
* full-screen api.
*
* @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
*/
readonly attribute nsIDOMElement mozFullScreenElement;
/**
* Causes the document to leave DOM full-screen mode, if it's in
* full-screen mode, as per the DOM full-screen api.
*
* @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
*/
void mozCancelFullScreen();
/**
* Denotes whether this document is in DOM full-screen mode, as per the DOM
* full-screen api.
*
* @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
*/
readonly attribute boolean mozFullScreen;
/**
* Denotes whether the full-screen-api.enabled is true, no windowed
* plugins are present, and all ancestor documents have the
* allowfullscreen attribute set.
*
* @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
*/
readonly attribute boolean mozFullScreenEnabled;
/**
* Retrieve the location of the caret position (DOM node and character
* offset within that node), given a point.

Просмотреть файл

@ -201,13 +201,4 @@ interface nsIDOMElement : nsIDOMNode
* element has captured the mouse, this method has no effect.
*/
void releaseCapture();
// Mozilla extensions
/**
* Requests that this element be made the full-screen element, as per the DOM
* full-screen api.
*
* @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
*/
void mozRequestFullScreen();
};

Просмотреть файл

@ -153,7 +153,6 @@ public:
using nsDocument::SetTitle;
using nsDocument::GetLastStyleSheetSet;
using nsDocument::MozSetImageElement;
using nsDocument::GetMozFullScreenElement;
using nsIDocument::GetLocation;
// nsDocument interface overrides