OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "services/ui/ws/window_finder.h" | 5 #include "services/ui/ws/window_finder.h" |
6 | 6 |
7 #include "base/containers/adapters.h" | 7 #include "base/containers/adapters.h" |
8 #include "services/ui/surfaces/surfaces_state.h" | |
9 #include "services/ui/ws/server_window.h" | 8 #include "services/ui/ws/server_window.h" |
10 #include "services/ui/ws/server_window_delegate.h" | 9 #include "services/ui/ws/server_window_delegate.h" |
11 #include "services/ui/ws/server_window_surface.h" | 10 #include "services/ui/ws/server_window_surface.h" |
12 #include "services/ui/ws/server_window_surface_manager.h" | 11 #include "services/ui/ws/server_window_surface_manager.h" |
13 #include "services/ui/ws/window_coordinate_conversions.h" | 12 #include "services/ui/ws/window_coordinate_conversions.h" |
14 #include "ui/gfx/geometry/point.h" | 13 #include "ui/gfx/geometry/point.h" |
15 #include "ui/gfx/geometry/point_f.h" | 14 #include "ui/gfx/geometry/point_f.h" |
16 #include "ui/gfx/transform.h" | 15 #include "ui/gfx/transform.h" |
17 | 16 |
18 namespace ui { | 17 namespace ui { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 ServerWindow* current = window; | 65 ServerWindow* current = window; |
67 while (current->parent()) { | 66 while (current->parent()) { |
68 transform.Translate(-current->bounds().x(), -current->bounds().y()); | 67 transform.Translate(-current->bounds().x(), -current->bounds().y()); |
69 current = current->parent(); | 68 current = current->parent(); |
70 } | 69 } |
71 return transform; | 70 return transform; |
72 } | 71 } |
73 | 72 |
74 } // namespace ws | 73 } // namespace ws |
75 } // namespace ui | 74 } // namespace ui |
OLD | NEW |