[Webkit-unassigned] [Bug 90054] [EFL][WK2] Make ewk_view inheritable in the WebKit2.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 4 20:29:46 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90054





--- Comment #16 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2012-07-04 20:29:45 PST ---

> Kenneth, thank you for your comments.
> 
> Yes, right. the mobile is getting important these days,
> and I also considered how to support touch screens as well as supporting mouse.
> but, in my conclusion, I can not support both touch screen and mouse at the same time now in the EFL port.
> Because, Evas can not discriminate the touchscreen's input and mouse's input.
> That means, Evas generates "Mouse Event" when we touch the touchscreen and it also generates "Mouse Event" for Mouse device's operation.
> I want to do scrolling for "Mouse down, move, up" on the touchscreen, but I want to do dragging for that with the mouse device,
> so, I can not support touch screen and mouse at the same time.

Qt has had the same issues but it is almost fixed now ;-) EFL developers should look at how we are fixing this. What you can do while this is not working is adding a method like "ewk_enable_mouse_events() / ewk_enable_touch_events()" to ignore one or the other. 

> Additionally, I think I can write the code to support touchscreen using "if else" statement in the all mouse event callback to separate the touchscreen and mouse in the ewk_view.cpp.
> But, IMO, it is better to inherit and override the mouse event instead of using "if else" statement.

Then you will have a problem in the future when your view supports both. Think about the future :-)

> 
> I really want to listen your thought about that. :)
> 
> BTW, This patch is for making ewk_view inheritable.
> the ewk_view_touchscreen is just a one example of inheritance,
> and I think it will be useful for applications to extend ewk_view functions if ewk_view is inheritable.

It can also easily become a can or worms (talking from experience). What is it that you need from the view that can only be solved by inheritance? why are free functions not good enough?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list