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

Unified Diff: remoting/client/desktop_viewport.h

Issue 2862893003: [CRD iOS] Inject mouse events to the host (Closed)
Patch Set: Resolve Feedback 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
« no previous file with comments | « remoting/client/BUILD.gn ('k') | remoting/client/desktop_viewport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/desktop_viewport.h
diff --git a/remoting/client/desktop_viewport.h b/remoting/client/desktop_viewport.h
index 8fb7377bad5669c1a33db5d39fddd473f97fefb4..26fe36066d498a9e610625e810dc55275d769979 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 MoveViewport(float dx, float dy);
+
// 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;
@@ -87,7 +93,7 @@ class DesktopViewport {
// Translates the viewport on the desktop's reference frame by <dx, dy>,
// without calling UpdateViewport().
- void MoveViewportCenterWithoutUpdate(float dx, float dy);
+ void MoveViewportWithoutUpdate(float dx, float dy);
// Moves the point inside the bounds with minimum displacement if it is out of
// the bounds.
« no previous file with comments | « remoting/client/BUILD.gn ('k') | remoting/client/desktop_viewport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698