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

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

Issue 2030593002: Renames ash/wm/common into ash/common/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/common/dock/docked_window_resizer.cc ('k') | ash/wm/common/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_WM_COMMON_DRAG_DETAILS_H_
6 #define ASH_WM_COMMON_DRAG_DETAILS_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/wm/common/wm_types.h"
10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/wm/public/window_move_client.h"
12
13 namespace aura {
14 class Window;
15 }
16
17 namespace ash {
18
19 namespace wm {
20 class WmWindow;
21 class WindowState;
22 }
23
24 struct ASH_EXPORT DragDetails {
25 DragDetails(wm::WmWindow* window,
26 const gfx::Point& location,
27 int window_component,
28 // TODO(sky): make wm type.
29 aura::client::WindowMoveSource source);
30 ~DragDetails();
31
32 ash::wm::WindowStateType initial_state_type;
33
34 // Initial bounds of the window in parent coordinates.
35 const gfx::Rect initial_bounds_in_parent;
36
37 // Restore bounds (in screen coordinates) of the window before the drag
38 // started. Only set if the window is normal and is being dragged.
39 gfx::Rect restore_bounds;
40
41 // Location passed to the constructor, in |window->parent()|'s coordinates.
42 const gfx::Point initial_location_in_parent;
43
44 // Initial opacity of the window.
45 const float initial_opacity;
46
47 // The component the user pressed on.
48 const int window_component;
49
50 // Bitmask of the |kBoundsChange_| constants.
51 const int bounds_change;
52
53 // Bitmask of the |kBoundsChangeDirection_| constants.
54 const int position_change_direction;
55
56 // Bitmask of the |kBoundsChangeDirection_| constants.
57 const int size_change_direction;
58
59 // Will the drag actually modify the window?
60 const bool is_resizable;
61
62 // Source of the event initiating the drag.
63 const aura::client::WindowMoveSource source;
64
65 // True if the window should attach to the shelf after releasing.
66 bool should_attach_to_shelf;
67 };
68
69 } // namespace ash
70
71 #endif // ASH_WM_COMMON_DRAG_DETAILS_H_
OLDNEW
« no previous file with comments | « ash/wm/common/dock/docked_window_resizer.cc ('k') | ash/wm/common/drag_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698