| 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 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 // Returns the TabStrip for the specified window, or NULL if one doesn't exist | 278 // Returns the TabStrip for the specified window, or NULL if one doesn't exist |
| 279 // or isn't compatible. | 279 // or isn't compatible. |
| 280 TabStrip* GetTabStripForWindow(gfx::NativeWindow window); | 280 TabStrip* GetTabStripForWindow(gfx::NativeWindow window); |
| 281 | 281 |
| 282 // Returns the compatible TabStrip to drag to at the specified point (screen | 282 // Returns the compatible TabStrip to drag to at the specified point (screen |
| 283 // coordinates), or NULL if there is none. | 283 // coordinates), or NULL if there is none. |
| 284 Liveness GetTargetTabStripForPoint(const gfx::Point& point_in_screen, | 284 Liveness GetTargetTabStripForPoint(const gfx::Point& point_in_screen, |
| 285 TabStrip** tab_strip); | 285 TabStrip** tab_strip); |
| 286 | 286 |
| 287 // Returns true if |tabstrip| contains the specified point in screen | 287 // Returns true if |window|'s |tabstrip| contains the specified point in |
| 288 // coordinates. | 288 // screen coordinates. |
| 289 bool DoesTabStripContain(TabStrip* tabstrip, | 289 bool DoesTabStripContain(TabStrip* tabstrip, |
| 290 const gfx::Point& point_in_screen) const; | 290 const gfx::Point& point_in_screen, |
| 291 gfx::NativeWindow window) const; |
| 291 | 292 |
| 292 // Returns the DetachPosition given the specified location in screen | 293 // Returns the DetachPosition given the specified location in screen |
| 293 // coordinates. | 294 // coordinates. |
| 294 DetachPosition GetDetachPosition(const gfx::Point& point_in_screen); | 295 DetachPosition GetDetachPosition(const gfx::Point& point_in_screen); |
| 295 | 296 |
| 296 // Attach the dragged Tab to the specified TabStrip. | 297 // Attach the dragged Tab to the specified TabStrip. |
| 297 void Attach(TabStrip* attached_tabstrip, const gfx::Point& point_in_screen); | 298 void Attach(TabStrip* attached_tabstrip, const gfx::Point& point_in_screen); |
| 298 | 299 |
| 299 // Detach the dragged Tab from the current TabStrip. | 300 // Detach the dragged Tab from the current TabStrip. |
| 300 void Detach(ReleaseCapture release_capture); | 301 void Detach(ReleaseCapture release_capture); |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 std::unique_ptr<ui::EventHandler> escape_tracker_; | 601 std::unique_ptr<ui::EventHandler> escape_tracker_; |
| 601 | 602 |
| 602 std::unique_ptr<WindowFinder> window_finder_; | 603 std::unique_ptr<WindowFinder> window_finder_; |
| 603 | 604 |
| 604 base::WeakPtrFactory<TabDragController> weak_factory_; | 605 base::WeakPtrFactory<TabDragController> weak_factory_; |
| 605 | 606 |
| 606 DISALLOW_COPY_AND_ASSIGN(TabDragController); | 607 DISALLOW_COPY_AND_ASSIGN(TabDragController); |
| 607 }; | 608 }; |
| 608 | 609 |
| 609 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ | 610 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ |
| OLD | NEW |