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

Unified Diff: ash/wm/window_util.cc

Issue 2640243005: Align layers for ARC notification surface to pixels (Closed)
Patch Set: . Created 3 years, 11 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_util.h ('k') | ui/arc/notification/arc_custom_notification_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.cc
diff --git a/ash/wm/window_util.cc b/ash/wm/window_util.cc
index 03cbabe54b6643b930cc14c5425084dade14a32d..0e4f632a3855674123fa855f5a73e8a505f60f7f 100644
--- a/ash/wm/window_util.cc
+++ b/ash/wm/window_util.cc
@@ -80,6 +80,7 @@ bool MoveWindowToEventRoot(aura::Window* window, const ui::Event& event) {
}
void SnapWindowToPixelBoundary(aura::Window* window) {
+ window->SetProperty(kSnapChildrenToPixelBoundary, true);
aura::Window* snapped_ancestor = window->parent();
while (snapped_ancestor) {
if (snapped_ancestor->GetProperty(kSnapChildrenToPixelBoundary)) {
« no previous file with comments | « ash/wm/window_util.h ('k') | ui/arc/notification/arc_custom_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698