Chromium Code Reviews| 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_ |