Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: mash/simple_wm/move_loop.h

Issue 2587183002: Adds sizing, maximizing, minimizing to simple_wm (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | mash/simple_wm/move_loop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | mash/simple_wm/move_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698