| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_CLIENT_DESKTOP_VIEWPORT_H_ | 5 #ifndef REMOTING_CLIENT_UI_DESKTOP_VIEWPORT_H_ |
| 6 #define REMOTING_CLIENT_DESKTOP_VIEWPORT_H_ | 6 #define REMOTING_CLIENT_UI_DESKTOP_VIEWPORT_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "remoting/client/view_matrix.h" | 9 #include "remoting/client/ui/view_matrix.h" |
| 10 | 10 |
| 11 namespace remoting { | 11 namespace remoting { |
| 12 | 12 |
| 13 // The viewport is a sliding window on the desktop image. This class defines | 13 // The viewport is a sliding window on the desktop image. This class defines |
| 14 // the viewport's position and size, provides methods to manipulate it, and | 14 // the viewport's position and size, provides methods to manipulate it, and |
| 15 // outputs a desktop space -> surface space transformation matrix for drawing | 15 // outputs a desktop space -> surface space transformation matrix for drawing |
| 16 // the desktop onto the client's view surface on the screen. | 16 // the desktop onto the client's view surface on the screen. |
| 17 // | 17 // |
| 18 // Desktop space: Coordinates to locate a point on the host's desktop image in | 18 // Desktop space: Coordinates to locate a point on the host's desktop image in |
| 19 // pixels, similar to the mouse's cursor position. | 19 // pixels, similar to the mouse's cursor position. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ViewMatrix desktop_to_surface_transform_; | 107 ViewMatrix desktop_to_surface_transform_; |
| 108 | 108 |
| 109 TransformationCallback on_transformation_changed_; | 109 TransformationCallback on_transformation_changed_; |
| 110 | 110 |
| 111 // DesktopViewport is neither copyable nor movable. | 111 // DesktopViewport is neither copyable nor movable. |
| 112 DesktopViewport(const DesktopViewport&) = delete; | 112 DesktopViewport(const DesktopViewport&) = delete; |
| 113 DesktopViewport& operator=(const DesktopViewport&) = delete; | 113 DesktopViewport& operator=(const DesktopViewport&) = delete; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace remoting | 116 } // namespace remoting |
| 117 #endif // REMOTING_CLIENT_DESKTOP_VIEWPORT_H_ | 117 #endif // REMOTING_CLIENT_UI_DESKTOP_VIEWPORT_H_ |
| OLD | NEW |