Refactor ElasticOverscrollController methods to take ElementId [chromium/src : main]

0 views
Skip to first unread message

AI Code Reviewer (Gerrit)

unread,
Oct 15, 2025, 3:24:03 PM (5 days ago) Oct 15
to Free Debreuil, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cc-...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Free Debreuil

AI Code Reviewer added 2 comments

File third_party/blink/renderer/platform/widget/input/elastic_overscroll_controller.h
Line 65, Patchset 3 (Latest): const gfx::Vector2dF& event_delta,
AI Code Reviewer . unresolved

Blink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters. This function takes two boolean parameters (`enter_momentum`, `leave_momentum`). To improve readability at call sites, consider replacing them with a more descriptive type like an enum or `base::StrongAlias`.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

File third_party/blink/renderer/platform/widget/input/elastic_overscroll_controller_bezier.h
Line 33, Patchset 3 (Latest): gfx::Vector2d StretchAmountForTimeDelta(
AI Code Reviewer . unresolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter names `element_id` and `delta` are redundant given their types (`ElementId`, `TimeDelta`) and can be omitted from this function declaration.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Open in Gerrit

Related details

Attention is currently required from:
  • Free Debreuil
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: Ib6bf104cbac574aab49386cff807bb96ffc98140
Gerrit-Change-Number: 7042485
Gerrit-PatchSet: 3
Gerrit-Owner: Free Debreuil <freede...@google.com>
Gerrit-Reviewer: Free Debreuil <freede...@google.com>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-Attention: Free Debreuil <freede...@google.com>
Gerrit-Comment-Date: Wed, 15 Oct 2025 19:23:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Free Debreuil (Gerrit)

unread,
Oct 16, 2025, 2:17:10 PM (4 days ago) Oct 16
to Robert Flack, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cc-...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Robert Flack

Free Debreuil added 1 comment

File third_party/blink/renderer/platform/widget/input/elastic_overscroll_controller.h
Line 65, Patchset 3: const gfx::Vector2dF& event_delta,
AI Code Reviewer . resolved

Blink Style Guide: Prefer enums or StrongAliases to bare bools for function parameters. This function takes two boolean parameters (`enter_momentum`, `leave_momentum`). To improve readability at call sites, consider replacing them with a more descriptive type like an enum or `base::StrongAlias`.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Free Debreuil

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Robert Flack
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: Ib6bf104cbac574aab49386cff807bb96ffc98140
Gerrit-Change-Number: 7042485
Gerrit-PatchSet: 4
Gerrit-Owner: Free Debreuil <freede...@google.com>
Gerrit-Reviewer: Free Debreuil <freede...@google.com>
Gerrit-Reviewer: Robert Flack <fla...@chromium.org>
Gerrit-Attention: Robert Flack <fla...@chromium.org>
Gerrit-Comment-Date: Thu, 16 Oct 2025 18:17:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Free Debreuil (Gerrit)

unread,
Oct 16, 2025, 3:24:19 PM (4 days ago) Oct 16
to Robert Flack, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cc-...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Robert Flack

Free Debreuil added 1 comment

File third_party/blink/renderer/platform/widget/input/elastic_overscroll_controller_bezier.h
Line 33, Patchset 3: gfx::Vector2d StretchAmountForTimeDelta(
AI Code Reviewer . resolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter names `element_id` and `delta` are redundant given their types (`ElementId`, `TimeDelta`) and can be omitted from this function declaration.

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:


**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason

This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent).AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve.[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_

Free Debreuil

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Robert Flack
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: Ib6bf104cbac574aab49386cff807bb96ffc98140
    Gerrit-Change-Number: 7042485
    Gerrit-PatchSet: 5
    Gerrit-Owner: Free Debreuil <freede...@google.com>
    Gerrit-Reviewer: Free Debreuil <freede...@google.com>
    Gerrit-Reviewer: Robert Flack <fla...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-Attention: Robert Flack <fla...@chromium.org>
    Gerrit-Comment-Date: Thu, 16 Oct 2025 19:24:14 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Robert Flack (Gerrit)

    unread,
    Oct 17, 2025, 12:55:57 PM (3 days ago) Oct 17
    to Free Debreuil, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cc-...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Free Debreuil

    Robert Flack added 1 comment

    Patchset-level comments
    File-level comment, Patchset 6 (Latest):
    Robert Flack . unresolved

    I think you can roll this into the next change. If we never use the element id nor pass in the element id the change isn't really being properly exercised. If instead, we passed in the correct element id we could modify the code that sets the elastic overscroll amount on the tree to do so using the passed in element id rather than fetching the inner viewport node.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Free Debreuil
    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: Ib6bf104cbac574aab49386cff807bb96ffc98140
      Gerrit-Change-Number: 7042485
      Gerrit-PatchSet: 6
      Gerrit-Owner: Free Debreuil <freede...@google.com>
      Gerrit-Reviewer: Free Debreuil <freede...@google.com>
      Gerrit-Reviewer: Robert Flack <fla...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Attention: Free Debreuil <freede...@google.com>
      Gerrit-Comment-Date: Fri, 17 Oct 2025 16:55:51 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Free Debreuil (Gerrit)

      unread,
      4:24 PM (4 hours ago) 4:24 PM
      to Robert Flack, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cc-...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org

      Free Debreuil abandoned this change

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: abandon
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ib6bf104cbac574aab49386cff807bb96ffc98140
      Gerrit-Change-Number: 7042485
      Gerrit-PatchSet: 7
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Free Debreuil (Gerrit)

      unread,
      4:24 PM (4 hours ago) 4:24 PM
      to Robert Flack, AI Code Reviewer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, cc-...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org

      Free Debreuil added 1 comment

      Patchset-level comments
      File-level comment, Patchset 6:
      Robert Flack . resolved

      I think you can roll this into the next change. If we never use the element id nor pass in the element id the change isn't really being properly exercised. If instead, we passed in the correct element id we could modify the code that sets the elastic overscroll amount on the tree to do so using the passed in element id rather than fetching the inner viewport node.

      Free Debreuil

      Yes good point - I have rolled the changes into the next one. Will abandon this CL. Thanks!

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: Ib6bf104cbac574aab49386cff807bb96ffc98140
      Gerrit-Change-Number: 7042485
      Gerrit-PatchSet: 7
      Gerrit-Owner: Free Debreuil <freede...@google.com>
      Gerrit-Reviewer: Free Debreuil <freede...@google.com>
      Gerrit-Reviewer: Robert Flack <fla...@chromium.org>
      Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
      Gerrit-Comment-Date: Mon, 20 Oct 2025 20:24:50 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Robert Flack <fla...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages