-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor mouse and keyboard handling in the web process to be frame s…
…pecific https://bugs.webkit.org/show_bug.cgi?id=260356 rdar://114035729 Reviewed by Wenson Hsieh and Alex Christensen. To implement mouse and keyboard events for site isolated frames, we need to be able to send events to frames which are in a different process than the main frame. This patch works towards this by refactoring how these events are handled in the web process to be able to specify a frame. There still needs to be changes so that the events queued in the UI process have support to be to sent to specified frames. For now, these events will all still go to the main frame. * Source/WebCore/page/LocalFrame.cpp: (WebCore::LocalFrame::LocalFrame): * Source/WebCore/page/LocalFrame.h: * Source/WebCore/page/Page.cpp: (WebCore::Page::Page): * Source/WebCore/page/Page.h: (WebCore::Page::userInputBridge): Deleted. * Source/WebCore/replay/UserInputBridge.cpp: (WebCore::UserInputBridge::UserInputBridge): (WebCore::UserInputBridge::handleContextMenuEvent): (WebCore::UserInputBridge::handleMousePressEvent): (WebCore::UserInputBridge::handleMouseReleaseEvent): (WebCore::UserInputBridge::handleMouseMoveEvent): (WebCore::UserInputBridge::handleMouseMoveOnScrollbarEvent): (WebCore::UserInputBridge::handleMouseForceEvent): (WebCore::UserInputBridge::handleKeyEvent): (WebCore::UserInputBridge::handleAccessKeyEvent): (WebCore::UserInputBridge::handleWheelEvent): (WebCore::UserInputBridge::focusSetActive): (WebCore::UserInputBridge::focusSetFocused): (WebCore::UserInputBridge::scrollRecursively): (WebCore::UserInputBridge::logicalScrollRecursively): (WebCore::UserInputBridge::loadRequest): (WebCore::UserInputBridge::reloadFrame): (WebCore::UserInputBridge::stopLoadingFrame): (WebCore::UserInputBridge::tryClosePage): * Source/WebCore/replay/UserInputBridge.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::processNextQueuedMouseEvent): (WebKit::WebPageProxy::sendWheelEvent): (WebKit::WebPageProxy::handleKeyboardEvent): (WebKit::WebPageProxy::didReceiveEvent): * Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: (WKBundlePageCopyContextMenuAtPointInWindow): * Source/WebKit/WebProcess/WebPage/EventDispatcher.cpp: (WebKit::EventDispatcher::dispatchWheelEvent): * Source/WebKit/WebProcess/WebPage/WebFrame.cpp: (WebKit::isContextClick): (WebKit::WebFrame::handleContextMenuEvent): (WebKit::WebFrame::handleMouseEvent): (WebKit::WebFrame::handleKeyEvent): * Source/WebKit/WebProcess/WebPage/WebFrame.h: * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::tryClose): (WebKit::WebPage::loadRequest): (WebKit::WebPage::stopLoading): (WebKit::WebPage::reload): (WebKit::WebPage::contextMenuAtPointInWindow): (WebKit::WebPage::mouseEvent): (WebKit::WebPage::handleWheelEvent): (WebKit::WebPage::wheelEvent): (WebKit::WebPage::keyEvent): (WebKit::WebPage::scroll): (WebKit::WebPage::logicalScroll): (WebKit::WebPage::simulateMouseDown): (WebKit::WebPage::simulateMouseUp): (WebKit::WebPage::simulateMouseMotion): (WebKit::isContextClick): Deleted. (WebKit::handleContextMenuEvent): Deleted. (WebKit::handleMouseEvent): Deleted. (WebKit::handleKeyEvent): Deleted. * Source/WebKit/WebProcess/WebPage/WebPage.h: * Source/WebKit/WebProcess/WebPage/WebPage.messages.in: Canonical link: https://commits.webkit.org/267124@main
- Loading branch information
1 parent
22cfa17
commit b1c1773
Showing
14 changed files
with
242 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.