| 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_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 private: | 57 private: |
| 58 class ScopedWindowResizer; | 58 class ScopedWindowResizer; |
| 59 | 59 |
| 60 enum DragCompletionStatus { | 60 enum DragCompletionStatus { |
| 61 DRAG_COMPLETE, | 61 DRAG_COMPLETE, |
| 62 DRAG_REVERT | 62 DRAG_REVERT |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 void CreateScopedWindowResizer(aura::Window* window, | 65 void CreateScopedWindowResizer(aura::Window* window, |
| 66 const gfx::Point& point_in_parent, | 66 const gfx::Point& point_in_parent, |
| 67 int window_component); | 67 int window_component, |
| 68 aura::client::WindowMoveSource source); |
| 68 | 69 |
| 69 // Finishes the drag. | 70 // Finishes the drag. |
| 70 void CompleteDrag(DragCompletionStatus status, int event_flags); | 71 void CompleteDrag(DragCompletionStatus status, int event_flags); |
| 71 | 72 |
| 72 void HandleMousePressed(aura::Window* target, ui::MouseEvent* event); | 73 void HandleMousePressed(aura::Window* target, ui::MouseEvent* event); |
| 73 void HandleMouseReleased(aura::Window* target, ui::MouseEvent* event); | 74 void HandleMouseReleased(aura::Window* target, ui::MouseEvent* event); |
| 74 | 75 |
| 75 // Called during a drag to resize/position the window. | 76 // Called during a drag to resize/position the window. |
| 76 // The return value is returned by OnMouseEvent() above. | 77 // The return value is returned by OnMouseEvent() above. |
| 77 void HandleDrag(aura::Window* target, ui::LocatedEvent* event); | 78 void HandleDrag(aura::Window* target, ui::LocatedEvent* event); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Used to track if this object is deleted while running a nested message | 114 // Used to track if this object is deleted while running a nested message |
| 114 // loop. If non-null the destructor sets this to true. | 115 // loop. If non-null the destructor sets this to true. |
| 115 bool* destroyed_; | 116 bool* destroyed_; |
| 116 | 117 |
| 117 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); | 118 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); |
| 118 }; | 119 }; |
| 119 | 120 |
| 120 } // namespace aura | 121 } // namespace aura |
| 121 | 122 |
| 122 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ | 123 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ |
| OLD | NEW |