Chromium Code Reviews| Index: ash/accelerators/accelerator_controller.cc |
| diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc |
| index d80cfea83c1a2deec1c5d574b61f31fa543acb62..57eb05c70be5bd54ff868f884c3e5d10798bd8da 100644 |
| --- a/ash/accelerators/accelerator_controller.cc |
| +++ b/ash/accelerators/accelerator_controller.cc |
| @@ -836,9 +836,11 @@ bool AcceleratorController::PerformAction(int action, |
| break; |
| } |
| - internal::SnapSizer::SnapWindow(window, |
| - action == WINDOW_SNAP_LEFT ? internal::SnapSizer::LEFT_EDGE : |
| - internal::SnapSizer::RIGHT_EDGE); |
| + using internal::SnapSizer; |
|
varkha
2013/08/30 17:13:25
Is there a reason that ScopedLayerAnimationSetting
pkotwicz
2013/08/30 21:10:57
Good catch!
You are right that we probably should
|
| + SnapSizer::Edge edge = (action == WINDOW_SNAP_LEFT) ? |
| + SnapSizer::LEFT_EDGE : SnapSizer::RIGHT_EDGE; |
| + if (SnapSizer::CanSnapWindow(window, edge)) |
| + SnapSizer::SnapWindow(window, edge, SnapSizer::STEP_YES); |
| return true; |
| } |
| case WINDOW_MINIMIZE: { |