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

Side by Side Diff: chrome/browser/ui/views/tabs/window_finder_x11.cc

Issue 1562843002: Revert of Introduces window_finder_android.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « chrome/browser/ui/views/tabs/window_finder_win.cc ('k') | chrome/chrome_browser_ui.gypi » ('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 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 "ui/gfx/geometry/point_conversions.h" 7 #include "ui/gfx/geometry/point_conversions.h"
8 #include "ui/gfx/screen.h" 8 #include "ui/gfx/screen.h"
9 #include "ui/views/widget/desktop_aura/x11_topmost_window_finder.h" 9 #include "ui/views/widget/desktop_aura/x11_topmost_window_finder.h"
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 #if defined(USE_ASH) 24 #if defined(USE_ASH)
25 gfx::NativeWindow GetLocalProcessWindowAtPointAsh( 25 gfx::NativeWindow GetLocalProcessWindowAtPointAsh(
26 const gfx::Point& screen_point, 26 const gfx::Point& screen_point,
27 const std::set<gfx::NativeWindow>& ignore); 27 const std::set<gfx::NativeWindow>& ignore);
28 #endif 28 #endif
29 29
30 gfx::NativeWindow GetLocalProcessWindowAtPoint( 30 gfx::NativeWindow GetLocalProcessWindowAtPoint(
31 chrome::HostDesktopType host_desktop_type, 31 chrome::HostDesktopType host_desktop_type,
32 const gfx::Point& screen_point, 32 const gfx::Point& screen_point,
33 const std::set<gfx::NativeWindow>& ignore, 33 const std::set<gfx::NativeWindow>& ignore) {
34 gfx::NativeWindow source) {
35 #if defined(USE_ASH) 34 #if defined(USE_ASH)
36 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH) 35 if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH)
37 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); 36 return GetLocalProcessWindowAtPointAsh(screen_point, ignore);
38 #endif 37 #endif
39 38
40 // The X11 server is the canonical state of what the window stacking order 39 // The X11 server is the canonical state of what the window stacking order
41 // is. 40 // is.
42 views::X11TopmostWindowFinder finder; 41 views::X11TopmostWindowFinder finder;
43 return finder.FindLocalProcessWindowAt(DIPToPixelPoint(screen_point), ignore); 42 return finder.FindLocalProcessWindowAt(DIPToPixelPoint(screen_point), ignore);
44 } 43 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/window_finder_win.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698