Accesskey registration methods (empty stubs at this point)

b 7559, r=joki
This commit is contained in:
rods%netscape.com 2000-02-09 15:14:55 +00:00
Родитель b24dada2da
Коммит bc703cef36
6 изменённых файлов: 60 добавлений и 0 удалений

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

@ -76,6 +76,11 @@ public:
// This is an experiement and may be temporary
NS_IMETHOD ConsumeFocusEvents(PRBool aDoConsume) = 0;
// Access Key Registration
NS_IMETHOD RegisterAccessKey(nsIFrame * aFrame, PRUint32 aKey) = 0;
NS_IMETHOD UnregisterAccessKey(nsIFrame * aFrame) = 0;
};
#define NS_EVENT_STATE_UNSPECIFIED 0x0000

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

@ -2278,6 +2278,27 @@ nsEventStateManager::SetFocusedContent(nsIContent* aContent)
return NS_OK;
}
//-------------------------------------------
// Access Key Registration
//-------------------------------------------
NS_IMETHODIMP
nsEventStateManager::RegisterAccessKey(nsIFrame * aFrame, PRUint32 aKey)
{
#ifdef DEBUG_rods
printf("Obj: %p Registered %d [%c]accesskey\n", aFrame, aKey, (char)aKey);
#endif
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsEventStateManager::UnregisterAccessKey(nsIFrame * aFrame)
{
#ifdef DEBUG_rods
printf("Obj: %p Unregistered accesskey\n", aFrame);
#endif
return NS_ERROR_FAILURE;
}
#ifndef USE_FOCUS_FOR_MOUSEWHEEL
nsIFrame*

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

@ -86,6 +86,10 @@ public:
// This is an experiement and may be temporary
NS_IMETHOD ConsumeFocusEvents(PRBool aDoConsume) { mConsumeFocusEvents = aDoConsume; return NS_OK; }
// Access Key Registration
NS_IMETHOD RegisterAccessKey(nsIFrame * aFrame, PRUint32 aKey);
NS_IMETHOD UnregisterAccessKey(nsIFrame * aFrame);
protected:
void UpdateCursor(nsIPresContext* aPresContext, nsPoint& aPoint, nsIFrame* aTargetFrame, nsEventStatus* aStatus);
void GenerateMouseEnterExit(nsIPresContext* aPresContext, nsGUIEvent* aEvent);

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

@ -76,6 +76,11 @@ public:
// This is an experiement and may be temporary
NS_IMETHOD ConsumeFocusEvents(PRBool aDoConsume) = 0;
// Access Key Registration
NS_IMETHOD RegisterAccessKey(nsIFrame * aFrame, PRUint32 aKey) = 0;
NS_IMETHOD UnregisterAccessKey(nsIFrame * aFrame) = 0;
};
#define NS_EVENT_STATE_UNSPECIFIED 0x0000

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

@ -2278,6 +2278,27 @@ nsEventStateManager::SetFocusedContent(nsIContent* aContent)
return NS_OK;
}
//-------------------------------------------
// Access Key Registration
//-------------------------------------------
NS_IMETHODIMP
nsEventStateManager::RegisterAccessKey(nsIFrame * aFrame, PRUint32 aKey)
{
#ifdef DEBUG_rods
printf("Obj: %p Registered %d [%c]accesskey\n", aFrame, aKey, (char)aKey);
#endif
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsEventStateManager::UnregisterAccessKey(nsIFrame * aFrame)
{
#ifdef DEBUG_rods
printf("Obj: %p Unregistered accesskey\n", aFrame);
#endif
return NS_ERROR_FAILURE;
}
#ifndef USE_FOCUS_FOR_MOUSEWHEEL
nsIFrame*

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

@ -86,6 +86,10 @@ public:
// This is an experiement and may be temporary
NS_IMETHOD ConsumeFocusEvents(PRBool aDoConsume) { mConsumeFocusEvents = aDoConsume; return NS_OK; }
// Access Key Registration
NS_IMETHOD RegisterAccessKey(nsIFrame * aFrame, PRUint32 aKey);
NS_IMETHOD UnregisterAccessKey(nsIFrame * aFrame);
protected:
void UpdateCursor(nsIPresContext* aPresContext, nsPoint& aPoint, nsIFrame* aTargetFrame, nsEventStatus* aStatus);
void GenerateMouseEnterExit(nsIPresContext* aPresContext, nsGUIEvent* aEvent);