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

Unified Diff: ash/wm/system_modal_container_layout_manager.cc

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/system_modal_container_layout_manager.h ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index 8c32215bd16d0cbbec387c48d8cff26da00e892a..85916d8a79dc697ab33056e3e9275169d0a8403b 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -46,7 +46,8 @@ const int kCenterPixelDelta = 32;
SystemModalContainerLayoutManager::SystemModalContainerLayoutManager(
aura::Window* container)
- : container_(container),
+ : SnapToPixelLayoutManager(container),
+ container_(container),
modal_background_(NULL) {
}
@@ -86,19 +87,10 @@ void SystemModalContainerLayoutManager::OnWillRemoveWindowFromLayout(
RemoveModalWindow(child);
}
-void SystemModalContainerLayoutManager::OnWindowRemovedFromLayout(
- aura::Window* child) {
-}
-
-void SystemModalContainerLayoutManager::OnChildWindowVisibilityChanged(
- aura::Window* child,
- bool visible) {
-}
-
void SystemModalContainerLayoutManager::SetChildBounds(
aura::Window* child,
const gfx::Rect& requested_bounds) {
- SetChildBoundsDirect(child, requested_bounds);
+ SnapToPixelLayoutManager::SetChildBounds(child, requested_bounds);
child->SetProperty(kCenteredKey, DialogIsCentered(requested_bounds));
}
« no previous file with comments | « ash/wm/system_modal_container_layout_manager.h ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698