bool WebViewInputMethodFilter::sendKeyEventWithCompositionResults(GdkEventKey* event, ResultsToSend resultsToSend, EventFakedForComposition) { PlatformKeyboardEvent platformEvent(event, CompositionResults(CompositionResults::WillSendCompositionResultsSoon)); if (!focusedOrMainFrame()->eventHandler().keyEvent(platformEvent)) return false; if (resultsToSend & Composition && !m_confirmedComposition.isNull()) confirmCompositionText(m_confirmedComposition); if (resultsToSend & Preedit && !m_preedit.isNull()) setPreedit(m_preedit, m_cursorOffset); return true; }
bool WebPluginScrollbarImpl::onMouseWheel(const WebInputEvent& event) { WebMouseWheelEvent mousewheel = static_cast<const WebMouseWheelEvent&>(event); PlatformWheelEventBuilder platformEvent(m_scrollbar.get(), mousewheel); return m_group->handleWheelEvent(platformEvent).didScroll; }
GestureEventWithHitTestResults getTargetedEvent(WebViewImpl* webViewImpl, WebGestureEvent& touchEvent) { PlatformGestureEventBuilder platformEvent(webViewImpl->mainFrameImpl()->frameView(), touchEvent); return webViewImpl->page()->deprecatedLocalMainFrame()->eventHandler().targetGestureEvent(platformEvent, true); }
bool WebViewInputMethodFilter::sendSimpleKeyEvent(GdkEventKey* event, WTF::String simpleString, EventFakedForComposition) { PlatformKeyboardEvent platformEvent(event, CompositionResults(simpleString)); return focusedOrMainFrame()->eventHandler().keyEvent(platformEvent); }