Index: remoting/host/chromeos/display_transform_util.h |
diff --git a/remoting/host/chromeos/display_transform_util.h b/remoting/host/chromeos/display_transform_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..878bff729cdd4ecc0985252197715df60ca5b3d9 |
--- /dev/null |
+++ b/remoting/host/chromeos/display_transform_util.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef REMOTING_HOST_CHROMEOS_DISPLAY_TRANSFORM_UTIL_H_ |
+#define REMOTING_HOST_CHROMEOS_DISPLAY_TRANSFORM_UTIL_H_ |
+ |
+#include "ui/gfx/geometry/point_f.h" |
+ |
+namespace remoting { |
+ |
+// Converts |location| from the window tree host coordinate system to the native |
+// screen coordinate system. |location| is in device pixels. |
Wez
2014/12/04 01:28:25
It's confusing to say that |location| is in "windo
Wez
2014/12/04 01:28:25
Is there some design doc we can refer to that expl
kelvinp
2014/12/05 03:17:28
Unfortunately, we don't have a design docs. The c
|
+gfx::PointF ConvertPointToNativeScreen(const gfx::PointF& location); |
+ |
+// Converts |location| from the native screen coordinate system to the window |
+// tree host coordinate system. |location| is in device pixels. |
+gfx::PointF ConvertPointFromNativeScreen(const gfx::PointF& location); |
+ |
+} // namespace remoting |
+ |
+#endif // REMOTING_HOST_CHROMEOS_DISPLAY_TRANSFORM_UTIL_H_ |