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

Unified Diff: remoting/host/display_rotation_filter.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: 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.h
diff --git a/remoting/host/display_rotation_filter.h b/remoting/host/display_rotation_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..a9172ae06b0067f8951c5329db6b1942a4c7bc2b
--- /dev/null
+++ b/remoting/host/display_rotation_filter.h
@@ -0,0 +1,21 @@
+// 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_DISPLAY_ROTATION_FILTER_H_
+#define REMOTING_HOST_DISPLAY_ROTATION_FILTER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "remoting/protocol/input_filter.h"
+
+namespace remoting {
+
+// Transform the mouse location of the event to inject based on the display
+// rotation settings. Currently, Ozone is the only platform that requires
+// custom transformation.
Wez 2014/11/26 02:28:34 This comment should describe the method's function
kelvinp 2014/12/02 00:12:26 Done.
+scoped_ptr<protocol::InputFilter> CreateDisplayRotationFilter(
Wez 2014/11/26 02:28:34 This is an InputFilter that rotates the coordinate
kelvinp 2014/12/02 00:12:26 Done.
+ protocol::InputStub* input_stub);
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_DISPLAY_ROTATION_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698