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

Unified Diff: remoting/host/display_rotation_filter.cc

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: Add UsbCode to DomCode API Created 6 years, 1 month 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/display_rotation_filter.cc
diff --git a/remoting/host/display_rotation_filter.cc b/remoting/host/display_rotation_filter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2a3f36c276a1ce4f728410bb7c233e56eec4d9b4
--- /dev/null
+++ b/remoting/host/display_rotation_filter.cc
@@ -0,0 +1,18 @@
+// 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.
+
+#include "remoting/host/display_rotation_filter.h"
+
+namespace remoting {
+
+// static
+// Creates a trivial DisplayRotationFilter. On x11, windows and mac, both the
+// host and client expects the mouse locations in the same co-ordinates system
+// regardless of the display rotation settings, thus no conversion is necessary.
+scoped_ptr<protocol::InputFilter> CreateDisplayRotationFilter(
+ protocol::InputStub* input_stub) {
+ return make_scoped_ptr(new protocol::InputFilter(input_stub));
+}
+
+} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698