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

Unified Diff: remoting/client/render_stub.h

Issue 2879743002: [CRD iOS] Hook the touch input feedback (Closed)
Patch Set: Use the ui task poster Created 3 years, 7 months 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/client/render_stub.h
diff --git a/remoting/client/render_stub.h b/remoting/client/render_stub.h
new file mode 100644
index 0000000000000000000000000000000000000000..2c2f2bc97e94f8d20346aac922107dd495fff5a8
--- /dev/null
+++ b/remoting/client/render_stub.h
@@ -0,0 +1,24 @@
+// Copyright 2017 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_CLIENT_RENDER_STUB_H_
+#define REMOTING_CLIENT_RENDER_STUB_H_
+
+namespace remoting {
+
+class ViewMatrix;
+
+// An interface for controlling the renderer.
+class RenderStub {
nicholss 2017/05/12 21:42:40 Yeah stub is wrong. Stub would be the class you us
Yuwei 2017/05/13 00:41:52 Fixed.
+ public:
+ virtual ~RenderStub() {}
+
+ virtual void SetTransformation(const ViewMatrix& transformation) = 0;
nicholss 2017/05/12 21:42:40 These methods need documentation please.
Yuwei 2017/05/13 00:41:52 Done. Added a comment that points to GlRenderer :P
+ virtual void SetCursorPosition(float x, float y) = 0;
+ virtual void SetCursorVisibility(bool visible) = 0;
+ virtual void StartInputFeedback(float x, float y, float diameter) = 0;
+};
+
+} // namespace remoting
+#endif // REMOTING_CLIENT_RENDER_STUB_H_

Powered by Google App Engine
This is Rietveld 408576698