| 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/gestures/system_pinch_handler.h" | 5 #include "ash/wm/gestures/system_pinch_handler.h" |
| 6 | 6 |
| 7 #include "ash/launcher/launcher.h" | 7 #include "ash/launcher/launcher.h" |
| 8 #include "ash/screen_ash.h" | 8 #include "ash/screen_ash.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/wm/property_util.h" | 10 #include "ash/wm/property_util.h" |
| 11 #include "ash/wm/window_util.h" | 11 #include "ash/wm/window_util.h" |
| 12 #include "ash/wm/workspace/snap_sizer.h" | 12 #include "ash/wm/workspace/snap_sizer.h" |
| 13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
| 14 #include "ui/base/events.h" | 14 #include "ui/base/events/event_constants.h" |
| 15 #include "ui/base/gestures/gesture_types.h" | 15 #include "ui/base/gestures/gesture_types.h" |
| 16 #include "ui/compositor/scoped_layer_animation_settings.h" | 16 #include "ui/compositor/scoped_layer_animation_settings.h" |
| 17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
| 18 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
| 19 #include "ui/views/widget/widget_delegate.h" | 19 #include "ui/views/widget/widget_delegate.h" |
| 20 | 20 |
| 21 const double kPinchThresholdForMaximize = 1.5; | 21 const double kPinchThresholdForMaximize = 1.5; |
| 22 const double kPinchThresholdForMinimize = 0.7; | 22 const double kPinchThresholdForMinimize = 0.7; |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 phantom_state_ = PHANTOM_WINDOW_MINIMIZED; | 146 phantom_state_ = PHANTOM_WINDOW_MINIMIZED; |
| 147 return rect; | 147 return rect; |
| 148 } | 148 } |
| 149 | 149 |
| 150 phantom_state_ = PHANTOM_WINDOW_NORMAL; | 150 phantom_state_ = PHANTOM_WINDOW_NORMAL; |
| 151 return window->bounds(); | 151 return window->bounds(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 } // namespace internal | 154 } // namespace internal |
| 155 } // namespace ash | 155 } // namespace ash |
| OLD | NEW |