Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Integrate GV's new InputResultDetail #9614

Closed
Mugurell opened this issue Feb 4, 2021 · 3 comments · Fixed by #9855
Closed

Integrate GV's new InputResultDetail #9614

Mugurell opened this issue Feb 4, 2021 · 3 comments · Fixed by #9855
Assignees
Labels
E5 Estimation points: 5 <engine-gecko> Component: browser-engine-gecko needs:gv To implement/fix this we need a new API in GeckoView <toolbar> Components: browser-toolbar, concept-toolbar
Milestone

Comments

@Mugurell
Copy link
Contributor

Mugurell commented Feb 4, 2021

Currently the inputResult from GeckoView about how a user touch was handed is cached here and then used for knowing how to animate the toolbars and the pull to refresh throbber.

https://bugzilla.mozilla.org/show_bug.cgi?id=1678505 will expose a separate InputResultDetail that will expand the low set of values InputResult offered allowing for a better UX of the dynamic toolbars and pull to refresh feature and so fixing a few of the bugs that we have in the process.

┆Issue is synchronized with this Jira Task

@Mugurell Mugurell added <toolbar> Components: browser-toolbar, concept-toolbar needs:gv To implement/fix this we need a new API in GeckoView labels Feb 4, 2021
@Mugurell Mugurell added the E5 Estimation points: 5 label Feb 24, 2021
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 5, 2021
Suppress a new deprecation until we'll migrate to the new API in
mozilla-mobile#9614
@pocmo pocmo added the <engine-gecko> Component: browser-engine-gecko label Mar 8, 2021
mergify bot pushed a commit that referenced this issue Mar 8, 2021
Suppress a new deprecation until we'll migrate to the new API in
#9614
@gabrielluong
Copy link
Member

@mcarare can this be closed now?

@mcarare
Copy link
Contributor

mcarare commented Mar 15, 2021

@gabrielluong I think @Mugurell still has some investigations to do, regarding the use of the additional details the new API provides.

@Mugurell
Copy link
Contributor Author

This is not yet started but planning to work on it this week after making a plan for the changes in #9772.

Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 24, 2021
This will serve the following purposes:
- wrapper for all the new data from GeckoView's onTouchEventForDetailResult
- filters out values not in range (eg: GV's INPUT_RESULT_IGNORED)
- controls how the data can be updated and offers clear APIs for querying this
data without needing to know about the implementation specifics.
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 24, 2021
This will be replaced by the new InputResultDetail.
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 24, 2021
Both NestedGeckoView and NestedWebView will now return an InputResultDetail
wrapping many new details about how a touch event will be handled.

NestedGeckoView's InputResultDetail will be used to more accurately decide when
to animate the toolbar or start the pull to refresh feature.

NestedWebView's InputResultDetail will only have details about if it will
handle the touch or not. With all the other being unknown the dynamic toolbar
or pull to refresh features will not work.
@Mugurell Mugurell self-assigned this Mar 25, 2021
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 26, 2021
This will serve the following purposes:
- wrapper for all the new data from GeckoView's onTouchEventForDetailResult
- filters out values not in range (eg: GV's INPUT_RESULT_IGNORED)
- controls how the data can be updated and offers clear APIs for querying this
data without needing to know about the implementation specifics.
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 26, 2021
This will be replaced by the new InputResultDetail.
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 26, 2021
Both NestedGeckoView and NestedWebView will now return an InputResultDetail
wrapping many new details about how a touch event will be handled.

NestedGeckoView's InputResultDetail will be used to more accurately decide when
to animate the toolbar or start the pull to refresh feature.

NestedWebView's InputResultDetail will only have details about if it will
handle the touch or not. With all the other being unknown the dynamic toolbar
or pull to refresh features will not work.
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 30, 2021
This will serve the following purposes:
- wrapper for all the new data from GeckoView's onTouchEventForDetailResult
- filters out values not in range (eg: GV's INPUT_RESULT_IGNORED)
- controls how the data can be updated and offers clear APIs for querying this
data without needing to know about the implementation specifics.
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 30, 2021
This will be replaced by the new InputResultDetail.
Mugurell added a commit to Mugurell/android-components that referenced this issue Mar 30, 2021
Both NestedGeckoView and NestedWebView will now return an InputResultDetail
wrapping many new details about how a touch event will be handled.

NestedGeckoView's InputResultDetail will be used to more accurately decide when
to animate the toolbar or start the pull to refresh feature.

NestedWebView's InputResultDetail will only have details about if it will
handle the touch or not. With all the other being unknown the dynamic toolbar
or pull to refresh features will not work.
@mergify mergify bot closed this as completed in b4f0f19 Mar 30, 2021
mergify bot pushed a commit that referenced this issue Mar 30, 2021
This will be replaced by the new InputResultDetail.
mergify bot pushed a commit that referenced this issue Mar 30, 2021
Both NestedGeckoView and NestedWebView will now return an InputResultDetail
wrapping many new details about how a touch event will be handled.

NestedGeckoView's InputResultDetail will be used to more accurately decide when
to animate the toolbar or start the pull to refresh feature.

NestedWebView's InputResultDetail will only have details about if it will
handle the touch or not. With all the other being unknown the dynamic toolbar
or pull to refresh features will not work.
@gabrielluong gabrielluong added this to the 75.0.0 milestone Mar 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
E5 Estimation points: 5 <engine-gecko> Component: browser-engine-gecko needs:gv To implement/fix this we need a new API in GeckoView <toolbar> Components: browser-toolbar, concept-toolbar
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants