WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
100270
Explore the possibility of re-naming GestureLongPress and GestureTwoFingerTap to GestureContextMenu in WebCore
https://bugs.webkit.org/show_bug.cgi?id=100270
Summary
Explore the possibility of re-naming GestureLongPress and GestureTwoFingerTap...
Terry Anderson
Reported
2012-10-24 11:07:06 PDT
It was suggested by Allan Jensen in
https://bugs.webkit.org/show_bug.cgi?id=99947#c5
that WebCore should re-name GestureLongPress and GestureTwoFingerTap to GestureContextMenu in WebCore. Let's discuss that idea here.
Attachments
Add attachment
proposed patch, testcase, etc.
Adam Barth
Comment 1
2012-10-24 11:09:43 PDT
That seems in line with things like GestureScroll.
Varun Jain
Comment 2
2012-10-24 11:19:28 PDT
two questions: 1. will (can) this also include right-click with mouse? 2. currently, GestureLongPress means different things on different platforms (different handling on android). The deciding code will have to be moved to WebViewImpl if we were to go with GestureContextMenu. IIRC, the reviewers were opposed to it when that was added. How do we handle that?
Sadrul Habib Chowdhury
Comment 3
2012-10-24 11:25:43 PDT
I think the idea here is that the WebCore gestures will represent the desired action, rather than the gesture itself. So for example, for a LongPress event, WebCore will receive a GestureSelectWord (or something similar) on android, while a GestureContextMenu on other platforms.
Allan Sandfeld Jensen
Comment 4
2012-10-25 02:20:09 PDT
(In reply to
comment #2
)
> two questions: > 1. will (can) this also include right-click with mouse? > 2. currently, GestureLongPress means different things on different platforms (different handling on android). The deciding code will have to be moved to WebViewImpl if we were to go with GestureContextMenu. IIRC, the reviewers were opposed to it when that was added. How do we handle that?
1. No, this is for gestures that need touch-adjustment to elements relevant to context-menu. Though we I guess we could improve code sharing with right-click and the Windows ContextMenu button. 2. The way I see gesture events is like this: You have touch events that go into gesture recognizers, they output possible gestures in different states: MayBegin, Start, Update, End, Cancel. If you have code that decides between different actions it will either postpone sending a start event, or it will send a cancel event when the gesture turns out to be something else.
Robert Kroeger
Comment 5
2012-11-05 11:31:10 PST
I like Sadrul's organizing principle: let the embedder decide what causes an action, let WebCore implement the action. In Chrome's context, I think we need perhaps both of: GestureContextMenu and perhaps: GestureStartSelection (as opposed to GestureSelectWord) and because it admits a GestureEndSelection which might also be useful. and embedder or WebKit logic can choose when to send the respective Platform events. Thoughts?
Terry Anderson
Comment 6
2013-04-04 10:15:20 PDT
Created a duplicate of this bug for Blink at crbug.com/226492.
Ahmad Saleem
Comment 7
2022-09-29 15:19:59 PDT
Chrome / Blink bug mentioned following rationale to not go ahead with this change: "I am not sure thats a good idea. Longpress is going to be overloaded for drag drop and text selection. two finger tap will not." Link -
https://bugs.chromium.org/p/chromium/issues/detail?id=226492#c3
Something required by WebKit or we can mark this as "RESOLVED LATER" or "RESOLVED WONTFIX"? Thanks!
Alexey Proskuryakov
Comment 8
2022-09-29 17:59:45 PDT
A refactoring discussion from 2012 isn't really relevant today.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug