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

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: 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
Index: ash/wm/window_util.h
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index f371fbd89df2d275e0e97ad632c0045448f79fd1..d5401622081bf1104aca450a8f4783ef28343454 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,16 @@ 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.
+void SetSnapsChildrenToPhysicalPixelBoundary(aura::Window* container);
+
+// Traverse the |container| tree and installs SnapToPixelLayoutManager.
+void InstallSnapLayoutManagerToContainers(aura::Window* container);
+
} // namespace wm
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698