Fixed spelling in test runner function.
[chromium-blink-merge.git] / ash / snap_to_pixel_layout_manager.cc
blob00b12daa43be49c5fdb80c7ec7d37f959c06c6f9
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/snap_to_pixel_layout_manager.h"
7 #include "ash/wm/window_properties.h"
8 #include "ash/wm/window_util.h"
9 #include "ui/aura/window.h"
11 namespace ash {
13 SnapToPixelLayoutManager::SnapToPixelLayoutManager(aura::Window* container) {
14 DCHECK(container->GetProperty(kSnapChildrenToPixelBoundary));
17 SnapToPixelLayoutManager::~SnapToPixelLayoutManager() {
20 void SnapToPixelLayoutManager::OnWindowResized() {
23 void SnapToPixelLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
26 void SnapToPixelLayoutManager::OnWillRemoveWindowFromLayout(
27 aura::Window* child) {
30 void SnapToPixelLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {
33 void SnapToPixelLayoutManager::OnChildWindowVisibilityChanged(
34 aura::Window* child,
35 bool visibile) {
38 void SnapToPixelLayoutManager::SetChildBounds(
39 aura::Window* child,
40 const gfx::Rect& requested_bounds) {
41 SetChildBoundsDirect(child, requested_bounds);
42 wm::SnapWindowToPixelBoundary(child);
45 } // namespace ash