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

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

Issue 2449103004: Refactor WindowFinder definition (Closed)
Patch Set: setting mus_window to null, for safety Created 4 years, 1 month 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
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 #include "chrome/browser/ui/views/tabs/window_finder_mus.h"
6 7
7 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
8 9
9 gfx::NativeWindow GetLocalProcessWindowAtPointAsh( 10 gfx::NativeWindow GetLocalProcessWindowAtPointAsh(
10 const gfx::Point& screen_point, 11 const gfx::Point& screen_point,
11 const std::set<gfx::NativeWindow>& ignore); 12 const std::set<gfx::NativeWindow>& ignore);
12 13
13 gfx::NativeWindow WindowFinder::GetLocalProcessWindowAtPoint( 14 gfx::NativeWindow WindowFinder::GetLocalProcessWindowAtPoint(
14 const gfx::Point& screen_point, 15 const gfx::Point& screen_point,
15 const std::set<gfx::NativeWindow>& ignore) { 16 const std::set<gfx::NativeWindow>& ignore) {
17 gfx::NativeWindow mus_result = nullptr;
18 if (GetLocalProcessWindowAtPointMus(screen_point, ignore, &mus_result))
19 return mus_result;
20
16 return GetLocalProcessWindowAtPointAsh(screen_point, ignore); 21 return GetLocalProcessWindowAtPointAsh(screen_point, ignore);
17 } 22 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/window_finder.h ('k') | chrome/browser/ui/views/tabs/window_finder_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698