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

Unified Diff: remoting/client/desktop_viewport.h

Issue 2862893003: [CRD iOS] Inject mouse events to the host (Closed)
Patch Set: Fix 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/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;

Powered by Google App Engine
This is Rietveld 408576698