forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnap_to_pixel_layout_manager.cc
37 lines (25 loc) · 1.08 KB
/
snap_to_pixel_layout_manager.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/snap_to_pixel_layout_manager.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
#include "ui/aura/window.h"
namespace ash {
SnapToPixelLayoutManager::SnapToPixelLayoutManager(aura::Window* container) {}
SnapToPixelLayoutManager::~SnapToPixelLayoutManager() {}
void SnapToPixelLayoutManager::OnWindowResized() {}
void SnapToPixelLayoutManager::OnWindowAddedToLayout(aura::Window* child) {}
void SnapToPixelLayoutManager::OnWillRemoveWindowFromLayout(
aura::Window* child) {}
void SnapToPixelLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {}
void SnapToPixelLayoutManager::OnChildWindowVisibilityChanged(
aura::Window* child,
bool visibile) {}
void SnapToPixelLayoutManager::SetChildBounds(
aura::Window* child,
const gfx::Rect& requested_bounds) {
SetChildBoundsDirect(child, requested_bounds);
wm::SnapWindowToPixelBoundary(child);
}
} // namespace ash