mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
Bug 1236512 - Part 2: Add isFullyOccluded attribute to ChromeWindow; r=bz
Right now, only Mac (after 10.9) will possibly return true; other platforms always return false. MozReview-Commit-ID: 8evSf3qQY8i
This commit is contained in:
parent
273f4b0c7e
commit
47a9de7747
@ -14126,6 +14126,15 @@ nsGlobalWindow::WindowState()
|
||||
return nsIDOMChromeWindow::STATE_NORMAL;
|
||||
}
|
||||
|
||||
bool
|
||||
nsGlobalWindow::IsFullyOccluded()
|
||||
{
|
||||
MOZ_ASSERT(IsInnerWindow());
|
||||
|
||||
nsCOMPtr<nsIWidget> widget = GetMainWidget();
|
||||
return widget && widget->IsFullyOccluded();
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsGlobalChromeWindow::Maximize()
|
||||
{
|
||||
|
@ -1282,6 +1282,7 @@ public:
|
||||
// ChromeWindow bits. Do NOT call these unless your window is in
|
||||
// fact an nsGlobalChromeWindow.
|
||||
uint16_t WindowState();
|
||||
bool IsFullyOccluded();
|
||||
nsIBrowserDOMWindow* GetBrowserDOMWindowOuter();
|
||||
nsIBrowserDOMWindow* GetBrowserDOMWindow(mozilla::ErrorResult& aError);
|
||||
void SetBrowserDOMWindowOuter(nsIBrowserDOMWindow* aBrowserWindow);
|
||||
|
@ -407,6 +407,9 @@ interface ChromeWindow {
|
||||
[Func="nsGlobalWindow::IsPrivilegedChromeWindow"]
|
||||
readonly attribute unsigned short windowState;
|
||||
|
||||
[Func="nsGlobalWindow::IsPrivilegedChromeWindow"]
|
||||
readonly attribute boolean isFullyOccluded;
|
||||
|
||||
/**
|
||||
* browserDOMWindow provides access to yet another layer of
|
||||
* utility functions implemented by chrome script. It will be null
|
||||
|
Loading…
Reference in New Issue
Block a user