Hide mouse pointer while typing on Windows [chromium/src : main]

0 views
Skip to first unread message

Ashish Kumar (Gerrit)

unread,
Jun 18, 2026, 2:13:18 AM (12 days ago) Jun 18
to Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
Attention needed from Ashish Kumar

Message from Ashish Kumar

Set Ready For Review

Open in Gerrit

Related details

Attention is currently required from:
  • Ashish Kumar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
Gerrit-Change-Number: 7916752
Gerrit-PatchSet: 9
Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
Gerrit-CC: Zhe Su <su...@chromium.org>
Gerrit-Attention: Ashish Kumar <ashi...@microsoft.com>
Gerrit-Comment-Date: Thu, 18 Jun 2026 06:12:55 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Rohan Raja (Gerrit)

unread,
Jun 23, 2026, 12:06:17 AM (7 days ago) Jun 23
to Ashish Kumar, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
Attention needed from Ashish Kumar

Rohan Raja added 2 comments

File ui/wm/core/cursor_manager.cc
Line 128, Patchset 9 (Latest): gfx::SingletonHwnd::GetInstance()->RegisterCallback(base::BindRepeating(
Rohan Raja . unresolved

Shouldn't we unregister the callback upon destruction ?

Line 333, Patchset 9 (Latest): if (event.IsAltDown() || event.IsControlDown() || event.IsCommandDown()) {
Rohan Raja . unresolved

Isn't Ctrl+V action valid for hiding cursor? It can trigger editing actions, the cursor might obstruct pasted text content. Same for <Tab> key as well, it might lead to text editing in cases like textarea.

Open in Gerrit

Related details

Attention is currently required from:
  • Ashish Kumar
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
    Gerrit-Change-Number: 7916752
    Gerrit-PatchSet: 9
    Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Comment-Date: Tue, 23 Jun 2026 04:05:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ashish Kumar (Gerrit)

    unread,
    Jun 23, 2026, 8:23:34 AM (7 days ago) Jun 23
    to Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
    Attention needed from Rohan Raja

    Ashish Kumar added 2 comments

    File ui/wm/core/cursor_manager.cc
    Line 128, Patchset 9: gfx::SingletonHwnd::GetInstance()->RegisterCallback(base::BindRepeating(
    Rohan Raja . unresolved

    Shouldn't we unregister the callback upon destruction ?

    Ashish Kumar

    I think no explicit unregister is needed. `base::CallbackListSubscription` is stored in the setting_change_subscription_ member and it's an RAII handle, its destructor removes the callback from the list, so it is automatically unregistered when the `CursorManager` is destroyed.

    Line 333, Patchset 9: if (event.IsAltDown() || event.IsControlDown() || event.IsCommandDown()) {
    Rohan Raja . resolved

    Isn't Ctrl+V action valid for hiding cursor? It can trigger editing actions, the cursor might obstruct pasted text content. Same for <Tab> key as well, it might lead to text editing in cases like textarea.

    Ashish Kumar

    I have removed the TAB key check.
    For CTRL+V, the trigger point here is typing not editing actions in general. So, Ctrl+V intentionally doesn't hide the cursor here. This aligns with the behavior with other platforms and also with native editing apps on Windows like notepad and MS Word.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Rohan Raja
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
    Gerrit-Change-Number: 7916752
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Comment-Date: Tue, 23 Jun 2026 12:22:55 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Rohan Raja <ror...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mitsuru Oshima (Gerrit)

    unread,
    Jun 26, 2026, 7:08:06 PM (4 days ago) Jun 26
    to Ashish Kumar, Dan Clark, Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
    Attention needed from Ashish Kumar, Dan Clark and Rohan Raja

    Mitsuru Oshima added 1 comment

    File ui/wm/core/cursor_manager.cc
    Line 354, Patchset 10 (Latest): return client && client->ShouldHideCursorOnTyping() &&
    Mitsuru Oshima . unresolved

    I thought just checking TextInputClient is enough. (and this will disable
    this behavior on native UI). Can you explain why you want to do this only in web contents?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ashish Kumar
    • Dan Clark
    • Rohan Raja
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
    Gerrit-Change-Number: 7916752
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
    Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Attention: Dan Clark <dan...@microsoft.com>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Comment-Date: Fri, 26 Jun 2026 23:07:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ashish Kumar (Gerrit)

    unread,
    Jun 29, 2026, 2:18:17 AM (yesterday) Jun 29
    to Mitsuru Oshima, Dan Clark, Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
    Attention needed from Dan Clark, Mitsuru Oshima and Rohan Raja

    Ashish Kumar added 2 comments

    File ui/wm/core/cursor_manager.cc
    Line 128, Patchset 9: gfx::SingletonHwnd::GetInstance()->RegisterCallback(base::BindRepeating(
    Rohan Raja . resolved

    Shouldn't we unregister the callback upon destruction ?

    Ashish Kumar

    I think no explicit unregister is needed. `base::CallbackListSubscription` is stored in the setting_change_subscription_ member and it's an RAII handle, its destructor removes the callback from the list, so it is automatically unregistered when the `CursorManager` is destroyed.

    Ashish Kumar

    Resolving.

    Line 354, Patchset 10 (Latest): return client && client->ShouldHideCursorOnTyping() &&
    Mitsuru Oshima . unresolved

    I thought just checking TextInputClient is enough. (and this will disable
    this behavior on native UI). Can you explain why you want to do this only in web contents?

    Ashish Kumar

    The client based opt in/out control can help in cases for some browser views where hiding does not make much sense (e.g. The find bar view).
    This CL is intentionally scoped to web contents; the browser views will be handled in a follow-up once I've gone through them in more detail to decide which should opt in.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dan Clark
    • Mitsuru Oshima
    • Rohan Raja
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
    Gerrit-Change-Number: 7916752
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
    Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Dan Clark <dan...@microsoft.com>
    Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Comment-Date: Mon, 29 Jun 2026 06:17:49 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Ashish Kumar <ashi...@microsoft.com>
    Comment-In-Reply-To: Mitsuru Oshima <osh...@chromium.org>
    Comment-In-Reply-To: Rohan Raja <ror...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mitsuru Oshima (Gerrit)

    unread,
    Jun 29, 2026, 2:41:34 AM (yesterday) Jun 29
    to Ashish Kumar, Dan Clark, Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
    Attention needed from Ashish Kumar, Dan Clark and Rohan Raja

    Mitsuru Oshima added 1 comment

    File ui/wm/core/cursor_manager.cc
    Line 354, Patchset 10 (Latest): return client && client->ShouldHideCursorOnTyping() &&
    Mitsuru Oshima . unresolved

    I thought just checking TextInputClient is enough. (and this will disable
    this behavior on native UI). Can you explain why you want to do this only in web contents?

    Ashish Kumar

    The client based opt in/out control can help in cases for some browser views where hiding does not make much sense (e.g. The find bar view).
    This CL is intentionally scoped to web contents; the browser views will be handled in a follow-up once I've gone through them in more detail to decide which should opt in.

    Mitsuru Oshima

    >The find bar view)

    Can you elaborate why it doesn't make much sense? (e.g. CrOS does this on all text fields, including omnibox). What if UI implementation is changed to use WebUI?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ashish Kumar
    • Dan Clark
    • Rohan Raja
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
    Gerrit-Change-Number: 7916752
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
    Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Attention: Dan Clark <dan...@microsoft.com>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Comment-Date: Mon, 29 Jun 2026 06:41:20 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ashish Kumar (Gerrit)

    unread,
    Jun 29, 2026, 3:39:26 AM (yesterday) Jun 29
    to Mitsuru Oshima, Dan Clark, Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
    Attention needed from Dan Clark, Mitsuru Oshima and Rohan Raja

    Ashish Kumar added 1 comment

    File ui/wm/core/cursor_manager.cc
    Line 354, Patchset 10 (Latest): return client && client->ShouldHideCursorOnTyping() &&
    Mitsuru Oshima . unresolved

    I thought just checking TextInputClient is enough. (and this will disable
    this behavior on native UI). Can you explain why you want to do this only in web contents?

    Ashish Kumar

    The client based opt in/out control can help in cases for some browser views where hiding does not make much sense (e.g. The find bar view).
    This CL is intentionally scoped to web contents; the browser views will be handled in a follow-up once I've gone through them in more detail to decide which should opt in.

    Mitsuru Oshima

    >The find bar view)

    Can you elaborate why it doesn't make much sense? (e.g. CrOS does this on all text fields, including omnibox). What if UI implementation is changed to use WebUI?

    Ashish Kumar

    I think the users usually click next/previous between queries while typing in the find bar. I noticed the same behavior of not hiding the pointer in the Notepad native app and Firefox also. That said, even hiding in the find bar would be workable since the cursor reappears on mouse move, so I don't have a strong opinion either way and a WebUI-based view would inherit this hiding behavior automatically.
    Since I'm not fully aware of all the browser views, I wanted to proceed in two steps. But if you'd prefer default hide-everywhere, I'm happy to make the changes. Please let me know your thoughts.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dan Clark
    • Mitsuru Oshima
    • Rohan Raja
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
    Gerrit-Change-Number: 7916752
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
    Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Dan Clark <dan...@microsoft.com>
    Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Comment-Date: Mon, 29 Jun 2026 07:38:57 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mitsuru Oshima (Gerrit)

    unread,
    Jun 29, 2026, 12:46:37 PM (22 hours ago) Jun 29
    to Ashish Kumar, Dan Clark, Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
    Attention needed from Ashish Kumar, Dan Clark and Rohan Raja

    Mitsuru Oshima added 1 comment

    File ui/wm/core/cursor_manager.cc
    Line 354, Patchset 10 (Latest): return client && client->ShouldHideCursorOnTyping() &&
    Mitsuru Oshima . unresolved

    I thought just checking TextInputClient is enough. (and this will disable
    this behavior on native UI). Can you explain why you want to do this only in web contents?

    Ashish Kumar

    The client based opt in/out control can help in cases for some browser views where hiding does not make much sense (e.g. The find bar view).
    This CL is intentionally scoped to web contents; the browser views will be handled in a follow-up once I've gone through them in more detail to decide which should opt in.

    Mitsuru Oshima

    >The find bar view)

    Can you elaborate why it doesn't make much sense? (e.g. CrOS does this on all text fields, including omnibox). What if UI implementation is changed to use WebUI?

    Ashish Kumar

    I think the users usually click next/previous between queries while typing in the find bar. I noticed the same behavior of not hiding the pointer in the Notepad native app and Firefox also. That said, even hiding in the find bar would be workable since the cursor reappears on mouse move, so I don't have a strong opinion either way and a WebUI-based view would inherit this hiding behavior automatically.
    Since I'm not fully aware of all the browser views, I wanted to proceed in two steps. But if you'd prefer default hide-everywhere, I'm happy to make the changes. Please let me know your thoughts.

    Mitsuru Oshima

    Editing does various things including select all and replace, cut&paste then edit, etc, so my recommendation is simply hide it.

    I'm ok If you want to do it in a separate CL, although in that case, you'll end up removing the utility method you just added, so my recommendation is still just do it for all fields. (plus, there will be no inconsistency between webui and native. (e.g. tab search, side panels are webui)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Ashish Kumar
    • Dan Clark
    • Rohan Raja
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
    Gerrit-Change-Number: 7916752
    Gerrit-PatchSet: 10
    Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
    Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
    Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
    Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Ashish Kumar <ashi...@microsoft.com>
    Gerrit-Attention: Dan Clark <dan...@microsoft.com>
    Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
    Gerrit-Comment-Date: Mon, 29 Jun 2026 16:46:22 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Ashish Kumar (Gerrit)

    unread,
    4:53 AM (6 hours ago) 4:53 AM
    to Mitsuru Oshima, Dan Clark, Rohan Raja, Chromium LUCI CQ, chromium...@chromium.org, Henrique Ferreiro, Zhe Su, alexmo...@chromium.org, creis...@chromium.org, jbauma...@chromium.org, keithle...@chromium.org, navigation...@chromium.org, nona+...@chromium.org, shuche...@chromium.org, tranbaod...@chromium.org, yhanad...@chromium.org
    Attention needed from Dan Clark, Mitsuru Oshima and Rohan Raja

    Ashish Kumar added 1 comment

    File ui/wm/core/cursor_manager.cc
    Line 354, Patchset 10: return client && client->ShouldHideCursorOnTyping() &&
    Mitsuru Oshima . resolved

    I thought just checking TextInputClient is enough. (and this will disable
    this behavior on native UI). Can you explain why you want to do this only in web contents?

    Ashish Kumar

    The client based opt in/out control can help in cases for some browser views where hiding does not make much sense (e.g. The find bar view).
    This CL is intentionally scoped to web contents; the browser views will be handled in a follow-up once I've gone through them in more detail to decide which should opt in.

    Mitsuru Oshima

    >The find bar view)

    Can you elaborate why it doesn't make much sense? (e.g. CrOS does this on all text fields, including omnibox). What if UI implementation is changed to use WebUI?

    Ashish Kumar

    I think the users usually click next/previous between queries while typing in the find bar. I noticed the same behavior of not hiding the pointer in the Notepad native app and Firefox also. That said, even hiding in the find bar would be workable since the cursor reappears on mouse move, so I don't have a strong opinion either way and a WebUI-based view would inherit this hiding behavior automatically.
    Since I'm not fully aware of all the browser views, I wanted to proceed in two steps. But if you'd prefer default hide-everywhere, I'm happy to make the changes. Please let me know your thoughts.

    Mitsuru Oshima

    Editing does various things including select all and replace, cut&paste then edit, etc, so my recommendation is simply hide it.

    I'm ok If you want to do it in a separate CL, although in that case, you'll end up removing the utility method you just added, so my recommendation is still just do it for all fields. (plus, there will be no inconsistency between webui and native. (e.g. tab search, side panels are webui)

    Ashish Kumar

    Got it. Updated to hide for all for consistency. Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dan Clark
    • Mitsuru Oshima
    • Rohan Raja
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I3ca78f5cb1fa5bbce51c6d1d8f072442bfed857e
      Gerrit-Change-Number: 7916752
      Gerrit-PatchSet: 12
      Gerrit-Owner: Ashish Kumar <ashi...@microsoft.com>
      Gerrit-Reviewer: Ashish Kumar <ashi...@microsoft.com>
      Gerrit-Reviewer: Dan Clark <dan...@microsoft.com>
      Gerrit-Reviewer: Mitsuru Oshima <osh...@chromium.org>
      Gerrit-Reviewer: Rohan Raja <ror...@microsoft.com>
      Gerrit-CC: Henrique Ferreiro <hfer...@igalia.com>
      Gerrit-CC: Zhe Su <su...@chromium.org>
      Gerrit-Attention: Dan Clark <dan...@microsoft.com>
      Gerrit-Attention: Mitsuru Oshima <osh...@chromium.org>
      Gerrit-Attention: Rohan Raja <ror...@microsoft.com>
      Gerrit-Comment-Date: Tue, 30 Jun 2026 08:52:39 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages