Add containment transition API

Desktop / Chromium - Louis Romero [chromium.org] - 20 July 2017 07:46 EDT

This CL introduces a transition API for animating contained view controllers. It adds a concrete transitioning context to work with generic animators. The new API is used for CSChromium's FindInPage feature, with a new generic animation controller object.

Bug: none Change-Id: Ia1bf383a373e13766c4bd966e4ede04778357c9f Reviewed-on: https://chromium-review.googlesource.com/552937

99d84b9 Add containment transition API
ios/clean/chrome/browser/ui/tab/BUILD.gn | 1 +
.../browser/ui/tab/tab_container_view_controller.h | 7 +
.../ui/tab/tab_container_view_controller.mm | 47 +++-
ios/clean/chrome/browser/ui/transitions/BUILD.gn | 19 ++
.../browser/ui/transitions/animators/BUILD.gn | 20 ++
.../animators/swap_from_above_animator.h | 16 ++
.../animators/swap_from_above_animator.mm | 43 ++++
.../animators/swap_from_above_animator_unittest.mm | 24 ++
.../animators/test_transition_context.h | 19 ++
.../animators/test_transition_context.mm | 55 +++++
.../transitions/containment_transition_context.h | 55 +++++
.../transitions/containment_transition_context.mm | 135 +++++++++++
.../containment_transition_context_unittest.mm | 254 +++++++++++++++++++++
.../containment_transitioning_delegate.h | 24 ++
ios/clean/chrome/test/BUILD.gn | 2 +
15 files changed, 715 insertions(+), 6 deletions(-)

Upstream: git.chromium.org


  • Share