OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/ui/views/tabs/window_finder.h" | 5 #include "chrome/browser/ui/views/tabs/window_finder.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "chrome/browser/ui/host_desktop.h" | 8 #include "chrome/browser/ui/host_desktop.h" |
9 #include "ui/aura/root_window.h" | |
10 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/aura/window_event_dispatcher.h" |
11 #include "ui/base/x/x11_util.h" | 11 #include "ui/base/x/x11_util.h" |
12 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" | 12 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" |
13 | 13 |
14 #if defined(USE_ASH) | 14 #if defined(USE_ASH) |
15 aura::Window* GetLocalProcessWindowAtPointAsh( | 15 aura::Window* GetLocalProcessWindowAtPointAsh( |
16 const gfx::Point& screen_point, | 16 const gfx::Point& screen_point, |
17 const std::set<aura::Window*>& ignore); | 17 const std::set<aura::Window*>& ignore); |
18 #endif | 18 #endif |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 #if defined(USE_ASH) | 184 #if defined(USE_ASH) |
185 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) | 185 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) |
186 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); | 186 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); |
187 #endif | 187 #endif |
188 // The X11 server is the canonical state of what the window stacking order | 188 // The X11 server is the canonical state of what the window stacking order |
189 // is. | 189 // is. |
190 XID xid = | 190 XID xid = |
191 LocalProcessWindowFinder::GetProcessWindowAtPoint(screen_point, ignore); | 191 LocalProcessWindowFinder::GetProcessWindowAtPoint(screen_point, ignore); |
192 return views::DesktopWindowTreeHostX11::GetContentWindowForXID(xid); | 192 return views::DesktopWindowTreeHostX11::GetContentWindowForXID(xid); |
193 } | 193 } |
OLD | NEW |