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

Unified Diff: remoting/client/renderer_facade.h

Issue 2879743002: [CRD iOS] Hook the touch input feedback (Closed)
Patch Set: Just use ViewMatrix::Point. No more out-pointers... 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/renderer_facade.h
diff --git a/remoting/client/renderer_facade.h b/remoting/client/renderer_facade.h
new file mode 100644
index 0000000000000000000000000000000000000000..464aeff5e89dcdc0d9cbe4c7dd8aca8c9fdcf042
--- /dev/null
+++ b/remoting/client/renderer_facade.h
@@ -0,0 +1,28 @@
+// 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_RENDERER_FACADE_H_
+#define REMOTING_CLIENT_RENDERER_FACADE_H_
+
+namespace remoting {
+
+class ViewMatrix;
+
+// An interface for controlling the renderer.
+// TODO(yuweih): This should be removed once we have moved Drawables out of
+// GlRenderer.
+class RendererFacade {
+ public:
+ virtual ~RendererFacade() {}
+
+ // These functions will eventually call the corresponding functions in
+ // GlRenderer. Please reference to GlRenderer for more details.
+ virtual void SetTransformation(const ViewMatrix& transformation) = 0;
+ 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_RENDERER_FACADE_H_

Powered by Google App Engine
This is Rietveld 408576698