| 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 "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser_list.h" | 15 #include "chrome/browser/ui/browser_list.h" |
| 16 #include "chrome/browser/ui/browser_window.h" | 16 #include "chrome/browser/ui/browser_window.h" |
| 17 #include "chrome/browser/ui/host_desktop.h" |
| 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 18 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" | 19 #include "chrome/browser/ui/tabs/tab_strip_model_delegate.h" |
| 19 #include "chrome/browser/ui/views/frame/browser_view.h" | 20 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 20 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" | 21 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" |
| 21 #include "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h" | 22 #include "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h" |
| 22 #include "chrome/browser/ui/views/tabs/tab.h" | 23 #include "chrome/browser/ui/views/tabs/tab.h" |
| 23 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 24 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| 24 #include "chrome/browser/ui/views/tabs/window_finder.h" | 25 #include "chrome/browser/ui/views/tabs/window_finder.h" |
| 25 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
| 26 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
| (...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1815 it != browser_list->end(); ++it) { | 1816 it != browser_list->end(); ++it) { |
| 1816 if ((*it)->tab_strip_model()->empty()) | 1817 if ((*it)->tab_strip_model()->empty()) |
| 1817 exclude.insert((*it)->window()->GetNativeWindow()); | 1818 exclude.insert((*it)->window()->GetNativeWindow()); |
| 1818 } | 1819 } |
| 1819 #endif | 1820 #endif |
| 1820 return GetLocalProcessWindowAtPoint(host_desktop_type_, | 1821 return GetLocalProcessWindowAtPoint(host_desktop_type_, |
| 1821 screen_point, | 1822 screen_point, |
| 1822 exclude); | 1823 exclude); |
| 1823 | 1824 |
| 1824 } | 1825 } |
| OLD | NEW |