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

Side by Side Diff: services/ui/ws/window_coordinate_conversions.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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
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 "components/mus/ws/window_coordinate_conversions.h" 5 #include "services/ui/ws/window_coordinate_conversions.h"
6 6
7 #include "components/mus/ws/server_window.h" 7 #include "services/ui/ws/server_window.h"
8 #include "ui/gfx/geometry/point.h" 8 #include "ui/gfx/geometry/point.h"
9 #include "ui/gfx/geometry/point_conversions.h" 9 #include "ui/gfx/geometry/point_conversions.h"
10 #include "ui/gfx/geometry/point_f.h" 10 #include "ui/gfx/geometry/point_f.h"
11 #include "ui/gfx/geometry/rect.h" 11 #include "ui/gfx/geometry/rect.h"
12 #include "ui/gfx/geometry/vector2d.h" 12 #include "ui/gfx/geometry/vector2d.h"
13 #include "ui/gfx/geometry/vector2d_f.h" 13 #include "ui/gfx/geometry/vector2d_f.h"
14 14
15 namespace mus { 15 namespace mus {
16 16
17 namespace ws { 17 namespace ws {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ConvertPointBetweenWindows(from, to, rect.origin())); 65 ConvertPointBetweenWindows(from, to, rect.origin()));
66 const gfx::Point bottom_right(gfx::ToCeiledPoint(ConvertPointFBetweenWindows( 66 const gfx::Point bottom_right(gfx::ToCeiledPoint(ConvertPointFBetweenWindows(
67 from, to, gfx::PointF(rect.right(), rect.bottom())))); 67 from, to, gfx::PointF(rect.right(), rect.bottom()))));
68 return gfx::Rect(top_left.x(), top_left.y(), bottom_right.x() - top_left.x(), 68 return gfx::Rect(top_left.x(), top_left.y(), bottom_right.x() - top_left.x(),
69 bottom_right.y() - top_left.y()); 69 bottom_right.y() - top_left.y());
70 } 70 }
71 71
72 } // namespace ws 72 } // namespace ws
73 73
74 } // namespace mus 74 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/ws/window_coordinate_conversions.h ('k') | services/ui/ws/window_coordinate_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698