implement GetAttention in top-level windows. fixes attention request for session restore, probably other stuff. b=342962 r=mento

This commit is contained in:
joshmoz%gmail.com 2006-07-11 19:51:56 +00:00
Родитель 70f635d4ed
Коммит f1166f226c
3 изменённых файлов: 9 добавлений и 1 удалений

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

@ -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