void WebEditorClient::respondToChangedSelection(Frame* frame) { DEFINE_STATIC_LOCAL(String, WebViewDidChangeSelectionNotification, (ASCIILiteral("WebViewDidChangeSelectionNotification"))); m_page->injectedBundleEditorClient().didChangeSelection(m_page, WebViewDidChangeSelectionNotification.impl()); if (!frame) return; m_page->didChangeSelection(); #if PLATFORM(GTK) || PLATFORM(QT) updateGlobalSelection(frame); #endif }
void WebEditorClient::respondToChangedSelection(Frame* frame) { static NeverDestroyed<String> WebViewDidChangeSelectionNotification(ASCIILiteral("WebViewDidChangeSelectionNotification")); m_page->injectedBundleEditorClient().didChangeSelection(m_page, WebViewDidChangeSelectionNotification.get().impl()); if (!frame) return; m_page->didChangeSelection(); #if PLATFORM(GTK) updateGlobalSelection(frame); #endif }
void WebEditorClient::respondToChangedSelection(Frame* frame) { DEFINE_STATIC_LOCAL(String, WebViewDidChangeSelectionNotification, (ASCIILiteral("WebViewDidChangeSelectionNotification"))); m_page->injectedBundleEditorClient().didChangeSelection(m_page, WebViewDidChangeSelectionNotification.impl()); if (!frame) return; EditorState state = m_page->editorState(); m_page->send(Messages::WebPageProxy::EditorStateChanged(state)); #if PLATFORM(WIN) // FIXME: This should also go into the selection state. if (!frame->editor()->hasComposition() || frame->editor()->ignoreCompositionSelectionChange()) return; unsigned start; unsigned end; m_page->send(Messages::WebPageProxy::DidChangeCompositionSelection(frame->editor()->getCompositionSelection(start, end))); #elif PLATFORM(GTK) || PLATFORM(QT) updateGlobalSelection(frame); #endif }