Modify query view behavior.
Per the spec, the query view should remain at the bottom of the UI container until the response is received. To accomplish this, this CL: - Adds active_query_view_ pointer. The lifetime of a query view is now: - pending_query_view_: created when query is pended. - committed_query_view_: pointer swapped when query is committed. - active_query_view_: pointer swapped when query response is received. A committed query that is aborted will not reach the "active" state when the motion spec is enabled. To prevent regression of current UI behavior, when the motion spec is disabled we immediately "activate" a query when it is committed. See bug for spec/demos. Bug: b:112114187 Change-Id: Icea7ebccc9f0a5aa554c88d969fa79000855b9db Reviewed-on: https://chromium-review.googlesource.com/1159826 Commit-Queue: David Black <dmblack@google.com> Reviewed-by:Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#580632}
Showing
This diff is collapsed.
Please register or sign in to comment