Bug 188093 - [WPE] Use WPE key symbols and new API instead of xkbcommon and the key mapper
Summary: [WPE] Use WPE key symbols and new API instead of xkbcommon and the key mapper
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WPE WebKit (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 188216
  Show dependency treegraph
 
Reported: 2018-07-27 01:41 PDT by Carlos Garcia Campos
Modified: 2018-08-03 02:16 PDT (History)
5 users (show)

See Also:


Attachments
WIP (52.40 KB, patch)
2018-07-27 01:42 PDT, Carlos Garcia Campos
no flags Details | Formatted Diff | Diff
Patch (57.58 KB, patch)
2018-08-03 01:48 PDT, Carlos Garcia Campos
zan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2018-07-27 01:41:26 PDT
Use the new API.
Comment 1 Carlos Garcia Campos 2018-07-27 01:42:28 PDT
Created attachment 345908 [details]
WIP
Comment 2 Zan Dobersek 2018-07-27 02:12:50 PDT
Comment on attachment 345908 [details]
WIP

View in context: https://bugs.webkit.org/attachment.cgi?id=345908&action=review

> Tools/WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:306
> +    // FIXME: we don't have a way to get hardware key code in WPE.

This could be retrieved with a xkb_keymap object? If so, FIXME should note that.
Comment 3 Carlos Garcia Campos 2018-07-27 02:21:26 PDT
(In reply to Zan Dobersek from comment #2)
> Comment on attachment 345908 [details]
> WIP
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=345908&action=review
> 
> > Tools/WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:306
> > +    // FIXME: we don't have a way to get hardware key code in WPE.
> 
> This could be retrieved with a xkb_keymap object? If so, FIXME should note
> that.

I don't know, I'll investigate.
Comment 4 Carlos Garcia Campos 2018-08-01 03:03:22 PDT
(In reply to Carlos Garcia Campos from comment #3)
> (In reply to Zan Dobersek from comment #2)
> > Comment on attachment 345908 [details]
> > WIP
> > 
> > View in context:
> > https://bugs.webkit.org/attachment.cgi?id=345908&action=review
> > 
> > > Tools/WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:306
> > > +    // FIXME: we don't have a way to get hardware key code in WPE.
> > 
> > This could be retrieved with a xkb_keymap object? If so, FIXME should note
> > that.
> 
> I don't know, I'll investigate.

It requires https://github.com/WebPlatformForEmbedded/WPEBackend/pull/24 I'll keep the FIXME anyway, since the patch to use the key mapper will introduce more changes.
Comment 5 Carlos Garcia Campos 2018-08-03 01:48:55 PDT
Created attachment 346463 [details]
Patch
Comment 6 Zan Dobersek 2018-08-03 02:01:30 PDT
Comment on attachment 346463 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=346463&action=review

> Source/WebKit/ChangeLog:9
> +        
> +

Extra white space.

> Tools/ChangeLog:9
> +        
> +

Extra white space.

> Tools/WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:273
> +    // FIXME: we don't have a way to get hardware key code in WPE.

Is this now not retrievable from wpe_input_xkb_context_get_entries_for_key_code()? Or am I mixing things up?
Comment 7 Carlos Garcia Campos 2018-08-03 02:04:45 PDT
(In reply to Zan Dobersek from comment #6)
> Comment on attachment 346463 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=346463&action=review
> 
> > Source/WebKit/ChangeLog:9
> > +        
> > +
> 
> Extra white space.
> 
> > Tools/ChangeLog:9
> > +        
> > +
> 
> Extra white space.
> 
> > Tools/WebKitTestRunner/wpe/EventSenderProxyWPE.cpp:273
> > +    // FIXME: we don't have a way to get hardware key code in WPE.
> 
> Is this now not retrievable from
> wpe_input_xkb_context_get_entries_for_key_code()? Or am I mixing things up?

Yes, this is part of a follow up patch in bug #188216
Comment 8 Carlos Garcia Campos 2018-08-03 02:16:31 PDT
Committed r234540: <https://trac.webkit.org/changeset/234540>