| 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" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/macros.h" |
| 14 #include "build/build_config.h" |
| 13 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser_list.h" | 17 #include "chrome/browser/ui/browser_list.h" |
| 16 #include "chrome/browser/ui/browser_window.h" | 18 #include "chrome/browser/ui/browser_window.h" |
| 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 19 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 18 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" | 20 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" |
| 19 #include "chrome/browser/ui/views/frame/browser_view.h" | 21 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 20 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" | 22 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" |
| 21 #include "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h" | 23 #include "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h" |
| 22 #include "chrome/browser/ui/views/tabs/tab.h" | 24 #include "chrome/browser/ui/views/tabs/tab.h" |
| (...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1809 chrome::HOST_DESKTOP_TYPE_NATIVE); | 1811 chrome::HOST_DESKTOP_TYPE_NATIVE); |
| 1810 for (BrowserList::const_iterator it = browser_list->begin(); | 1812 for (BrowserList::const_iterator it = browser_list->begin(); |
| 1811 it != browser_list->end(); ++it) { | 1813 it != browser_list->end(); ++it) { |
| 1812 if ((*it)->tab_strip_model()->empty()) | 1814 if ((*it)->tab_strip_model()->empty()) |
| 1813 exclude.insert((*it)->window()->GetNativeWindow()); | 1815 exclude.insert((*it)->window()->GetNativeWindow()); |
| 1814 } | 1816 } |
| 1815 #endif | 1817 #endif |
| 1816 return GetLocalProcessWindowAtPoint(host_desktop_type_, screen_point, exclude, | 1818 return GetLocalProcessWindowAtPoint(host_desktop_type_, screen_point, exclude, |
| 1817 dragged_window); | 1819 dragged_window); |
| 1818 } | 1820 } |
| OLD | NEW |