зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1648157 - Add getter for windowUtils.desktopModeViewport. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D93006
This commit is contained in:
Родитель
deddd22ef0
Коммит
6eabf70d45
|
@ -2149,6 +2149,13 @@ nsDOMWindowUtils::IsInModalState(bool* retval) {
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::GetDesktopModeViewport(bool* retval) {
|
||||
nsCOMPtr<nsPIDOMWindowOuter> window = do_QueryReferent(mWindow);
|
||||
*retval = window && window->IsDesktopModeViewport();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::SetDesktopModeViewport(bool aDesktopMode) {
|
||||
nsCOMPtr<nsPIDOMWindowOuter> window = do_QueryReferent(mWindow);
|
||||
|
|
|
@ -1323,9 +1323,9 @@ interface nsIDOMWindowUtils : nsISupports {
|
|||
boolean isInModalState();
|
||||
|
||||
/**
|
||||
* Request set internal desktopMode flag change.
|
||||
* Internal desktopMode flag.
|
||||
*/
|
||||
void setDesktopModeViewport(in boolean aDesktopModeViewport);
|
||||
attribute boolean desktopModeViewport;
|
||||
|
||||
/**
|
||||
* Suspend/resume timeouts on this window and its descendant windows.
|
||||
|
|
Загрузка…
Ссылка в новой задаче