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

Unified Diff: remoting/client/ui/desktop_viewport.h

Issue 2897143002: [CRD iOS] Ignore touch event when the touch point is out of the canvas in direct input mode (Closed)
Patch Set: 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 | « no previous file | remoting/client/ui/desktop_viewport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/ui/desktop_viewport.h
diff --git a/remoting/client/ui/desktop_viewport.h b/remoting/client/ui/desktop_viewport.h
index 56c1a69f30879ad753062e130464d7e7379718da..c000ba4b05d02bacf946ee9eb0907dd4dc3f0ec6 100644
--- a/remoting/client/ui/desktop_viewport.h
+++ b/remoting/client/ui/desktop_viewport.h
@@ -57,6 +57,9 @@ class DesktopViewport {
// Returns the current center of the viewport on the desktop's coordinate.
ViewMatrix::Point GetViewportCenter() const;
+ // Returns true if |point| is within the bounds of the desktop.
+ bool IsPointWithinDesktopBounds(const ViewMatrix::Point& point) const;
+
// Constrains |point| within the bounds of the desktop. Do nothing if the
// desktop size is not set.
ViewMatrix::Point ConstrainPointToDesktop(
« no previous file with comments | « no previous file | remoting/client/ui/desktop_viewport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698