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

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

Issue 10918077: Adding proper dragging behavior for L/R maximized windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: It looks like if git merged wrong here... Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/frame_painter_unittest.cc ('k') | ash/wm/window_resizer.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WINDOW_RESIZER_H_
6 #define ASH_WM_WINDOW_RESIZER_H_ 6 #define ASH_WM_WINDOW_RESIZER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const gfx::Point& location, 57 const gfx::Point& location,
58 int window_component); 58 int window_component);
59 ~Details(); 59 ~Details();
60 60
61 // The window we're resizing. 61 // The window we're resizing.
62 aura::Window* window; 62 aura::Window* window;
63 63
64 // Initial bounds of the window. 64 // Initial bounds of the window.
65 gfx::Rect initial_bounds; 65 gfx::Rect initial_bounds;
66 66
67 // Restore bounds (in screen coordinates) of the window before the drag
68 // started. Only set if the window is normal and is being dragged.
69 gfx::Rect restore_bounds;
70
67 // Location passed to the constructor, in |window->parent()|'s coordinates. 71 // Location passed to the constructor, in |window->parent()|'s coordinates.
68 gfx::Point initial_location_in_parent; 72 gfx::Point initial_location_in_parent;
69 73
70 // Initial opacity of the window. 74 // Initial opacity of the window.
71 float initial_opacity; 75 float initial_opacity;
72 76
73 // The component the user pressed on. 77 // The component the user pressed on.
74 int window_component; 78 int window_component;
75 79
76 // Bitmask of the |kBoundsChange_| constants. 80 // Bitmask of the |kBoundsChange_| constants.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 117
114 // Returns the height of the drag. 118 // Returns the height of the drag.
115 static int GetHeightForDrag(const Details& details, 119 static int GetHeightForDrag(const Details& details,
116 int min_height, 120 int min_height,
117 int* delta_y); 121 int* delta_y);
118 }; 122 };
119 123
120 } // namespace aura 124 } // namespace aura
121 125
122 #endif // ASH_WM_WINDOW_RESIZER_H_ 126 #endif // ASH_WM_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/frame_painter_unittest.cc ('k') | ash/wm/window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698