| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MASH_SIMPLE_WM_MOVE_LOOP_H_ | 5 #ifndef MASH_SIMPLE_WM_MOVE_LOOP_H_ |
| 6 #define MASH_SIMPLE_WM_MOVE_LOOP_H_ | 6 #define MASH_SIMPLE_WM_MOVE_LOOP_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const HorizontalLocation h_loc_; | 101 const HorizontalLocation h_loc_; |
| 102 const VerticalLocation v_loc_; | 102 const VerticalLocation v_loc_; |
| 103 | 103 |
| 104 // The id of the pointer that triggered the move. | 104 // The id of the pointer that triggered the move. |
| 105 const int32_t pointer_id_; | 105 const int32_t pointer_id_; |
| 106 | 106 |
| 107 // Location of the event (in screen coordinates) that triggered the move. | 107 // Location of the event (in screen coordinates) that triggered the move. |
| 108 const gfx::Point initial_event_screen_location_; | 108 const gfx::Point initial_event_screen_location_; |
| 109 | 109 |
| 110 // Original bounds of the window. | 110 // Original bounds of the window. |
| 111 const gfx::Rect initial_window_bounds_; | 111 gfx::Rect initial_window_bounds_; |
| 112 const gfx::Rect initial_user_set_bounds_; | 112 const gfx::Rect initial_user_set_bounds_; |
| 113 | 113 |
| 114 // Set to true when MoveLoop changes the bounds of |target_|. The move is | 114 // Set to true when MoveLoop changes the bounds of |target_|. The move is |
| 115 // canceled if the bounds change unexpectedly during the move. | 115 // canceled if the bounds change unexpectedly during the move. |
| 116 bool changing_bounds_; | 116 bool changing_bounds_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(MoveLoop); | 118 DISALLOW_COPY_AND_ASSIGN(MoveLoop); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace simple_wm | 121 } // namespace simple_wm |
| 122 | 122 |
| 123 #endif // MASH_SIMPLE_WM_MOVE_LOOP_H_ | 123 #endif // MASH_SIMPLE_WM_MOVE_LOOP_H_ |
| OLD | NEW |