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

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

Issue 10823199: While dragging a window, show a semi-transparent aura window instead of the standard gray phantom wi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fill bug # Created 8 years, 4 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 | « no previous file | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // The window we're resizing. 68 // The window we're resizing.
69 aura::Window* window; 69 aura::Window* window;
70 70
71 // Initial bounds of the window. 71 // Initial bounds of the window.
72 gfx::Rect initial_bounds; 72 gfx::Rect initial_bounds;
73 73
74 // Location passed to the constructor, in |window->parent()|'s coordinates. 74 // Location passed to the constructor, in |window->parent()|'s coordinates.
75 gfx::Point initial_location_in_parent; 75 gfx::Point initial_location_in_parent;
76 76
77 // Initial opacity of the window.
78 float initial_opacity;
79
77 // The component the user pressed on. 80 // The component the user pressed on.
78 int window_component; 81 int window_component;
79 82
80 // Bitmask of the |kBoundsChange_| constants. 83 // Bitmask of the |kBoundsChange_| constants.
81 int bounds_change; 84 int bounds_change;
82 85
83 // Bitmask of the |kBoundsChangeDirection_| constants. 86 // Bitmask of the |kBoundsChangeDirection_| constants.
84 int position_change_direction; 87 int position_change_direction;
85 88
86 // Bitmask of the |kBoundsChangeDirection_| constants. 89 // Bitmask of the |kBoundsChangeDirection_| constants.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Returns the height of the drag. 125 // Returns the height of the drag.
123 static int GetHeightForDrag(const Details& details, 126 static int GetHeightForDrag(const Details& details,
124 int min_height, 127 int min_height,
125 int* delta_y, 128 int* delta_y,
126 int grid_size); 129 int grid_size);
127 }; 130 };
128 131
129 } // namespace aura 132 } // namespace aura
130 133
131 #endif // ASH_WM_WINDOW_RESIZER_H_ 134 #endif // ASH_WM_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698