mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1221947 - part 3: pass touch information to focus manager in RenderFrameParent, r=kats
This commit is contained in:
parent
eb67dde6dd
commit
53ee0deaab
@ -173,7 +173,7 @@ public:
|
||||
return;
|
||||
}
|
||||
if (mRenderFrame) {
|
||||
mRenderFrame->TakeFocusForClick();
|
||||
mRenderFrame->TakeFocusForClickFromTap();
|
||||
TabParent* browser = TabParent::GetFrom(mRenderFrame->Manager());
|
||||
browser->HandleSingleTap(aPoint, aModifiers, aGuid);
|
||||
}
|
||||
@ -609,7 +609,7 @@ RenderFrameParent::GetTextureFactoryIdentifier(TextureFactoryIdentifier* aTextur
|
||||
}
|
||||
|
||||
void
|
||||
RenderFrameParent::TakeFocusForClick()
|
||||
RenderFrameParent::TakeFocusForClickFromTap()
|
||||
{
|
||||
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
|
||||
if (!fm) {
|
||||
@ -624,6 +624,7 @@ RenderFrameParent::TakeFocusForClick()
|
||||
return;
|
||||
}
|
||||
fm->SetFocus(element, nsIFocusManager::FLAG_BYMOUSE |
|
||||
nsIFocusManager::FLAG_BYTOUCH |
|
||||
nsIFocusManager::FLAG_NOSCROLL);
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ public:
|
||||
|
||||
inline uint64_t GetLayersId() { return mLayersId; }
|
||||
|
||||
void TakeFocusForClick();
|
||||
void TakeFocusForClickFromTap();
|
||||
|
||||
protected:
|
||||
void ActorDestroy(ActorDestroyReason why) override;
|
||||
|
Loading…
Reference in New Issue
Block a user