Closed Bug 1674694 Opened 4 years ago Closed 4 years ago

Change APZEventResult::mHandledByRootApzc to Maybe<APZHandledResult> from Maybe<bool>

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(3 files, 1 obsolete file)

In bug 1663000 we are going to introduce an enum class named APZHandledResult representing tri-state a) the event will be handled in the root APZC, b) the event will not be handled in a non root APZC, c) the event will not be handled in any APZC, and use them for deferred answer cases, but in theory it can also be used for non-deferred cases.

Assignee: nobody → hikezoe.birchill
Status: NEW → ASSIGNED

In the case of nsEventStatus_eConsumeNoDefault, we don't want to do default
processing in browser UIs, so we should never return INPUT_RESULT_HANDLED.

Note that in the current code path, we never set mHandledByRootApzc in
ReceiveInputEvent() in the case of nsEventStatus_eConsumeNoDefault, as far as I
can tell.

Depends on D96331

Attachment #9186528 - Attachment description: Bug 1674694 - Return INPUT_RESULT_HANDLED_CONTENT for nsEventStatus_eConsumeNoDefault case. r?botond → Bug 1674694 - Use ConvertAPZHandledResult nsEventStatus_eConsumeNoDefault case. r?botond

I am running into a moz-phab issue (bug 1674310), so I had to create a new review request unfortunately. I am sorry, Botond.

Attachment #9186529 - Attachment is obsolete: true
Pushed by hikezoe.birchill@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5e275c31e9f4
Change APZEventResult::mHandledByRootApzc to Maybe<APZHandledResult>. r=botond
https://hg.mozilla.org/integration/autoland/rev/a2f0dae16c37
Use ConvertAPZHandledResult nsEventStatus_eConsumeNoDefault case. r=botond,geckoview-reviewers,agi
https://hg.mozilla.org/integration/autoland/rev/079ac6ad6133
Use ConvertAPZHandledResult to convert mHandledByRootApzc for motion event cases. r=botond,geckoview-reviewers,agi
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
Regressions: 1676814
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: