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

Side by Side Diff: ash/snap_to_pixel_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/snap_to_pixel_layout_manager.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "ash/snap_to_pixel_layout_manager.h"
6
7 #include "ash/wm/window_properties.h"
8 #include "ash/wm/window_util.h"
9 #include "ui/aura/window.h"
10
11 namespace ash {
12
13 SnapToPixelLayoutManager::SnapToPixelLayoutManager(aura::Window* container) {
14 DCHECK(container->GetProperty(kSnapChildrenToPixelBoundary));
15 }
16
17 SnapToPixelLayoutManager::~SnapToPixelLayoutManager() {
18 }
19
20 void SnapToPixelLayoutManager::OnWindowResized() {
21 }
22
23 void SnapToPixelLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
24 }
25
26 void SnapToPixelLayoutManager::OnWillRemoveWindowFromLayout(
27 aura::Window* child) {
28 }
29
30 void SnapToPixelLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {
31 }
32
33 void SnapToPixelLayoutManager::OnChildWindowVisibilityChanged(
34 aura::Window* child,
35 bool visibile) {
36 }
37
38 void SnapToPixelLayoutManager::SetChildBounds(
39 aura::Window* child,
40 const gfx::Rect& requested_bounds) {
41 SetChildBoundsDirect(child, requested_bounds);
42 wm::SnapWindowToPixelBoundary(child);
43 }
44
45 } // namespace ash
OLDNEW
« no previous file with comments | « ash/snap_to_pixel_layout_manager.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698