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

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

Issue 121153003: Prevents panels attached to shelf from docking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prevents panels attached to shelf from docking (comments+rebased) Created 6 years, 11 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_DRAG_DETAILS_H_
6 #define ASH_WM_DRAG_DETAILS_H_
7
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "ui/aura/client/window_move_client.h"
12 #include "ui/gfx/rect.h"
13
14 namespace aura {
15 class Window;
16 }
17
18 namespace ash {
19 class WindowResizer;
20
21 namespace wm {
22 class WindowState;
23 }
24
25 struct ASH_EXPORT DragDetails {
26 DragDetails();
oshima 2014/01/09 19:13:45 where is this constructor used?
varkha 2014/01/10 01:34:50 Done. It was not used - removed.
27 DragDetails(aura::Window* window,
28 const gfx::Point& location,
29 int window_component,
30 aura::client::WindowMoveSource source);
31 ~DragDetails();
32
33 // Initial bounds of the window in parent coordinates.
34 const gfx::Rect initial_bounds_in_parent;
35
36 // Restore bounds (in screen coordinates) of the window before the drag
37 // started. Only set if the window is normal and is being dragged.
38 gfx::Rect restore_bounds;
39
40 // Location passed to the constructor, in |window->parent()|'s coordinates.
41 const gfx::Point initial_location_in_parent;
42
43 // Initial opacity of the window.
44 const float initial_opacity;
45
46 // The component the user pressed on.
47 const int window_component;
48
49 // Bitmask of the |kBoundsChange_| constants.
50 const int bounds_change;
51
52 // Bitmask of the |kBoundsChangeDirection_| constants.
53 const int position_change_direction;
54
55 // Bitmask of the |kBoundsChangeDirection_| constants.
56 const int size_change_direction;
57
58 // Will the drag actually modify the window?
59 const bool is_resizable;
60
61 // Source of the event initiating the drag.
62 const aura::client::WindowMoveSource source;
63
64 // True if the window should attach to the shelf after releasing.
65 bool should_attach_to_shelf;
66
67 // WindowResizer that is controlling the drag.
68 WindowResizer* window_resizer;
69 };
70
71 } // namespace ash
72
73 #endif // ASH_WM_DRAG_DETAILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698