зеркало из https://github.com/mozilla/pjs.git
Accesskey registration methods (empty stubs at this point)
b 7559, r=joki
This commit is contained in:
Родитель
b24dada2da
Коммит
bc703cef36
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче