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

Unified Diff: ash/wm/window_util.h

Issue 11434004: ash: Refactor some code that snaps windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/toplevel_window_event_handler_unittest.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.h
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index f1da5b8d79366039a0ca17eaab6b3aab197b129b..110f89ed45a1d76066661836cfd63b2e12c4cccd 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -6,6 +6,7 @@
#define ASH_WM_WINDOW_UTIL_H_
#include "ash/ash_export.h"
+#include "ash/wm/workspace/snap_sizer.h"
#include "base/compiler_specific.h"
#include "ui/base/ui_base_types.h"
@@ -84,6 +85,10 @@ ASH_EXPORT void ToggleMaximizedWindow(aura::Window* window);
// Moves the window to the center of the display.
ASH_EXPORT void CenterWindow(aura::Window* window);
+// Snaps a window left or right.
+ASH_EXPORT void SnapWindow(aura::Window* window,
sky 2012/11/28 22:04:01 In hope of not making this file contain a ton of s
sadrul 2012/11/28 23:20:16 Yep. Sounds good to me. Done.
+ internal::SnapSizer::Edge edge);
+
// Returns the existing Layer for |window| (and all its descendants) and creates
// a new layer for |window| and all its descendants. This is intended for
// animations that want to animate between the existing visuals and a new window
« no previous file with comments | « ash/wm/toplevel_window_event_handler_unittest.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698