| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/common/wm/wm_toplevel_window_event_handler.h" | 5 #include "ash/wm/wm_toplevel_window_event_handler.h" |
| 6 | 6 |
| 7 #include "ash/common/wm/window_resizer.h" | 7 #include "ash/wm/window_resizer.h" |
| 8 #include "ash/common/wm/window_state.h" | 8 #include "ash/wm/window_state.h" |
| 9 #include "ash/common/wm/window_state_observer.h" | 9 #include "ash/wm/window_state_observer.h" |
| 10 #include "ash/common/wm/wm_event.h" | 10 #include "ash/wm/wm_event.h" |
| 11 #include "ash/common/wm_shell.h" | 11 #include "ash/wm_shell.h" |
| 12 #include "ash/common/wm_window.h" | 12 #include "ash/wm_window.h" |
| 13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
| 14 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
| 15 #include "ui/base/hit_test.h" | 15 #include "ui/base/hit_test.h" |
| 16 #include "ui/events/event.h" | 16 #include "ui/events/event.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 const double kMinHorizVelocityForWindowSwipe = 1100; | 19 const double kMinHorizVelocityForWindowSwipe = 1100; |
| 20 const double kMinVertVelocityForWindowMinimize = 1000; | 20 const double kMinVertVelocityForWindowMinimize = 1000; |
| 21 } | 21 } |
| 22 | 22 |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 void WmToplevelWindowEventHandler::ResizerWindowDestroyed() { | 541 void WmToplevelWindowEventHandler::ResizerWindowDestroyed() { |
| 542 CompleteDrag(DragResult::WINDOW_DESTROYED); | 542 CompleteDrag(DragResult::WINDOW_DESTROYED); |
| 543 } | 543 } |
| 544 | 544 |
| 545 void WmToplevelWindowEventHandler::OnDisplayConfigurationChanging() { | 545 void WmToplevelWindowEventHandler::OnDisplayConfigurationChanging() { |
| 546 CompleteDrag(DragResult::REVERT); | 546 CompleteDrag(DragResult::REVERT); |
| 547 } | 547 } |
| 548 | 548 |
| 549 } // namespace wm | 549 } // namespace wm |
| 550 } // namespace ash | 550 } // namespace ash |
| OLD | NEW |