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

Side by Side Diff: ash/common/wm/wm_snap_to_pixel_layout_manager.cc

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" 5 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h"
6 6
7 #include "ash/common/wm/wm_window.h" 7 #include "ash/common/wm_window.h"
8 8
9 namespace ash { 9 namespace ash {
10 namespace wm { 10 namespace wm {
11 11
12 WmSnapToPixelLayoutManager::WmSnapToPixelLayoutManager() {} 12 WmSnapToPixelLayoutManager::WmSnapToPixelLayoutManager() {}
13 13
14 WmSnapToPixelLayoutManager::~WmSnapToPixelLayoutManager() {} 14 WmSnapToPixelLayoutManager::~WmSnapToPixelLayoutManager() {}
15 15
16 void WmSnapToPixelLayoutManager::OnWindowResized() {} 16 void WmSnapToPixelLayoutManager::OnWindowResized() {}
17 17
(...skipping 10 matching lines...) Expand all
28 28
29 void WmSnapToPixelLayoutManager::SetChildBounds( 29 void WmSnapToPixelLayoutManager::SetChildBounds(
30 WmWindow* child, 30 WmWindow* child,
31 const gfx::Rect& requested_bounds) { 31 const gfx::Rect& requested_bounds) {
32 child->SetBoundsDirect(requested_bounds); 32 child->SetBoundsDirect(requested_bounds);
33 child->SnapToPixelBoundaryIfNecessary(); 33 child->SnapToPixelBoundaryIfNecessary();
34 } 34 }
35 35
36 } // namespace wm 36 } // namespace wm
37 } // namespace ash 37 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698