New issue
Advanced search Search tips

Issue 736253 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug

Blocking:
issue 680330



Sign in to add a comment

gpuBenchmarking.pointerActionSequence() should generate click_count > 1

Project Member Reported by yosin@chromium.org, Jun 23 2017

Issue description

pointerActionSequence() always send MouseDown event with click_count=1 for "pointerDown".
pointerActionSequence() should send click_count=2 for double click and click_count=3 for
triple-click and more.

I could not find click count handling in "ui/events" in "cotnent/"
- int MouseEvent::GetRepeatCount(const MouseEvent& event)  in "ui/events/event.cc"
- WebMouseEventBuilder::Build() in "ui/events/blink/web_input_event_builders_win.cc"

It seems SyntheticMouseDriver::Press() set click_count to 1 and no code in content/
increases it.

Sample from http://crrev.com/2955543003
    chrome.gpuBenchmarking.pointerActionSequence(
      [{
        source: 'mouse',
        actions: [
          {
            name: 'pointerDown',
            button: 'left',
            x: clickX,
            y: clickY,
          },
          {name: 'pointerUp'},
          {name: 'pause'},
          {
            name: 'pointerDown',
            button: 'left',
            x: clickX,
            y: clickY,
          },
          {name: 'pointerUp'},
        ],
       }], resolve);
 

Comment 1 by yosin@chromium.org, Jun 23 2017

Blocking: 680330

Comment 2 by lanwei@chromium.org, Jun 26 2017

Because the timing issue that the double click or triple click requires happening in a certain time, we now do not support them, that is why, the click count is always 1. We will implement them in the near future. Do you have some testings which requires double click action?
Cc: nzolghadr@chromium.org lanwei@chromium.org
 Issue 716171  has been merged into this issue.

Sign in to add a comment