• Clemens Arbesser's avatar
    [Autofill Assistant] Added ForEach interaction. · ae61a59a
    Clemens Arbesser authored
    Note: this is an alternative solution for http://crrev/c/2235698
    
    This interaction executes a number of callbacks for the input loop value. This is intended to be used to inflate UI elements for client-only values, i.e., for values that the backend can't specify.
    
    Internally, ForEach loops are implemented by introducing the concept of callback contexts, which will change value and view lookup accordingly.
    
    In particular, callback contexts are used to automatically replace placeholders of the form ${i} in value and view identifiers (where 'i' is the loop identifier). This allows creating and referencing values and views with templated names, such as "created_view_${i}" and "value[${i}]".
    
    Bug: b/145043394
    Change-Id: I53089252fe1cc14b2b1fb74cfc56d7314bc4b37c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2241975
    Commit-Queue: Clemens Arbesser <arbesser@google.com>
    Reviewed-by: default avatarSandro Maggi <sandromaggi@google.com>
    Reviewed-by: default avatarMarian Fechete <marianfe@google.com>
    Cr-Commit-Position: refs/heads/master@{#780785}
    ae61a59a
view_handler_android.cc 2.17 KB