| 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 #include "remoting/client/desktop_viewport.h" | 5 #include "remoting/client/ui/desktop_viewport.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 | 10 |
| 11 namespace remoting { | 11 namespace remoting { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 float MAX_ZOOM_LEVEL = 100.f; | 15 float MAX_ZOOM_LEVEL = 100.f; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 if (new_point.y < bounds.top) { | 238 if (new_point.y < bounds.top) { |
| 239 new_point.y = bounds.top; | 239 new_point.y = bounds.top; |
| 240 } else if (new_point.y > bounds.bottom) { | 240 } else if (new_point.y > bounds.bottom) { |
| 241 new_point.y = bounds.bottom; | 241 new_point.y = bounds.bottom; |
| 242 } | 242 } |
| 243 return new_point; | 243 return new_point; |
| 244 } | 244 } |
| 245 | 245 |
| 246 } // namespace remoting | 246 } // namespace remoting |
| OLD | NEW |