Chromium Code Reviews| Index: remoting/client/desktop_viewport.h |
| diff --git a/remoting/client/desktop_viewport.h b/remoting/client/desktop_viewport.h |
| index 8fb7377bad5669c1a33db5d39fddd473f97fefb4..415ea7af4d25b646a8fa9bd9c9502dacf412e8c8 100644 |
| --- a/remoting/client/desktop_viewport.h |
| +++ b/remoting/client/desktop_viewport.h |
| @@ -48,6 +48,9 @@ class DesktopViewport { |
| // by |scale|. |
| void ScaleDesktop(float px, float py, float scale); |
| + // Moves the viewport center by <x, y> on the desktop's coordinate. |
| + void MoveViewportCenter(float dx, float dy); |
|
nicholss
2017/05/08 15:34:18
I don't think "center" matters here, this method s
Yuwei
2017/05/08 20:45:26
Done. Also renamed MoveViewportcenterWithoutUpdate
|
| + |
| // Sets the viewport center to (x, y) on the desktop's coordinate. |
| void SetViewportCenter(float x, float y); |
| @@ -58,6 +61,9 @@ class DesktopViewport { |
| const TransformationCallback& callback, |
| bool run_immediately); |
| + // Returns the reference to the desktop-to-surface transformation. |
| + const ViewMatrix& GetTransformation() const; |
| + |
| private: |
| struct Bounds { |
| float left; |