Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 77db03823160b5bc32d0088dcabd873449f77b7f
https://github.com/WebKit/WebKit/commit/77db03823160b5bc32d0088dcabd873449f77b7f
Author: Jani Hautakangas <[email protected]>
Date: 2024-06-04 (Tue, 04 Jun 2024)
Changed paths:
M Source/WebKit/SourcesWPE.txt
M Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp
A Source/WebKit/UIProcess/API/wpe/WebKitInputMethodContextImplWPE.cpp
A Source/WebKit/UIProcess/API/wpe/WebKitInputMethodContextImplWPE.h
M Source/WebKit/WPEPlatform/CMakeLists.txt
A Source/WebKit/WPEPlatform/wpe/WPEColor.cpp
A Source/WebKit/WPEPlatform/wpe/WPEColor.h
M Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp
M Source/WebKit/WPEPlatform/wpe/WPEDisplay.h
M Source/WebKit/WPEPlatform/wpe/WPEDisplayPrivate.h
A Source/WebKit/WPEPlatform/wpe/WPEInputMethodContext.cpp
A Source/WebKit/WPEPlatform/wpe/WPEInputMethodContext.h
M Source/WebKit/WPEPlatform/wpe/wayland/CMakeLists.txt
M Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp
M Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWaylandPrivate.h
A Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV1.cpp
A Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV1.h
A Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV3.cpp
A Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV3.h
M Source/WebKit/WPEPlatform/wpe/wpe-platform.h
Log Message:
-----------
[WPE] WPE Platform: Add input method context support for Wayland
https://bugs.webkit.org/show_bug.cgi?id=265649
Reviewed by Carlos Garcia Campos.
Add WPE Platfrom default input method context support for wayland
text input v1 and v3.
* Source/WebKit/SourcesWPE.txt:
* Source/WebKit/UIProcess/API/glib/WebKitWebView.cpp:
(webkitWebViewConstructed):
* Source/WebKit/UIProcess/API/wpe/WebKitInputMethodContextImplWPE.cpp: Added.
(toWPEInputPurpose):
(toWPEInputHints):
(inputPurposeChangedCallback):
(inputHintsChangedCallback):
(wpeIMContextPreeditStartCallback):
(wpeIMContextPreeditChangedCallback):
(wpeIMContextPreeditEndCallback):
(wpeIMContextCommitCallback):
(wpeIMContextDeleteSurrounding):
(webkitInputMethodContextImplWPEGetPreedit):
(webkitInputMethodContextImplWPENotifyFocusIn):
(webkitInputMethodContextImplWPENotifyFocusOut):
(webkitInputMethodContextImplWPENotifyCursorArea):
(webkitInputMethodContextImplWPENotifySurrounding):
(webkitInputMethodContextImplWPEReset):
(webkit_input_method_context_impl_wpe_class_init):
(webkitInputMethodContextImplWPENew):
* Source/WebKit/UIProcess/API/wpe/WebKitInputMethodContextImplWPE.h: Added.
* Source/WebKit/WPEPlatform/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/WPEColor.cpp: Copied from
Source/WebKit/WPEPlatform/wpe/wpe-platform.h.
(wpe_color_copy):
(wpe_color_free):
* Source/WebKit/WPEPlatform/wpe/WPEColor.h: Copied from
Source/WebKit/WPEPlatform/wpe/WPEDisplayPrivate.h.
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.cpp:
(wpeDisplayCreateInputMethodContext):
* Source/WebKit/WPEPlatform/wpe/WPEDisplay.h:
* Source/WebKit/WPEPlatform/wpe/WPEDisplayPrivate.h:
* Source/WebKit/WPEPlatform/wpe/WPEInputMethodContext.cpp: Added.
(_WPEInputMethodUnderline::_WPEInputMethodUnderline):
(wpe_input_method_underline_new):
(wpe_input_method_underline_copy):
(wpe_input_method_underline_free):
(wpe_input_method_underline_get_start_offset):
(wpe_input_method_underline_get_end_offset):
(wpe_input_method_underline_set_color):
(wpe_input_method_underline_get_color):
(wpeInputMethodContextGetProperty):
(wpe_input_method_context_class_init):
(wpe_input_method_context_new):
(wpe_input_method_context_get_view):
(wpe_input_method_context_get_display):
(wpe_input_method_context_get_preedit_string):
(wpe_input_method_context_focus_in):
(wpe_input_method_context_focus_out):
(wpe_input_method_context_set_cursor_area):
(wpe_input_method_context_set_surrounding):
(wpe_input_method_context_reset):
* Source/WebKit/WPEPlatform/wpe/WPEInputMethodContext.h: Added.
* Source/WebKit/WPEPlatform/wpe/wayland/CMakeLists.txt:
* Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWayland.cpp:
(wpeDisplayWaylandDispose):
(wpeDisplayWaylandCreateInputMethodContext):
(wpeDisplayWaylandGetTextInputV1):
(wpeDisplayWaylandGetTextInputV3):
(wpe_display_wayland_class_init):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEDisplayWaylandPrivate.h:
* Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV1.cpp:
Added.
(textInputV1GetGlobalByContext):
(toTextInputV1Hints):
(toTextInputV1Purpose):
(truncateSurroundingTextIfeeded):
(textInputV1SetCursorRectangle):
(textInputV1SetSurroundingText):
(textInputV1SetContentType):
(textInputV1CommitState):
(textInputV1UpdateState):
(keysymModifiersGetMask):
(textInputV1GetGlobalByDisplay):
(wpeIMContextWaylandV1PurposeOrHintsChanged):
(wpeIMContextWaylandV1Constructed):
(wpeIMContextWaylandV1Dispose):
(wpeIMContextWaylandV1GetPreeditString):
(wpeIMContextWaylandV1FocusIn):
(wpeIMContextWaylandV1FocusOut):
(wpeIMContextWaylandV1SetCursorArea):
(wpeIMContextWaylandV1SetSurrounding):
(wpeIMContextWaylandV1Reset):
(wpe_im_context_wayland_v1_class_init):
(wpe_im_context_wayland_v1_new):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV1.h:
Copied from Source/WebKit/WPEPlatform/wpe/WPEDisplayPrivate.h.
* Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV3.cpp:
Added.
(_Preedit::operator=):
(textInputV3GetGlobalByContext):
(toTextInputV3Hints):
(toTextInputV3Purpose):
(truncateSurroundingTextIfeeded):
(textInputV3SetCursorRectangle):
(textInputV3SetSurroundingText):
(textInputV3SetContentType):
(textInputV3CommitState):
(textInputV3UpdateState):
(textInputV3PreeditApply):
(textInputV3CommitApply):
(textInputV3DeleteSurroundingTextApply):
(textInputV3Enable):
(textInputV3Disable):
(textInputV3GetGlobalByDisplay):
(wpeIMContextWaylandV3PurposeOrHintsChanged):
(wpeIMContextWaylandV3Constructed):
(wpeIMContextWaylandV3Dispose):
(wpeIMContextWaylandV3GetPreeditString):
(wpeIMContextWaylandV3FocusIn):
(wpeIMContextWaylandV3FocusOut):
(wpeIMContextWaylandV3SetCursorArea):
(wpeIMContextWaylandV3SetSurrounding):
(wpeIMContextWaylandV3Reset):
(wpe_im_context_wayland_v3_class_init):
(wpe_im_context_wayland_v3_new):
* Source/WebKit/WPEPlatform/wpe/wayland/WPEInputMethodContextWaylandV3.h:
Copied from Source/WebKit/WPEPlatform/wpe/WPEDisplayPrivate.h.
* Source/WebKit/WPEPlatform/wpe/wpe-platform.h:
Canonical link: https://commits.webkit.org/279725@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes