| 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 23 matching lines...) Expand all Loading... |
| 34 #include "ui/gfx/geometry/point_conversions.h" | 34 #include "ui/gfx/geometry/point_conversions.h" |
| 35 #include "ui/gfx/screen.h" | 35 #include "ui/gfx/screen.h" |
| 36 #include "ui/views/event_monitor.h" | 36 #include "ui/views/event_monitor.h" |
| 37 #include "ui/views/focus/view_storage.h" | 37 #include "ui/views/focus/view_storage.h" |
| 38 #include "ui/views/widget/root_view.h" | 38 #include "ui/views/widget/root_view.h" |
| 39 #include "ui/views/widget/widget.h" | 39 #include "ui/views/widget/widget.h" |
| 40 | 40 |
| 41 #if defined(USE_ASH) | 41 #if defined(USE_ASH) |
| 42 #include "ash/accelerators/accelerator_commands.h" | 42 #include "ash/accelerators/accelerator_commands.h" |
| 43 #include "ash/shell.h" | 43 #include "ash/shell.h" |
| 44 #include "ash/wm/common/window_state.h" |
| 44 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | 45 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 45 #include "ash/wm/window_state.h" | |
| 46 #include "ash/wm/window_state_aura.h" | 46 #include "ash/wm/window_state_aura.h" |
| 47 #include "ui/wm/core/coordinate_conversion.h" | 47 #include "ui/wm/core/coordinate_conversion.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 #if defined(USE_AURA) | 50 #if defined(USE_AURA) |
| 51 #include "ui/aura/env.h" | 51 #include "ui/aura/env.h" |
| 52 #include "ui/aura/window.h" | 52 #include "ui/aura/window.h" |
| 53 #include "ui/wm/core/window_modality_controller.h" | 53 #include "ui/wm/core/window_modality_controller.h" |
| 54 #endif | 54 #endif |
| 55 | 55 |
| (...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 // TODO(pkotwicz): Fix this properly (crbug.com/358482) | 1804 // TODO(pkotwicz): Fix this properly (crbug.com/358482) |
| 1805 for (auto* browser : *BrowserList::GetInstance()) { | 1805 for (auto* browser : *BrowserList::GetInstance()) { |
| 1806 if (browser->tab_strip_model()->empty()) | 1806 if (browser->tab_strip_model()->empty()) |
| 1807 exclude.insert(browser->window()->GetNativeWindow()); | 1807 exclude.insert(browser->window()->GetNativeWindow()); |
| 1808 } | 1808 } |
| 1809 #endif | 1809 #endif |
| 1810 base::WeakPtr<TabDragController> ref(weak_factory_.GetWeakPtr()); | 1810 base::WeakPtr<TabDragController> ref(weak_factory_.GetWeakPtr()); |
| 1811 *window = window_finder_->GetLocalProcessWindowAtPoint(screen_point, exclude); | 1811 *window = window_finder_->GetLocalProcessWindowAtPoint(screen_point, exclude); |
| 1812 return ref ? Liveness::ALIVE : Liveness::DELETED; | 1812 return ref ? Liveness::ALIVE : Liveness::DELETED; |
| 1813 } | 1813 } |
| OLD | NEW |