| 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/wm/toplevel_window_event_handler.h" | 5 #include "ash/wm/toplevel_window_event_handler.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/wm/aura/wm_window_aura.h" | 8 #include "ash/wm/aura/wm_window_aura.h" |
| 9 #include "ash/wm/common/window_resizer.h" | 9 #include "ash/wm/common/window_resizer.h" |
| 10 #include "ash/wm/common/window_state.h" | 10 #include "ash/wm/common/window_state.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ui/aura/window_event_dispatcher.h" | 23 #include "ui/aura/window_event_dispatcher.h" |
| 24 #include "ui/aura/window_observer.h" | 24 #include "ui/aura/window_observer.h" |
| 25 #include "ui/aura/window_tree_host.h" | 25 #include "ui/aura/window_tree_host.h" |
| 26 #include "ui/base/cursor/cursor.h" | 26 #include "ui/base/cursor/cursor.h" |
| 27 #include "ui/base/hit_test.h" | 27 #include "ui/base/hit_test.h" |
| 28 #include "ui/base/ui_base_types.h" | 28 #include "ui/base/ui_base_types.h" |
| 29 #include "ui/events/event.h" | 29 #include "ui/events/event.h" |
| 30 #include "ui/events/event_utils.h" | 30 #include "ui/events/event_utils.h" |
| 31 #include "ui/events/gestures/gesture_recognizer.h" | 31 #include "ui/events/gestures/gesture_recognizer.h" |
| 32 #include "ui/gfx/geometry/point_conversions.h" | 32 #include "ui/gfx/geometry/point_conversions.h" |
| 33 #include "ui/gfx/screen.h" | |
| 34 | 33 |
| 35 namespace { | 34 namespace { |
| 36 const double kMinHorizVelocityForWindowSwipe = 1100; | 35 const double kMinHorizVelocityForWindowSwipe = 1100; |
| 37 const double kMinVertVelocityForWindowMinimize = 1000; | 36 const double kMinVertVelocityForWindowMinimize = 1000; |
| 38 } | 37 } |
| 39 | 38 |
| 40 namespace ash { | 39 namespace ash { |
| 41 | 40 |
| 42 namespace { | 41 namespace { |
| 43 | 42 |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 default: | 633 default: |
| 635 NOTREACHED(); | 634 NOTREACHED(); |
| 636 } | 635 } |
| 637 } | 636 } |
| 638 | 637 |
| 639 void ToplevelWindowEventHandler::ResizerWindowDestroyed() { | 638 void ToplevelWindowEventHandler::ResizerWindowDestroyed() { |
| 640 CompleteDrag(DRAG_RESIZER_WINDOW_DESTROYED); | 639 CompleteDrag(DRAG_RESIZER_WINDOW_DESTROYED); |
| 641 } | 640 } |
| 642 | 641 |
| 643 } // namespace ash | 642 } // namespace ash |
| OLD | NEW |