Commit 17e0a8b9 authored by Rob Schonberger's avatar Rob Schonberger Committed by Commit Bot

s/Black/Deny/g in ui/events/ozone.

Bug: 1108637
Change-Id: I763b2fb13d03c85f716cdeeba70a5b16b96623fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318830Reviewed-by: default avatarMichael Spang <spang@chromium.org>
Commit-Queue: Rob Schonberger <robsc@chromium.org>
Auto-Submit: Rob Schonberger <robsc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792469}
parent e0c47628
......@@ -149,17 +149,17 @@ void AssignBitset(const unsigned long* src,
memset(&dst[src_len], 0, (dst_len - src_len) * sizeof(unsigned long));
}
bool IsBlacklistedAbsoluteMouseDevice(const input_id& id) {
bool IsDenylistedAbsoluteMouseDevice(const input_id& id) {
static constexpr struct {
uint16_t vid;
uint16_t pid;
} kUSBLegacyBlackListedDevices[] = {
} kUSBLegacyDenyListedDevices[] = {
{0x222a, 0x0001}, // ILITEK ILITEK-TP
};
for (size_t i = 0; i < base::size(kUSBLegacyBlackListedDevices); ++i) {
if (id.vendor == kUSBLegacyBlackListedDevices[i].vid &&
id.product == kUSBLegacyBlackListedDevices[i].pid) {
for (size_t i = 0; i < base::size(kUSBLegacyDenyListedDevices); ++i) {
if (id.vendor == kUSBLegacyDenyListedDevices[i].vid &&
id.product == kUSBLegacyDenyListedDevices[i].pid) {
return true;
}
}
......@@ -591,7 +591,7 @@ EventDeviceInfo::ProbeLegacyAbsoluteDevice() const {
// ABS_Z mitigation for extra device on some Elo devices.
if (HasKeyEvent(BTN_LEFT) && !HasAbsEvent(ABS_Z) &&
!IsBlacklistedAbsoluteMouseDevice(input_id_))
!IsDenylistedAbsoluteMouseDevice(input_id_))
return LegacyAbsoluteDeviceType::TOUCHSCREEN;
return LegacyAbsoluteDeviceType::NONE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment