зеркало из https://github.com/mozilla/pjs.git
implement GetAttention in top-level windows. fixes attention request for session restore, probably other stuff. b=342962 r=mento
This commit is contained in:
Родитель
70f635d4ed
Коммит
f1166f226c
|
@ -1842,7 +1842,7 @@ NS_IMETHODIMP nsChildView::SetTitle(const nsAString& title)
|
|||
|
||||
NS_IMETHODIMP nsChildView::GetAttention(PRInt32 aCycleCount)
|
||||
{
|
||||
[NSApp requestUserAttention:NSCriticalRequest];
|
||||
[NSApp requestUserAttention:NSInformationalRequest];
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -145,6 +145,7 @@ public:
|
|||
NS_IMETHOD SetPreferredSize(PRInt32 aWidth, PRInt32 aHeight) { return NS_OK; }
|
||||
NS_IMETHOD DispatchEvent(nsGUIEvent* event, nsEventStatus & aStatus) ;
|
||||
NS_IMETHOD CaptureRollupEvents(nsIRollupListener * aListener, PRBool aDoCapture, PRBool aConsumeRollupEvent);
|
||||
NS_IMETHOD GetAttention(PRInt32 aCycleCount);
|
||||
|
||||
// be notified that a some form of drag event needs to go into Gecko
|
||||
virtual PRBool DragEvent(unsigned int aMessage, Point aMouseGlobal, UInt16 aKeyModifiers);
|
||||
|
|
|
@ -911,6 +911,13 @@ NS_IMETHODIMP nsCocoaWindow::CaptureRollupEvents(nsIRollupListener * aListener,
|
|||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP nsCocoaWindow::GetAttention(PRInt32 aCycleCount)
|
||||
{
|
||||
[NSApp requestUserAttention:NSInformationalRequest];
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@implementation WindowDelegate
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче