Files
Claudio DeSouza 5d90a619aa [149.0.7827.54] Stubbing off OnEmbeddedPermissionPromptChanged
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/03d0729142a7f3db6bc6a16d69de16832cf32320

commit 03d0729142a7f3db6bc6a16d69de16832cf32320
Author: James Leung <jamesleung@google.com>
Date:   Thu May 14 22:43:43 2026 -0700

    [voice_search] Keep voice search open during permission prompt

    Modify the composebox voice search to remain active when an embedded
    permission prompt is displayed. This prevents the voice search overlay
    from timing out or closing while the user interacts with system access
    requests. An observer must be added to communicate via mojo to the
    frontend when the voice search should remain active.

    Key changes include:
    * Implemented `EmbeddedPermissionPromptObserver` to track the
      lifecycle and bounds of the embedded permission prompt widget. When
      it resizes, closes due to out of focus, or closes due to an option
      being selected, it sends a mojo message (`OnEmbeddedPermissionPromptChanged`)
    * Added a new Mojo method `OnEmbeddedPermissionPromptChanged`
      to tell the frontend when the permission prompt is visible,
      and the prompt's size
    * Made page callback passed down to `cr-composebox-voice-search`. Also
      made it protected instead of private.
    * Updated `cr-composebox-voice-search` to listen for permission state
        changes, effectively pausing the idle timer when the permission
        prompt is visible.

    screencast/cast/NTU0NDc5Mjc3MDQ3ODA4MHxiYzc3ZmYyYy1hNQ
    NO_IFTTT=just rearranged and made existing property protected
    It is known that it should be moved to mixin.

    Bug: b:492201887
    Change-Id: Ie85be91c7e2435bb519b7d5e92565674a1d5ffbf
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7744441
    Commit-Queue: James Leung <jamesleung@google.com>
    Reviewed-by: Ananya Seelam <ananyaseelam@google.com>
    Cr-Commit-Position: refs/heads/main@{#1631087}
2026-05-30 16:15:30 -04:00
..