| 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 #ifndef ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 5 #ifndef ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 6 #define ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 6 #define ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/wm/common/ash_wm_common_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/wm/common/wm_display_observer.h" | 11 #include "ash/wm/common/wm_display_observer.h" |
| 12 #include "ash/wm/common/wm_types.h" | 12 #include "ash/wm/common/wm_types.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "ui/gfx/geometry/rect.h" | 15 #include "ui/gfx/geometry/rect.h" |
| 16 #include "ui/wm/public/window_move_client.h" | 16 #include "ui/wm/public/window_move_client.h" |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 class KeyEvent; | 19 class KeyEvent; |
| 20 class LocatedEvent; | 20 class LocatedEvent; |
| 21 class MouseEvent; | 21 class MouseEvent; |
| 22 class GestureEvent; | 22 class GestureEvent; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace ash { | 25 namespace ash { |
| 26 | 26 |
| 27 class WindowResizer; | 27 class WindowResizer; |
| 28 | 28 |
| 29 namespace wm { | 29 namespace wm { |
| 30 | 30 |
| 31 class WmGlobals; | 31 class WmGlobals; |
| 32 class WmWindow; | 32 class WmWindow; |
| 33 | 33 |
| 34 // WmToplevelWindowEventHandler handles dragging and resizing of top level | 34 // WmToplevelWindowEventHandler handles dragging and resizing of top level |
| 35 // windows. WmToplevelWindowEventHandler is forwarded events, such as from an | 35 // windows. WmToplevelWindowEventHandler is forwarded events, such as from an |
| 36 // EventHandler. | 36 // EventHandler. |
| 37 class ASH_WM_COMMON_EXPORT WmToplevelWindowEventHandler | 37 class ASH_EXPORT WmToplevelWindowEventHandler : public WmDisplayObserver { |
| 38 : public WmDisplayObserver { | |
| 39 public: | 38 public: |
| 40 // Describes what triggered ending the drag. | 39 // Describes what triggered ending the drag. |
| 41 enum class DragResult { | 40 enum class DragResult { |
| 42 // The drag successfully completed. | 41 // The drag successfully completed. |
| 43 SUCCESS, | 42 SUCCESS, |
| 44 | 43 |
| 45 REVERT, | 44 REVERT, |
| 46 | 45 |
| 47 // The underlying window was destroyed while the drag is in process. | 46 // The underlying window was destroyed while the drag is in process. |
| 48 WINDOW_DESTROYED | 47 WINDOW_DESTROYED |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 121 |
| 123 EndClosure end_closure_; | 122 EndClosure end_closure_; |
| 124 | 123 |
| 125 DISALLOW_COPY_AND_ASSIGN(WmToplevelWindowEventHandler); | 124 DISALLOW_COPY_AND_ASSIGN(WmToplevelWindowEventHandler); |
| 126 }; | 125 }; |
| 127 | 126 |
| 128 } // namespace wm | 127 } // namespace wm |
| 129 } // namespace ash | 128 } // namespace ash |
| 130 | 129 |
| 131 #endif // ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 130 #endif // ASH_WM_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| OLD | NEW |