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

Side by Side Diff: remoting/client/viewport_geometry.h

Issue 2843373005: [Remoting Client] DesktopViewport Implementation (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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_CLIENT_VIEWPORT_GEOMETRY_H_
6 #define REMOTING_CLIENT_VIEWPORT_GEOMETRY_H_
7
8 #include <array>
joedow 2017/04/28 21:29:53 I don't think you use array here
Yuwei 2017/04/28 23:53:41 Obsolete. File deleted.
9
10 namespace remoting {
11
12 struct Vector2D {
13 float x;
14 float y;
15 };
joedow 2017/04/28 21:29:53 I wonder if these should be public types exposed v
Yuwei 2017/04/28 23:53:41 Moved into ViewMatrix.
16
17 // Same as Vector2D. This alias just serves as a context hint.
18 using Point = Vector2D;
19
20 struct Bounds {
21 float left;
22 float right;
23 float top;
24 float bottom;
25 };
26
27 // Moves the point inside the bounds with minimum displacement if it is out of
28 // the bounds.
29 Point ConstrainPointToBounds(const Bounds& bounds, const Point& point);
joedow 2017/04/28 21:29:53 This is only used in DesktopView so move it into a
Yuwei 2017/04/28 23:53:41 Moved into DesktopViewport
30
31 } // namespace remoting
32
33 #endif // REMOTING_CLIENT_VIEWPORT_GEOMETRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698