Closed Bug 1149861 Opened 5 years ago Closed 5 years ago

Implement getMaxTouchPoints for Android

Categories

(Core :: Widget: Android, defect)

All
Android
defect
Not set

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: m_kato, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

(Whiteboard: [parity-chrome])

Attachments

(1 file)

Although we disable dom.w3c_pointer_events.enabled by default, Chrome for Android already has this method.
Assignee: nobody → m_kato
Attachment #8586558 - Flags: review?(snorp)
Comment on attachment 8586558 [details] [diff] [review]
add GetMaxTouchPoints

Review of attachment 8586558 [details] [diff] [review]:
-----------------------------------------------------------------

I would love it if we could avoid adding another method to GeckoAppShell for this, but I guess it's fine for now.

::: mobile/android/base/GeckoAppShell.java
@@ +2678,5 @@
> +
> +    @WrapElementForJNI
> +    static int getMaxTouchPoints() {
> +        PackageManager pm = getContext().getPackageManager();
> +        if (pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND)) {

lol
Attachment #8586558 - Flags: review?(snorp) → review+
We should wait any changes for this?
Flags: needinfo?(m_kato)
(In reply to Maksim Lebedev from comment #3)
> We should wait any changes for this?

Ah, I forget landing this. sorry
Flags: needinfo?(m_kato)
https://hg.mozilla.org/mozilla-central/rev/91f9679c4665
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.