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

Side by Side Diff: components/mus/view_coordinate_conversions.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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 #ifndef COMPONENTS_VIEW_MANAGER_VIEW_COORDINATE_CONVERSIONS_H_ 5 #ifndef COMPONENTS_MUS_VIEW_COORDINATE_CONVERSIONS_H_
6 #define COMPONENTS_VIEW_MANAGER_VIEW_COORDINATE_CONVERSIONS_H_ 6 #define COMPONENTS_MUS_VIEW_COORDINATE_CONVERSIONS_H_
7 7
8 namespace gfx { 8 namespace gfx {
9 class Point; 9 class Point;
10 class PointF; 10 class PointF;
11 class Rect; 11 class Rect;
12 } 12 }
13 13
14 namespace view_manager { 14 namespace view_manager {
15 15
16 class ServerView; 16 class ServerView;
17 17
18 // Converts |point| from the coordinates of |from| to the coordinates of |to|. 18 // Converts |point| from the coordinates of |from| to the coordinates of |to|.
19 // |from| and |to| must be an ancestors or descendants of each other. 19 // |from| and |to| must be an ancestors or descendants of each other.
20 gfx::Point ConvertPointBetweenViews(const ServerView* from, 20 gfx::Point ConvertPointBetweenViews(const ServerView* from,
21 const ServerView* to, 21 const ServerView* to,
22 const gfx::Point& point); 22 const gfx::Point& point);
23 gfx::PointF ConvertPointFBetweenViews(const ServerView* from, 23 gfx::PointF ConvertPointFBetweenViews(const ServerView* from,
24 const ServerView* to, 24 const ServerView* to,
25 const gfx::PointF& point); 25 const gfx::PointF& point);
26 26
27 // Converts |rect| from the coordinates of |from| to the coordinates of |to|. 27 // Converts |rect| from the coordinates of |from| to the coordinates of |to|.
28 // |from| and |to| must be an ancestors or descendants of each other. 28 // |from| and |to| must be an ancestors or descendants of each other.
29 gfx::Rect ConvertRectBetweenViews(const ServerView* from, 29 gfx::Rect ConvertRectBetweenViews(const ServerView* from,
30 const ServerView* to, 30 const ServerView* to,
31 const gfx::Rect& rect); 31 const gfx::Rect& rect);
32 32
33 } // namespace view_manager 33 } // namespace view_manager
34 34
35 #endif // COMPONENTS_VIEW_MANAGER_VIEW_COORDINATE_CONVERSIONS_H_ 35 #endif // COMPONENTS_MUS_VIEW_COORDINATE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « components/mus/test_server_view_delegate.cc ('k') | components/mus/view_coordinate_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698