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

Side by Side Diff: services/ui/ws/window_finder.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « services/ui/ws/window_finder.h ('k') | services/ui/ws/window_finder_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "components/mus/ws/window_finder.h" 5 #include "services/ui/ws/window_finder.h"
6 6
7 #include "components/mus/surfaces/surfaces_state.h" 7 #include "services/ui/surfaces/surfaces_state.h"
8 #include "components/mus/ws/server_window.h" 8 #include "services/ui/ws/server_window.h"
9 #include "components/mus/ws/server_window_delegate.h" 9 #include "services/ui/ws/server_window_delegate.h"
10 #include "components/mus/ws/server_window_surface.h" 10 #include "services/ui/ws/server_window_surface.h"
11 #include "components/mus/ws/server_window_surface_manager.h" 11 #include "services/ui/ws/server_window_surface_manager.h"
12 #include "components/mus/ws/window_coordinate_conversions.h" 12 #include "services/ui/ws/window_coordinate_conversions.h"
13 #include "ui/gfx/geometry/point.h" 13 #include "ui/gfx/geometry/point.h"
14 #include "ui/gfx/geometry/point_f.h" 14 #include "ui/gfx/geometry/point_f.h"
15 #include "ui/gfx/transform.h" 15 #include "ui/gfx/transform.h"
16 16
17 namespace mus { 17 namespace mus {
18 namespace ws { 18 namespace ws {
19 19
20 bool IsValidWindowForEvents(ServerWindow* window) { 20 bool IsValidWindowForEvents(ServerWindow* window) {
21 ServerWindowSurfaceManager* surface_manager = window->surface_manager(); 21 ServerWindowSurfaceManager* surface_manager = window->surface_manager();
22 return surface_manager && 22 return surface_manager &&
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ServerWindow* current = window; 59 ServerWindow* current = window;
60 while (current->parent()) { 60 while (current->parent()) {
61 transform.Translate(-current->bounds().x(), -current->bounds().y()); 61 transform.Translate(-current->bounds().x(), -current->bounds().y());
62 current = current->parent(); 62 current = current->parent();
63 } 63 }
64 return transform; 64 return transform;
65 } 65 }
66 66
67 } // namespace ws 67 } // namespace ws
68 } // namespace mus 68 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/ws/window_finder.h ('k') | services/ui/ws/window_finder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698