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

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

Issue 1697243002: Remove HostDesktopType from window_finder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-26
Patch Set: . Created 4 years, 10 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 | « no previous file | chrome/browser/ui/views/tabs/window_finder.h » ('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 (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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/window_finder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698