OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tab_drag_controller.h" | 5 #include "chrome/browser/ui/views/tabs/tab_drag_controller.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1807 // Exclude windows which are pending deletion via Browser::TabStripEmpty(). | 1807 // Exclude windows which are pending deletion via Browser::TabStripEmpty(). |
1808 // These windows can be returned in the Linux Aura port because the browser | 1808 // These windows can be returned in the Linux Aura port because the browser |
1809 // window which was used for dragging is not hidden once all of its tabs are | 1809 // window which was used for dragging is not hidden once all of its tabs are |
1810 // attached to another browser window in DragBrowserToNewTabStrip(). | 1810 // attached to another browser window in DragBrowserToNewTabStrip(). |
1811 // TODO(pkotwicz): Fix this properly (crbug.com/358482) | 1811 // TODO(pkotwicz): Fix this properly (crbug.com/358482) |
1812 for (auto* browser : *BrowserList::GetInstance()) { | 1812 for (auto* browser : *BrowserList::GetInstance()) { |
1813 if (browser->tab_strip_model()->empty()) | 1813 if (browser->tab_strip_model()->empty()) |
1814 exclude.insert(browser->window()->GetNativeWindow()); | 1814 exclude.insert(browser->window()->GetNativeWindow()); |
1815 } | 1815 } |
1816 #endif | 1816 #endif |
1817 return GetLocalProcessWindowAtPoint(host_desktop_type_, | 1817 return GetLocalProcessWindowAtPoint(screen_point, exclude); |
1818 screen_point, | |
1819 exclude); | |
1820 | |
1821 } | 1818 } |
OLD | NEW |