зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1318096 part 3. Remove the unused XPCOM fullscreen API. r=froydnj
This commit is contained in:
Родитель
dfab9956ca
Коммит
c8ec840cee
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче