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 |