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

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

Issue 14273008: Add ash-enable-sticky-edges for 'sticky' instead of 'snap' behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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_UTIL_H_ 5 #ifndef ASH_WM_WINDOW_UTIL_H_
6 #define ASH_WM_WINDOW_UTIL_H_ 6 #define ASH_WM_WINDOW_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const gfx::Rect& work_area, 123 const gfx::Rect& work_area,
124 int min_width, 124 int min_width,
125 int min_height, 125 int min_height,
126 gfx::Rect* bounds); 126 gfx::Rect* bounds);
127 127
128 // Moves |window| to the root window where the |event| occured if it is not 128 // Moves |window| to the root window where the |event| occured if it is not
129 // already in the same root window. Returns true if |window| was moved. 129 // already in the same root window. Returns true if |window| was moved.
130 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, 130 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window,
131 const ui::Event& event); 131 const ui::Event& event);
132 132
133 // Returns true if a window should stick to an edge.
134 ASH_EXPORT bool ShouldStickToEdge(int distance_from_edge);
flackr 2013/04/16 00:32:14 Currently, this is only used by workspace_window_r
stevenjb 2013/04/16 20:08:20 That was my thought based on your suggestion, but
135
133 } // namespace wm 136 } // namespace wm
134 } // namespace ash 137 } // namespace ash
135 138
136 #endif // ASH_WM_WINDOW_UTIL_H_ 139 #endif // ASH_WM_WINDOW_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698