• Mitsuru Oshima's avatar
    Chrome OS: Use layer animation browser window frame activation animation. · 0dce55ff
    Mitsuru Oshima authored
    This is a revised version of original attempt crrev.comc/c/2166804.
    Instead of creating a new layers, this clone and animate the window's layer,
    but makes sure that the animating layer is at the bottom of other layers
    within the window.
    
    * It adds a invisible view with a layer
      at the bottom of the non_client_view (no frame w/o this, so we can exclude such case).
    * Adds the animating layer as a child of this view, with
      "SetMasksToBounds(false)" so that it will not be clipped during animation.
    * Once animation is done, this animating, old layer will be removed.
    
    Bug: 1073685
    Test: covered by unittests.
    Change-Id: Ib9ae60694fb461dda354fea4fd52e4e01186a6a7
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2335811Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#800827}
    0dce55ff
frame_header.h 4.92 KB