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

Side by Side Diff: ash/wm/drag_details.h

Issue 1890713002: Adds WmWindow and converts WindowState to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 8 months 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 | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/drag_details.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRAG_DETAILS_H_ 5 #ifndef ASH_WM_DRAG_DETAILS_H_
6 #define ASH_WM_DRAG_DETAILS_H_ 6 #define ASH_WM_DRAG_DETAILS_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/wm_types.h" 9 #include "ash/wm/wm_types.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/wm/public/window_move_client.h" 11 #include "ui/wm/public/window_move_client.h"
12 12
13 namespace aura { 13 namespace aura {
14 class Window; 14 class Window;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 18
19 namespace wm { 19 namespace wm {
20 class WmWindow;
20 class WindowState; 21 class WindowState;
21 } 22 }
22 23
23 struct ASH_EXPORT DragDetails { 24 struct ASH_EXPORT DragDetails {
24 DragDetails(aura::Window* window, 25 DragDetails(wm::WmWindow* window,
25 const gfx::Point& location, 26 const gfx::Point& location,
26 int window_component, 27 int window_component,
28 // TODO(sky): make wm type.
27 aura::client::WindowMoveSource source); 29 aura::client::WindowMoveSource source);
28 ~DragDetails(); 30 ~DragDetails();
29 31
30 ash::wm::WindowStateType initial_state_type; 32 ash::wm::WindowStateType initial_state_type;
31 33
32 // Initial bounds of the window in parent coordinates. 34 // Initial bounds of the window in parent coordinates.
33 const gfx::Rect initial_bounds_in_parent; 35 const gfx::Rect initial_bounds_in_parent;
34 36
35 // Restore bounds (in screen coordinates) of the window before the drag 37 // Restore bounds (in screen coordinates) of the window before the drag
36 // started. Only set if the window is normal and is being dragged. 38 // started. Only set if the window is normal and is being dragged.
(...skipping 23 matching lines...) Expand all
60 // Source of the event initiating the drag. 62 // Source of the event initiating the drag.
61 const aura::client::WindowMoveSource source; 63 const aura::client::WindowMoveSource source;
62 64
63 // True if the window should attach to the shelf after releasing. 65 // True if the window should attach to the shelf after releasing.
64 bool should_attach_to_shelf; 66 bool should_attach_to_shelf;
65 }; 67 };
66 68
67 } // namespace ash 69 } // namespace ash
68 70
69 #endif // ASH_WM_DRAG_DETAILS_H_ 71 #endif // ASH_WM_DRAG_DETAILS_H_
OLDNEW
« no previous file with comments | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/drag_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698