<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>100270</bug_id>
          
          <creation_ts>2012-10-24 11:07:06 -0700</creation_ts>
          <short_desc>Explore the possibility of re-naming GestureLongPress and GestureTwoFingerTap to GestureContextMenu in WebCore</short_desc>
          <delta_ts>2022-09-29 17:59:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>UI Events</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Terry Anderson">tdanderson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ahmad.saleem792</cc>
    
    <cc>allan.jensen</cc>
    
    <cc>ap</cc>
    
    <cc>rjkroege</cc>
    
    <cc>sadrul</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>varunjain</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>749839</commentid>
    <comment_count>0</comment_count>
    <who name="Terry Anderson">tdanderson</who>
    <bug_when>2012-10-24 11:07:06 -0700</bug_when>
    <thetext>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&apos;s discuss that idea here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>749843</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-10-24 11:09:43 -0700</bug_when>
    <thetext>That seems in line with things like GestureScroll.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>749852</commentid>
    <comment_count>2</comment_count>
    <who name="Varun Jain">varunjain</who>
    <bug_when>2012-10-24 11:19:28 -0700</bug_when>
    <thetext>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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>749858</commentid>
    <comment_count>3</comment_count>
    <who name="Sadrul Habib Chowdhury">sadrul</who>
    <bug_when>2012-10-24 11:25:43 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>750578</commentid>
    <comment_count>4</comment_count>
    <who name="Allan Sandfeld Jensen">allan.jensen</who>
    <bug_when>2012-10-25 02:20:09 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; two questions:
&gt; 1. will (can) this also include right-click with mouse?
&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>758740</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Kroeger">rjkroege</who>
    <bug_when>2012-11-05 11:31:10 -0800</bug_when>
    <thetext>I like Sadrul&apos;s organizing principle: let the embedder decide what causes an action, let WebCore implement the action. In Chrome&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>869216</commentid>
    <comment_count>6</comment_count>
    <who name="Terry Anderson">tdanderson</who>
    <bug_when>2013-04-04 10:15:20 -0700</bug_when>
    <thetext>Created a duplicate of this bug for Blink at crbug.com/226492.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902200</commentid>
    <comment_count>7</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-29 15:19:59 -0700</bug_when>
    <thetext>Chrome / Blink bug mentioned following rationale to not go ahead with this change:

&quot;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.&quot;

Link - https://bugs.chromium.org/p/chromium/issues/detail?id=226492#c3

Something required by WebKit or we can mark this as &quot;RESOLVED LATER&quot; or &quot;RESOLVED WONTFIX&quot;? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902235</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-09-29 17:59:45 -0700</bug_when>
    <thetext>A refactoring discussion from 2012 isn&apos;t really relevant today.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>