Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: cf16656cdaabfbd898f3c3542a7ad9c95fbbd25c
      
https://github.com/WebKit/WebKit/commit/cf16656cdaabfbd898f3c3542a7ad9c95fbbd25c
  Author: Adrian Perez de Castro <[email protected]>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M Source/WebKit/Shared/glib/InputMethodState.cpp
    M Source/WebKit/Shared/glib/InputMethodState.h
    M Source/WebKit/Shared/glib/InputMethodState.serialization.in
    M Source/WebKit/UIProcess/API/glib/InputMethodFilter.cpp
    M Source/WebKit/UIProcess/API/glib/WebKitInputMethodContext.h.in
    M Source/WebKit/UIProcess/API/gtk/WebKitInputMethodContextImplGtk.cpp
    M Source/WebKit/UIProcess/API/wpe/WebKitInputMethodContextImplWPE.cpp
    M Source/WebKit/WPEPlatform/wpe/WPEInputMethodContext.h
    M Tools/TestWebKitAPI/Tests/WebKit/WKPage/glib/TestInputMethodContext.cpp

  Log Message:
  -----------
  [GTK][WPE] Expose search inputs as WEBKIT_INPUT_PURPOSE_SEARCH
https://bugs.webkit.org/show_bug.cgi?id=316942

Reviewed by Carlos Garcia Campos.

Expose the internal WebCore::InputMode::Search / 
HTMLInputElement::isSearchField()
as WEBKIT_INPUT_PURPOSE_SEARCH in the public API for the GTK and WPE ports, and 
as
WPE_INPUT_PURPOSE_SEARCH in WPEPlatform.

In the case of the GTK port the WEBKIT_INPUT_PURPOSE_SEARCH value is folded into
GTK_INPUT_PURPOSE_FREE_FORM because the toolkit does not provide an equivalent.
Applications can still use the WebKitInputPurpose value, though.

* Source/WebKit/Shared/glib/InputMethodState.cpp:
(WebKit::InputMethodState::setPurposeOrHintForInputMode):
(WebKit::InputMethodState::setPurposeForInputElement):
* Source/WebKit/Shared/glib/InputMethodState.h:
* Source/WebKit/Shared/glib/InputMethodState.serialization.in:
* Source/WebKit/UIProcess/API/glib/InputMethodFilter.cpp:
(WebKit::toWebKitPurpose):
* Source/WebKit/UIProcess/API/glib/WebKitInputMethodContext.h.in:
* Source/WebKit/UIProcess/API/gtk/WebKitInputMethodContextImplGtk.cpp:
(toGtkInputPurpose):
* Source/WebKit/UIProcess/API/wpe/WebKitInputMethodContextImplWPE.cpp:
(toWPEInputPurpose):
* Source/WebKit/WPEPlatform/wpe/WPEInputMethodContext.h:
* Tools/TestWebKitAPI/Tests/WebKit/WKPage/glib/TestInputMethodContext.cpp:
(testWebKitInputMethodContextContentType):

Canonical link: https://commits.webkit.org/315091@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to