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

Side by Side Diff: chrome/browser/ui/views/tabs/window_finder.h

Issue 2099513003: mus: Use the new drag API to implement tab dragging in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dragging-part-1
Patch Set: Add some comments to window finder interface. 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
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 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 namespace aura { 12 namespace aura {
13 class Window; 13 class Window;
14 } 14 }
15 15
16 namespace gfx { 16 namespace gfx {
17 class Point; 17 class Point;
18 } 18 }
19 19
20 // Class used by the tabstrip to find chrome windows that we can attach tabs
21 // to.
20 class WindowFinder { 22 class WindowFinder {
21 public: 23 public:
22 WindowFinder(); 24 WindowFinder();
23 virtual ~WindowFinder(); 25 virtual ~WindowFinder();
24 26
27 // Finds the topmost chrome window at |screen_point|. Ignores the windows in
28 // |ignore|, which contain windows such as the tab being dragged right now.
sky 2016/07/01 16:01:16 Can you also add the point you weren't aware of? P
25 virtual gfx::NativeWindow GetLocalProcessWindowAtPoint( 29 virtual gfx::NativeWindow GetLocalProcessWindowAtPoint(
26 const gfx::Point& screen_point, 30 const gfx::Point& screen_point,
27 const std::set<gfx::NativeWindow>& ignore); 31 const std::set<gfx::NativeWindow>& ignore);
28 32
29 private: 33 private:
30 DISALLOW_COPY_AND_ASSIGN(WindowFinder); 34 DISALLOW_COPY_AND_ASSIGN(WindowFinder);
31 }; 35 };
32 36
33 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_ 37 #endif // CHROME_BROWSER_UI_VIEWS_TABS_WINDOW_FINDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698