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

Side by Side Diff: components/mus/ws/window_coordinate_conversions.h

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
(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 #ifndef COMPONENTS_MUS_WS_WINDOW_COORDINATE_CONVERSIONS_H_
6 #define COMPONENTS_MUS_WS_WINDOW_COORDINATE_CONVERSIONS_H_
7
8 namespace gfx {
9 class Point;
10 class PointF;
11 class Rect;
12 }
13
14 namespace mus {
15
16 namespace ws {
17
18 class ServerWindow;
19
20 // Converts |point| from the coordinates of |from| to the coordinates of |to|.
21 // |from| and |to| must be an ancestors or descendants of each other.
22 gfx::Point ConvertPointBetweenWindows(const ServerWindow* from,
23 const ServerWindow* to,
24 const gfx::Point& point);
25 gfx::PointF ConvertPointFBetweenWindows(const ServerWindow* from,
26 const ServerWindow* to,
27 const gfx::PointF& point);
28
29 // Converts |rect| from the coordinates of |from| to the coordinates of |to|.
30 // |from| and |to| must be an ancestors or descendants of each other.
31 gfx::Rect ConvertRectBetweenWindows(const ServerWindow* from,
32 const ServerWindow* to,
33 const gfx::Rect& rect);
34
35 } // namespace ws
36
37 } // namespace mus
38
39 #endif // COMPONENTS_MUS_WS_WINDOW_COORDINATE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « components/mus/ws/user_id_tracker_observer.h ('k') | components/mus/ws/window_coordinate_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698