• Mitsuru Oshima's avatar
    Implement CENTER/SNAP for ClientConrolledState · 5595a447
    Mitsuru Oshima authored
    * Move CenterWindow/CycleSnap to BaseState
    * Updated CenterWindow to send event instead. This is
      is necessary in order for ClientControlledState to intercept
      bounds change request.
    * Added animate parameter to SetBoundsEvent.
    
    Animation on ARC++ windows are not implemented yet. It will
    be handled in a separate CL.
    
    BUG=b/30260227
    TEST=covered by unittest
    
    Change-Id: I7d3940f82f84331a717013005255e165818a7deb
    Reviewed-on: https://chromium-review.googlesource.com/989837
    Commit-Queue: Mitsuru Oshima <oshima@chromium.org>
    Reviewed-by: default avatarQiang Xu <warx@google.com>
    Cr-Commit-Position: refs/heads/master@{#547627}
    5595a447
default_state.cc 23.2 KB