Ensure non-null Java object in MotionEventAndroid
The `source` of a MotionEvent was previously passed as an argument
through the JNI boundary. This is unnecessary as it can be retrieved
from the MotionEvent object itself.
This commit modifies the JNI to pass the `MotionEvent` object to the
`MotionEventAndroid` constructor, allowing the `source` to be queried
directly from the event. This simplifies the JNI and removes redundant
arguments.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
ui/events lgtm
can you also add a reviewer from ui/android/OWNERS for these files?
DCHECK(event);optional: You may leave it, but CHECK is now recommended over DCHECK.
env, /*downTime*/ 0, /*eventTime*/ 0, /*action*/ 0, /*x*/ 0, /*y*/ 0,nit:
/*downTime=*/0, /*eventTime=*/0, etc.
same for the rest of the file.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
optional: You may leave it, but CHECK is now recommended over DCHECK.
Let me make the change as a follow up.
env, /*downTime*/ 0, /*eventTime*/ 0, /*action*/ 0, /*x*/ 0, /*y*/ 0,nit:
/*downTime=*/0, /*eventTime=*/0, etc.same for the rest of the file.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +0 |
public_deps += [Is this change required? The only additions for the header `ui/events/motionevent_jni_headers/MotionEvent_jni.h` I see in this patch are in test files which can add a dependency directly on `//ui/events:motionevent_jni_headers"` similar to [this](https://source.chromium.org/chromium/chromium/src/+/main:components/viz/service/BUILD.gn;l=740;drc=007205e3c3b1a6381b2f04409f811d2d2fbc4e82).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
Is this change required? The only additions for the header `ui/events/motionevent_jni_headers/MotionEvent_jni.h` I see in this patch are in test files which can add a dependency directly on `//ui/events:motionevent_jni_headers"` similar to [this](https://source.chromium.org/chromium/chromium/src/+/main:components/viz/service/BUILD.gn;l=740;drc=007205e3c3b1a6381b2f04409f811d2d2fbc4e82).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Ensure non-null Java object in MotionEventAndroid
The `source` of a MotionEvent was previously passed as an argument
through the JNI boundary. This is unnecessary as it can be retrieved
from the MotionEvent object itself.
This commit modifies the JNI to pass the `MotionEvent` object to the
`MotionEventAndroid` constructor, allowing the `source` to be queried
directly from the event. This simplifies the JNI and removes redundant
arguments.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |