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

Unified Diff: remoting/host/chromeos/display_transform_util.h

Issue 756643006: Remote assistance on Chrome OS Part IX - Input injection on Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Ozone_input_injection
Patch Set: Fix rotation on X11 devices Created 6 years 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698