[AtMemory][Android] Move to half height when loading [chromium/src : main]

0 views
Skip to first unread message

Atalyk Akash (Gerrit)

unread,
Jul 21, 2026, 7:40:15 AM (3 days ago) Jul 21
to Timofey Chudakov, Piotr Kotynia, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Piotr Kotynia and Timofey Chudakov

Atalyk Akash voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Piotr Kotynia
  • Timofey Chudakov
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: Ie3668a34de540ea496afd3e48b07ee5ac1c51e00
Gerrit-Change-Number: 8126020
Gerrit-PatchSet: 1
Gerrit-Owner: Atalyk Akash <ata...@google.com>
Gerrit-Reviewer: Atalyk Akash <ata...@google.com>
Gerrit-Reviewer: Piotr Kotynia <piotrk...@google.com>
Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
Gerrit-Attention: Piotr Kotynia <piotrk...@google.com>
Gerrit-Comment-Date: Tue, 21 Jul 2026 11:39:54 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Piotr Kotynia (Gerrit)

unread,
Jul 21, 2026, 9:41:24 AM (3 days ago) Jul 21
to Atalyk Akash, Timofey Chudakov, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Atalyk Akash and Timofey Chudakov

Piotr Kotynia added 2 comments

File chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetCoordinator.java
Line 100, Patchset 1 (Latest): if (mContent.getContentView().isAttachedToWindow()) {
mContent.getContentView()
.post(() -> mBottomSheetController.expandSheet(/* animate= */ true));
} else {
mBottomSheetController.expandSheet(/* animate= */ true);
}
Piotr Kotynia . unresolved

could you add a short comment what is this logic doing?

File chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetMediator.java
Line 230, Patchset 1 (Latest): mDelegate.requestExpandSheet(/* expandInHalfHeight= */ true);
Piotr Kotynia . unresolved

why do we want to expain to half in this case?

Open in Gerrit

Related details

Attention is currently required from:
  • Atalyk Akash
  • Timofey Chudakov
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: Ie3668a34de540ea496afd3e48b07ee5ac1c51e00
    Gerrit-Change-Number: 8126020
    Gerrit-PatchSet: 1
    Gerrit-Owner: Atalyk Akash <ata...@google.com>
    Gerrit-Reviewer: Atalyk Akash <ata...@google.com>
    Gerrit-Reviewer: Piotr Kotynia <piotrk...@google.com>
    Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
    Gerrit-Attention: Timofey Chudakov <tchu...@google.com>
    Gerrit-Attention: Atalyk Akash <ata...@google.com>
    Gerrit-Comment-Date: Tue, 21 Jul 2026 13:41:04 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Atalyk Akash (Gerrit)

    unread,
    Jul 21, 2026, 10:19:12 AM (3 days ago) Jul 21
    to Timofey Chudakov, Piotr Kotynia, Chromium LUCI CQ, chromium...@chromium.org

    Atalyk Akash abandoned this change.

    View Change

    Abandoned

    Atalyk Akash 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: Ie3668a34de540ea496afd3e48b07ee5ac1c51e00
    Gerrit-Change-Number: 8126020
    Gerrit-PatchSet: 2
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Atalyk Akash (Gerrit)

    unread,
    Jul 23, 2026, 9:04:09 AM (23 hours ago) Jul 23
    to Timofey Chudakov, Piotr Kotynia, Chromium LUCI CQ, chromium...@chromium.org

    Atalyk Akash restored this change

    Related details

    Attention set is empty
    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: restore
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Atalyk Akash (Gerrit)

    unread,
    4:57 AM (4 hours ago) 4:57 AM
    to Timofey Chudakov, Piotr Kotynia, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Piotr Kotynia

    Atalyk Akash added 2 comments

    File chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetCoordinator.java
    Line 100, Patchset 1: if (mContent.getContentView().isAttachedToWindow()) {

    mContent.getContentView()
    .post(() -> mBottomSheetController.expandSheet(/* animate= */ true));
    } else {
    mBottomSheetController.expandSheet(/* animate= */ true);
    }
    Piotr Kotynia . resolved

    could you add a short comment what is this logic doing?

    Atalyk Akash

    Done

    File chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetMediator.java
    Line 230, Patchset 1: mDelegate.requestExpandSheet(/* expandInHalfHeight= */ true);
    Piotr Kotynia . resolved

    why do we want to expain to half in this case?

    Atalyk Akash

    Discuss this with UX team, they said that during loading the sheet should move half height. crbug.com/538102617

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Piotr Kotynia
    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: Ie3668a34de540ea496afd3e48b07ee5ac1c51e00
      Gerrit-Change-Number: 8126020
      Gerrit-PatchSet: 3
      Gerrit-Owner: Atalyk Akash <ata...@google.com>
      Gerrit-Reviewer: Atalyk Akash <ata...@google.com>
      Gerrit-Reviewer: Piotr Kotynia <piotrk...@google.com>
      Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
      Gerrit-Attention: Piotr Kotynia <piotrk...@google.com>
      Gerrit-Comment-Date: Fri, 24 Jul 2026 08:56:44 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Piotr Kotynia <piotrk...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Piotr Kotynia (Gerrit)

      unread,
      5:15 AM (3 hours ago) 5:15 AM
      to Atalyk Akash, Timofey Chudakov, Chromium LUCI CQ, chromium...@chromium.org
      Attention needed from Atalyk Akash

      Piotr Kotynia added 1 comment

      File chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetMediator.java
      Line 219, Patchset 3 (Latest): mDelegate.requestExpandSheet(/* expandInFullHeight= */ true);
      Piotr Kotynia . unresolved

      So I don't fully undestand: CL message suggest that we want to "Move to half height when loading", but we actually request for full height after sending a query?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Atalyk Akash
      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: Ie3668a34de540ea496afd3e48b07ee5ac1c51e00
        Gerrit-Change-Number: 8126020
        Gerrit-PatchSet: 3
        Gerrit-Owner: Atalyk Akash <ata...@google.com>
        Gerrit-Reviewer: Atalyk Akash <ata...@google.com>
        Gerrit-Reviewer: Piotr Kotynia <piotrk...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-Attention: Atalyk Akash <ata...@google.com>
        Gerrit-Comment-Date: Fri, 24 Jul 2026 09:15:40 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Atalyk Akash (Gerrit)

        unread,
        5:20 AM (3 hours ago) 5:20 AM
        to Timofey Chudakov, Piotr Kotynia, Chromium LUCI CQ, chromium...@chromium.org
        Attention needed from Piotr Kotynia

        Atalyk Akash added 1 comment

        File chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetMediator.java
        Line 219, Patchset 3 (Latest): mDelegate.requestExpandSheet(/* expandInFullHeight= */ true);
        Piotr Kotynia . unresolved

        So I don't fully undestand: CL message suggest that we want to "Move to half height when loading", but we actually request for full height after sending a query?

        Atalyk Akash

        Probably the naming is confusing. The expandSheet method in the bottom sheet actually reevaluates the content of the sheet and adjust its height. I was following the same naming for Delegate method.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Piotr Kotynia
        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: Ie3668a34de540ea496afd3e48b07ee5ac1c51e00
        Gerrit-Change-Number: 8126020
        Gerrit-PatchSet: 3
        Gerrit-Owner: Atalyk Akash <ata...@google.com>
        Gerrit-Reviewer: Atalyk Akash <ata...@google.com>
        Gerrit-Reviewer: Piotr Kotynia <piotrk...@google.com>
        Gerrit-Reviewer: Timofey Chudakov <tchu...@google.com>
        Gerrit-Attention: Piotr Kotynia <piotrk...@google.com>
        Gerrit-Comment-Date: Fri, 24 Jul 2026 09:20:07 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Piotr Kotynia <piotrk...@google.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Atalyk Akash (Gerrit)

        unread,
        6:21 AM (2 hours ago) 6:21 AM
        to Timofey Chudakov, Piotr Kotynia, Chromium LUCI CQ, chromium...@chromium.org
        Attention needed from Piotr Kotynia

        Atalyk Akash added 1 comment

        File chrome/browser/ui/android/autofill/internal/java/src/org/chromium/chrome/browser/ui/autofill/AtMemoryBottomSheetMediator.java
        Line 219, Patchset 3 (Latest): mDelegate.requestExpandSheet(/* expandInFullHeight= */ true);
        Piotr Kotynia . unresolved

        So I don't fully undestand: CL message suggest that we want to "Move to half height when loading", but we actually request for full height after sending a query?

        Atalyk Akash

        Probably the naming is confusing. The expandSheet method in the bottom sheet actually reevaluates the content of the sheet and adjust its height. I was following the same naming for Delegate method.

        Atalyk Akash

        In other words, expandSheet reevaluates the content height and then moves to half height state. But for search focused case, it is still be full height because the getHalfHeightRatio is DISABLED when search has focus.

        Gerrit-Comment-Date: Fri, 24 Jul 2026 10:21:37 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Atalyk Akash <ata...@google.com>
        Comment-In-Reply-To: Piotr Kotynia <piotrk...@google.com>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages