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

Unified Diff: ash/wm/window_util.h

Issue 357063002: Snap widgets to pixel boundary on ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adjust tests Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/window_state.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 f371fbd89df2d275e0e97ad632c0045448f79fd1..aafb7f39e841e4975881746932292b2a30647a55 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -14,6 +14,7 @@ class Window;
}
namespace gfx {
+class Point;
class Rect;
class Size;
}
@@ -96,6 +97,17 @@ void ReparentTransientChildrenOfChild(aura::Window* child,
aura::Window* old_parent,
aura::Window* new_parent);
+// Snap the window's layer to physical pixel boundary.
+void SnapWindowToPixelBoundary(aura::Window* window);
+
+// Mark the container window so that InstallSnapLayoutManagerToContainers
+// installs the SnapToPixelLayoutManager.
+ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary(
+ aura::Window* container);
+
+// Traverse the |container| tree and installs SnapToPixelLayoutManager.
+void InstallSnapLayoutManagerToContainers(aura::Window* container);
+
} // namespace wm
} // namespace ash
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698