Fix RenderWidgetHostViewAura last_pointer_type_ for mouse events [chromium/src : main]

0 views
Skip to first unread message

Olga Gerchikov (Gerrit)

unread,
Jun 19, 2026, 4:32:04 PM (13 days ago) Jun 19
to John An, Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez and John An

Olga Gerchikov added 2 comments

File content/browser/renderer_host/render_widget_host_view_aura.cc
Line 2480, Patchset 2 (Latest): last_pointer_type_ = event->pointer_details().pointer_type;
Olga Gerchikov . unresolved

Can you please confirm that VK is not displayed if Shell Handwriting is enabled and user does handwriting?

Line 2480, Patchset 2 (Latest): last_pointer_type_ = event->pointer_details().pointer_type;
Olga Gerchikov . unresolved

Just to be safe, should this change be gated behind a feature flag?

Open in Gerrit

Related details

Attention is currently required from:
  • Gaston Rodriguez
  • John An
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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
Gerrit-Change-Number: 7960377
Gerrit-PatchSet: 2
Gerrit-Owner: John An <jo...@microsoft.com>
Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
Gerrit-Reviewer: John An <jo...@microsoft.com>
Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Zhe Su <su...@chromium.org>
Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
Gerrit-Attention: John An <jo...@microsoft.com>
Gerrit-Comment-Date: Fri, 19 Jun 2026 20:31:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

John An (Gerrit)

unread,
Jun 19, 2026, 7:33:39 PM (12 days ago) Jun 19
to Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez and Olga Gerchikov

John An added 2 comments

File content/browser/renderer_host/render_widget_host_view_aura.cc
Line 2480, Patchset 2: last_pointer_type_ = event->pointer_details().pointer_type;
Olga Gerchikov . resolved

Can you please confirm that VK is not displayed if Shell Handwriting is enabled and user does handwriting?

John An

It won't be displayed for writing specifically. But for short strokes and taps it will. The VK is displayed for gesture short press and long press: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/web_frame_widget_impl.cc;drc=ee3cb7b7f68c3076293570f3b74d7f978bb6b899;l=4274

Fixing this bug does mean the VK will be displayed more frequently especially for tablet/keyboardless devices. This can be disabled in OS settings. This brings us into alignment with Android, but may warrant a separate discussion about desired behavior.

Line 2480, Patchset 2: last_pointer_type_ = event->pointer_details().pointer_type;
Olga Gerchikov . resolved

Just to be safe, should this change be gated behind a feature flag?

John An

Sure that's a good idea.

Open in Gerrit

Related details

Attention is currently required from:
  • Gaston Rodriguez
  • Olga Gerchikov
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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
    Gerrit-Change-Number: 7960377
    Gerrit-PatchSet: 3
    Gerrit-Owner: John An <jo...@microsoft.com>
    Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
    Gerrit-Reviewer: John An <jo...@microsoft.com>
    Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
    Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Comment-Date: Fri, 19 Jun 2026 23:33:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Olga Gerchikov <gerc...@microsoft.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    John An (Gerrit)

    unread,
    Jun 23, 2026, 7:28:02 PM (8 days ago) Jun 23
    to Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez and Olga Gerchikov

    John An added 1 comment

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    John An . resolved

    friendly ping

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Gaston Rodriguez
    • Olga Gerchikov
    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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
    Gerrit-Change-Number: 7960377
    Gerrit-PatchSet: 4
    Gerrit-Owner: John An <jo...@microsoft.com>
    Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
    Gerrit-Reviewer: John An <jo...@microsoft.com>
    Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
    Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-Comment-Date: Tue, 23 Jun 2026 23:27:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Olga Gerchikov (Gerrit)

    unread,
    Jun 23, 2026, 9:27:53 PM (8 days ago) Jun 23
    to John An, Gaston Rodriguez, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez and John An

    Olga Gerchikov voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Gaston Rodriguez
    • John An
    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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
    Gerrit-Change-Number: 7960377
    Gerrit-PatchSet: 4
    Gerrit-Owner: John An <jo...@microsoft.com>
    Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
    Gerrit-Reviewer: John An <jo...@microsoft.com>
    Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
    Gerrit-CC: Zhe Su <su...@chromium.org>
    Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
    Gerrit-Attention: John An <jo...@microsoft.com>
    Gerrit-Comment-Date: Wed, 24 Jun 2026 01:27:38 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Gaston Rodriguez (Gerrit)

    unread,
    Jun 24, 2026, 11:17:55 AM (8 days ago) Jun 24
    to John An, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 John An

    Gaston Rodriguez added 2 comments

    File content/browser/renderer_host/render_widget_host_view_aura.cc
    Line 2479, Patchset 4 (Latest): last_pointer_type_ =
    base::FeatureList::IsEnabled(features::kPenHoverPointerType)
    ? event->pointer_details().pointer_type
    : ui::EventPointerType::kMouse;
    Gaston Rodriguez . unresolved

    I quickly tested on Canary on my personal laptop (linux mint), and it seems like pen hovers just straight up move your mouse (there is no other pointer type like when you hover with a pen on Windows and it shows a little dot).

    With this in mind, I suggest making the feature flag visible to both Win and Linux. I don't think letting Linux see the feature flag will do any harm, it will make the code easier to read and if there is some Linux desktop environment that implements better pen handling, they'll get the fix too.

    Line 2485, Patchset 4 (Latest):#endif
    Gaston Rodriguez . unresolved

    nit (and features.h):
    ```suggestion
    #endif // BUILDFLAG(IS_WIN)
    ```

    Open in Gerrit

    Related details

    Attention is currently required from:
    • John An
    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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
      Gerrit-Change-Number: 7960377
      Gerrit-PatchSet: 4
      Gerrit-Owner: John An <jo...@microsoft.com>
      Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
      Gerrit-Reviewer: John An <jo...@microsoft.com>
      Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
      Gerrit-CC: Zhe Su <su...@chromium.org>
      Gerrit-Attention: John An <jo...@microsoft.com>
      Gerrit-Comment-Date: Wed, 24 Jun 2026 15:17:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Gaston Rodriguez (Gerrit)

      unread,
      Jun 24, 2026, 11:42:22 AM (8 days ago) Jun 24
      to John An, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 John An

      Gaston Rodriguez voted and added 1 comment

      Votes added by Gaston Rodriguez

      Code-Review+1

      1 comment

      File content/browser/renderer_host/render_widget_host_view_aura.cc
      Line 2479, Patchset 4 (Latest): last_pointer_type_ =
      base::FeatureList::IsEnabled(features::kPenHoverPointerType)
      ? event->pointer_details().pointer_type
      : ui::EventPointerType::kMouse;
      Gaston Rodriguez . resolved

      I quickly tested on Canary on my personal laptop (linux mint), and it seems like pen hovers just straight up move your mouse (there is no other pointer type like when you hover with a pen on Windows and it shows a little dot).

      With this in mind, I suggest making the feature flag visible to both Win and Linux. I don't think letting Linux see the feature flag will do any harm, it will make the code easier to read and if there is some Linux desktop environment that implements better pen handling, they'll get the fix too.

      Gaston Rodriguez

      I just double checked and it seems like VirtualKeyboard is not implemented on Linux (x11 or wayland), so this suggestion is moot. Perhaps consider adding a comment explaining why Windows differs from Linux.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • John An
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • requirement 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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
        Gerrit-Change-Number: 7960377
        Gerrit-PatchSet: 4
        Gerrit-Owner: John An <jo...@microsoft.com>
        Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
        Gerrit-Reviewer: John An <jo...@microsoft.com>
        Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
        Gerrit-CC: Zhe Su <su...@chromium.org>
        Gerrit-Attention: John An <jo...@microsoft.com>
        Gerrit-Comment-Date: Wed, 24 Jun 2026 15:42:10 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Gaston Rodriguez <gas...@microsoft.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        John An (Gerrit)

        unread,
        Jun 24, 2026, 3:48:19 PM (8 days ago) Jun 24
        to Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez and Olga Gerchikov

        John An added 2 comments

        File content/browser/renderer_host/render_widget_host_view_aura.cc
        Line 2479, Patchset 4: last_pointer_type_ =

        base::FeatureList::IsEnabled(features::kPenHoverPointerType)
        ? event->pointer_details().pointer_type
        : ui::EventPointerType::kMouse;
        Gaston Rodriguez . resolved

        I quickly tested on Canary on my personal laptop (linux mint), and it seems like pen hovers just straight up move your mouse (there is no other pointer type like when you hover with a pen on Windows and it shows a little dot).

        With this in mind, I suggest making the feature flag visible to both Win and Linux. I don't think letting Linux see the feature flag will do any harm, it will make the code easier to read and if there is some Linux desktop environment that implements better pen handling, they'll get the fix too.

        Gaston Rodriguez

        I just double checked and it seems like VirtualKeyboard is not implemented on Linux (x11 or wayland), so this suggestion is moot. Perhaps consider adding a comment explaining why Windows differs from Linux.

        John An

        It's probably righteous to change this on Linux as well.

        Line 2485, Patchset 4:#endif
        Gaston Rodriguez . resolved

        nit (and features.h):
        ```suggestion
        #endif // BUILDFLAG(IS_WIN)
        ```

        John An

        Obsolete porting change to Linux

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Gaston Rodriguez
        • Olga Gerchikov
        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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
          Gerrit-Change-Number: 7960377
          Gerrit-PatchSet: 5
          Gerrit-Owner: John An <jo...@microsoft.com>
          Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
          Gerrit-Reviewer: John An <jo...@microsoft.com>
          Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
          Gerrit-CC: Zhe Su <su...@chromium.org>
          Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
          Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
          Gerrit-Comment-Date: Wed, 24 Jun 2026 19:48:04 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Gaston Rodriguez <gas...@microsoft.com>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          John An (Gerrit)

          unread,
          Jun 24, 2026, 5:31:32 PM (7 days ago) Jun 24
          to Dave Tapuska, Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Dave Tapuska, Gaston Rodriguez, Nasko Oskov and Olga Gerchikov

          John An voted and added 2 comments

          Votes added by John An

          Commit-Queue+1

          2 comments

          Patchset-level comments
          File-level comment, Patchset 5 (Latest):
          John An . resolved

          Hi folks, PTAL or suggest a different owner. Appreciated!

          File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
          File-level comment, Patchset 5 (Latest):
          John An . unresolved

          Please fix this WARNING reported by ClangTidy: warning: building this file or its dependencies failed; no diagnostics will be i...

          warning: building this file or its dependencies failed; no diagnostics will be issued. When diagnosing, it's normal that the clang-tidy step is green. You need to click through the step output to find the actual error.

          (Lint observed on `linux-clang-tidy-rel`, but not on `android-clang-tidy-rel`)

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Dave Tapuska
          • Gaston Rodriguez
          • Nasko Oskov
          • Olga Gerchikov
          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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
            Gerrit-Change-Number: 7960377
            Gerrit-PatchSet: 5
            Gerrit-Owner: John An <jo...@microsoft.com>
            Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
            Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
            Gerrit-Reviewer: John An <jo...@microsoft.com>
            Gerrit-Reviewer: Nasko Oskov <na...@chromium.org>
            Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
            Gerrit-CC: Zhe Su <su...@chromium.org>
            Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
            Gerrit-Attention: Nasko Oskov <na...@chromium.org>
            Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
            Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
            Gerrit-Comment-Date: Wed, 24 Jun 2026 21:31:20 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Dave Tapuska (Gerrit)

            unread,
            Jun 24, 2026, 5:41:53 PM (7 days ago) Jun 24
            to John An, Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez, John An, Nasko Oskov and Olga Gerchikov

            Dave Tapuska added 1 comment

            File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
            Line 6830, Patchset 5 (Latest):// With kMouseEventPenPointerType enabled, genuine mouse events (not pen) must
            Dave Tapuska . unresolved

            Since these two tests are essentially the same. Can we not put them in an outher loop

            ie:
            ```
            for (ui::EventPointerType type : [ ui::EventPointerType::kPen, ui::EventType::kMouse] {
            ```

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Gaston Rodriguez
            • John An
            • Nasko Oskov
            • Olga Gerchikov
            Gerrit-Attention: John An <jo...@microsoft.com>
            Gerrit-Comment-Date: Wed, 24 Jun 2026 21:41:36 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Nasko Oskov (Gerrit)

            unread,
            Jun 24, 2026, 7:53:08 PM (7 days ago) Jun 24
            to John An, Dave Tapuska, Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez, John An and Olga Gerchikov

            Nasko Oskov added 1 comment

            Patchset-level comments
            Nasko Oskov . resolved

            dtapuska@ is an OWNER of all files already and better suited reviewer, so removing myself.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Gaston Rodriguez
            • John An
            • Olga Gerchikov
            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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
            Gerrit-Change-Number: 7960377
            Gerrit-PatchSet: 5
            Gerrit-Owner: John An <jo...@microsoft.com>
            Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
            Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
            Gerrit-Reviewer: John An <jo...@microsoft.com>
            Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
            Gerrit-CC: Zhe Su <su...@chromium.org>
            Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
            Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
            Gerrit-Attention: John An <jo...@microsoft.com>
            Gerrit-Comment-Date: Wed, 24 Jun 2026 23:52:42 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            John An (Gerrit)

            unread,
            Jun 24, 2026, 9:36:54 PM (7 days ago) Jun 24
            to Dave Tapuska, Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Dave Tapuska, Gaston Rodriguez and Olga Gerchikov

            John An added 1 comment

            File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
            Line 6830, Patchset 5:// With kMouseEventPenPointerType enabled, genuine mouse events (not pen) must
            Dave Tapuska . resolved

            Since these two tests are essentially the same. Can we not put them in an outher loop

            ie:
            ```
            for (ui::EventPointerType type : [ ui::EventPointerType::kPen, ui::EventType::kMouse] {
            ```

            John An

            Sure that's better.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Dave Tapuska
            • Gaston Rodriguez
            • Olga Gerchikov
            Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
            Gerrit-Comment-Date: Thu, 25 Jun 2026 01:36:39 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Dave Tapuska <dtap...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            John An (Gerrit)

            unread,
            Jun 24, 2026, 9:37:22 PM (7 days ago) Jun 24
            to Dave Tapuska, Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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

            John An added 1 comment

            File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

            Please fix this WARNING reported by ClangTidy: warning: building this file or its dependencies failed; no diagnostics will be i...

            warning: building this file or its dependencies failed; no diagnostics will be issued. When diagnosing, it's normal that the clang-tidy step is green. You need to click through the step output to find the actual error.

            (Lint observed on `linux-clang-tidy-rel`, but not on `android-clang-tidy-rel`)

            John An

            Ended up being a non issue

            Open in Gerrit

            Related details

            Attention set is empty
            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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
              Gerrit-Change-Number: 7960377
              Gerrit-PatchSet: 6
              Gerrit-Owner: John An <jo...@microsoft.com>
              Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
              Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
              Gerrit-Reviewer: John An <jo...@microsoft.com>
              Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
              Gerrit-CC: Zhe Su <su...@chromium.org>
              Gerrit-Comment-Date: Thu, 25 Jun 2026 01:37:10 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: John An <jo...@microsoft.com>
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Dave Tapuska (Gerrit)

              unread,
              Jun 25, 2026, 10:13:54 AM (7 days ago) Jun 25
              to John An, Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 John An

              Dave Tapuska voted Code-Review+1

              Code-Review+1
              Open in Gerrit

              Related details

              Attention is currently required from:
              • John An
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement 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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
              Gerrit-Change-Number: 7960377
              Gerrit-PatchSet: 6
              Gerrit-Owner: John An <jo...@microsoft.com>
              Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
              Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
              Gerrit-Reviewer: John An <jo...@microsoft.com>
              Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
              Gerrit-CC: Zhe Su <su...@chromium.org>
              Gerrit-Attention: John An <jo...@microsoft.com>
              Gerrit-Comment-Date: Thu, 25 Jun 2026 14:13:36 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              John An (Gerrit)

              unread,
              Jun 25, 2026, 12:32:35 PM (7 days ago) Jun 25
              to Dave Tapuska, Gaston Rodriguez, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Gaston Rodriguez and Olga Gerchikov

              John An added 1 comment

              Patchset-level comments
              File-level comment, Patchset 6 (Latest):
              John An . resolved

              Could I get another sign off for the later changes? I have owner approval, I need one more.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Gaston Rodriguez
              • Olga Gerchikov
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement 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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
              Gerrit-Change-Number: 7960377
              Gerrit-PatchSet: 6
              Gerrit-Owner: John An <jo...@microsoft.com>
              Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
              Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
              Gerrit-Reviewer: John An <jo...@microsoft.com>
              Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
              Gerrit-CC: Zhe Su <su...@chromium.org>
              Gerrit-Attention: Gaston Rodriguez <gas...@microsoft.com>
              Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
              Gerrit-Comment-Date: Thu, 25 Jun 2026 16:32:18 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Gaston Rodriguez (Gerrit)

              unread,
              Jun 25, 2026, 3:12:08 PM (7 days ago) Jun 25
              to John An, Dave Tapuska, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 John An and Olga Gerchikov

              Gaston Rodriguez voted and added 3 comments

              Votes added by Gaston Rodriguez

              Code-Review+1

              3 comments

              Patchset-level comments
              Gaston Rodriguez . resolved

              ping me on teams if you do any of my suggested changes and need another review.

              Commit Message
              Line 10, Patchset 6 (Latest):last_pointer_type_ to kMouse. However, on Windows, OnMouseEvent can be
              Gaston Rodriguez . unresolved

              nit:
              ```suggestion
              last_pointer_type_ to kMouse. However, OnMouseEvent can be
              ```

              File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
              Line 6815, Patchset 6 (Latest): for (ui::EventPointerType pointer_type :
              Gaston Rodriguez . unresolved

              You may have already considered this, but I'd suggest breaking these loops into testing params.

              Here we have 2 * 6 = 12 assertions. If one of them fails, we will lose coverage on all other eleven. I think the `SCOPED_TRACE` helps with messaging to see if any tests are failing, but I think that breaking all the assertions into their own tests would also help with reading logs.

              You can do a cross product of the params with gtest, the test would look something like (writing from memory, not apt for copypasting):
              ```
              class RenderWidgetHostViewAuraTestLastPointerType : testingWithParams<ui::EventPointerType, ui::EventType> {
              void SetUp() override {
              scoped_feature_list_.InitAndEnableFeature(features::kMouseEventPenPointerType);
              }
              base::test::ScopedFeatureList scoped_feature_list_;
              }
              TEST_P(RenderWidgetHostViewAuraTestLastPointerType , PenMouseEventsSetPointerType) {
              auto pointer_type = GetParam<0>();
              auto event_type = GetParam<1>();
              ui::MouseEvent mouse_event(
              type, gfx::Point(10, 10), gfx::Point(10, 10), ui::EventTimeForNow(),
              ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON,
              ui::PointerDetails(pointer_type, 0));
              parent_view_->OnMouseEvent(&mouse_event);
              EXPECT_EQ(parent_view_->GetLastPointerType(), pointer_type);
              }
              INSTANTIATE_TEST_SUITE_P("All",
              RenderWidgetHostViewAuraTestLastPointerType,
              testing::Combine(
              testing::Values({ui::EventPointerType::kPen, ui::EventPointerType::kMouse},
              testing::Values({ui::EventType::kMouseMoved, ui::EventType::kMousePressed,
              ui::EventType::kMouseDragged, ui::EventType::kMouseReleased,
              ui::EventType::kMouseEntered, ui::EventType::kMouseExited}))
              )
              );
              ```

              Maybe it's more code than one simple test is worth. Up to you

              Open in Gerrit

              Related details

              Attention is currently required from:
              • John An
              • Olga Gerchikov
              Submit Requirements:
                • requirement satisfiedCode-Coverage
                • requirement satisfiedCode-Owners
                • requirement satisfiedCode-Review
                • requirement is not satisfiedNo-Unresolved-Comments
                • requirement 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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
                Gerrit-Change-Number: 7960377
                Gerrit-PatchSet: 6
                Gerrit-Owner: John An <jo...@microsoft.com>
                Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
                Gerrit-Reviewer: John An <jo...@microsoft.com>
                Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
                Gerrit-CC: Zhe Su <su...@chromium.org>
                Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
                Gerrit-Attention: John An <jo...@microsoft.com>
                Gerrit-Comment-Date: Thu, 25 Jun 2026 19:11:54 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                John An (Gerrit)

                unread,
                Jun 25, 2026, 7:33:49 PM (6 days ago) Jun 25
                to Gaston Rodriguez, Dave Tapuska, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Olga Gerchikov

                John An added 2 comments

                Commit Message
                Line 10, Patchset 6:last_pointer_type_ to kMouse. However, on Windows, OnMouseEvent can be
                Gaston Rodriguez . resolved

                nit:
                ```suggestion
                last_pointer_type_ to kMouse. However, OnMouseEvent can be
                ```

                John An

                Done

                File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
                Line 6815, Patchset 6: for (ui::EventPointerType pointer_type :
                Gaston Rodriguez . resolved
                John An

                This is not an issue because EXPECT_EQ does not abort the function upon failure, ASSERT_EQ would. https://google.github.io/googletest/primer.html

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Olga Gerchikov
                Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement satisfiedCode-Owners
                  • requirement satisfiedCode-Review
                  • requirement 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: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
                  Gerrit-Change-Number: 7960377
                  Gerrit-PatchSet: 7
                  Gerrit-Owner: John An <jo...@microsoft.com>
                  Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                  Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
                  Gerrit-Reviewer: John An <jo...@microsoft.com>
                  Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
                  Gerrit-CC: Zhe Su <su...@chromium.org>
                  Gerrit-Attention: Olga Gerchikov <gerc...@microsoft.com>
                  Gerrit-Comment-Date: Thu, 25 Jun 2026 23:33:36 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  Comment-In-Reply-To: Gaston Rodriguez <gas...@microsoft.com>
                  satisfied_requirement
                  open
                  diffy

                  John An (Gerrit)

                  unread,
                  Jun 25, 2026, 7:33:53 PM (6 days ago) Jun 25
                  to Gaston Rodriguez, Dave Tapuska, Olga Gerchikov, Chromium LUCI CQ, chromium...@chromium.org, 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 Olga Gerchikov

                  John An voted Commit-Queue+2

                  Commit-Queue+2
                  Gerrit-Comment-Date: Thu, 25 Jun 2026 23:33:40 +0000
                  Gerrit-HasComments: No
                  Gerrit-Has-Labels: Yes
                  satisfied_requirement
                  open
                  diffy

                  Chromium LUCI CQ (Gerrit)

                  unread,
                  Jun 25, 2026, 7:46:49 PM (6 days ago) Jun 25
                  to John An, Gaston Rodriguez, Dave Tapuska, Olga Gerchikov, chromium...@chromium.org, 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

                  Chromium LUCI CQ submitted the change

                  Unreviewed changes

                  6 is the latest approved patch-set.
                  No files were changed between the latest approved patch-set and the submitted one.

                  Change information

                  Commit message:
                  Fix RenderWidgetHostViewAura last_pointer_type_ for mouse events

                  Currently RenderWidgetHostViewAura::OnMouseEvent unconditionally sets
                  last_pointer_type_ to kMouse. However OnMouseEvent can be triggered by
                  stylus hover. Namely, this can break showing virtual keyboard on
                  windows if last_pointer_type_ is kMouse when
                  VirtualKeyboardControllerWin::UpdateTextInputState is called. This
                  change makes it so last_pointer_type_ is recorded accurately for
                  non-mouse events.
                  Bug: 525093257
                  Change-Id: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
                  Reviewed-by: Dave Tapuska <dtap...@chromium.org>
                  Commit-Queue: John An <jo...@microsoft.com>
                  Reviewed-by: Gaston Rodriguez <gas...@microsoft.com>
                  Cr-Commit-Position: refs/heads/main@{#1652802}
                  Files:
                  • M content/browser/renderer_host/render_widget_host_view_aura.cc
                  • M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
                  • M content/common/features.cc
                  • M content/common/features.h
                  Change size: S
                  Delta: 4 files changed, 39 insertions(+), 1 deletion(-)
                  Branch: refs/heads/main
                  Submit Requirements:
                  • requirement satisfiedCode-Review: +1 by Dave Tapuska, +1 by Gaston Rodriguez
                  Open in Gerrit
                  Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
                  Gerrit-MessageType: merged
                  Gerrit-Project: chromium/src
                  Gerrit-Branch: main
                  Gerrit-Change-Id: I89f3dca1f58dd45fa09a6dce545819d50cbd58b7
                  Gerrit-Change-Number: 7960377
                  Gerrit-PatchSet: 8
                  Gerrit-Owner: John An <jo...@microsoft.com>
                  Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                  Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                  Gerrit-Reviewer: Gaston Rodriguez <gas...@microsoft.com>
                  Gerrit-Reviewer: John An <jo...@microsoft.com>
                  Gerrit-Reviewer: Olga Gerchikov <gerc...@microsoft.com>
                  open
                  diffy
                  satisfied_requirement
                  Reply all
                  Reply to author
                  Forward
                  0 new messages