| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DRAGGED_TAB_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // Move the DraggedTabView according to the current mouse screen position, | 188 // Move the DraggedTabView according to the current mouse screen position, |
| 189 // potentially updating the source and other TabStrips. | 189 // potentially updating the source and other TabStrips. |
| 190 void ContinueDragging(); | 190 void ContinueDragging(); |
| 191 | 191 |
| 192 // Handles dragging tabs while the tabs are attached. | 192 // Handles dragging tabs while the tabs are attached. |
| 193 void MoveAttached(const gfx::Point& screen_point); | 193 void MoveAttached(const gfx::Point& screen_point); |
| 194 | 194 |
| 195 // Handles dragging while the tabs are detached. | 195 // Handles dragging while the tabs are detached. |
| 196 void MoveDetached(const gfx::Point& screen_point); | 196 void MoveDetached(const gfx::Point& screen_point); |
| 197 | 197 |
| 198 #if defined(OS_WIN) && !defined(USE_AURA) |
| 198 // Returns the compatible TabStrip that is under the specified point (screen | 199 // Returns the compatible TabStrip that is under the specified point (screen |
| 199 // coordinates), or NULL if there is none. | 200 // coordinates), or NULL if there is none. |
| 200 BaseTabStrip* GetTabStripForPoint(const gfx::Point& screen_point); | 201 BaseTabStrip* GetTabStripForPoint(const gfx::Point& screen_point); |
| 202 #endif |
| 201 | 203 |
| 202 DockInfo GetDockInfoAtPoint(const gfx::Point& screen_point); | 204 DockInfo GetDockInfoAtPoint(const gfx::Point& screen_point); |
| 203 | 205 |
| 204 // Returns the specified |tabstrip| if it contains the specified point | 206 // Returns the specified |tabstrip| if it contains the specified point |
| 205 // (screen coordinates), NULL if it does not. | 207 // (screen coordinates), NULL if it does not. |
| 206 BaseTabStrip* GetTabStripIfItContains(BaseTabStrip* tabstrip, | 208 BaseTabStrip* GetTabStripIfItContains(BaseTabStrip* tabstrip, |
| 207 const gfx::Point& screen_point) const; | 209 const gfx::Point& screen_point) const; |
| 208 | 210 |
| 209 // Attach the dragged Tab to the specified TabStrip. | 211 // Attach the dragged Tab to the specified TabStrip. |
| 210 void Attach(BaseTabStrip* attached_tabstrip, const gfx::Point& screen_point); | 212 void Attach(BaseTabStrip* attached_tabstrip, const gfx::Point& screen_point); |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 // Index of the source tab in drag_data_. | 373 // Index of the source tab in drag_data_. |
| 372 size_t source_tab_index_; | 374 size_t source_tab_index_; |
| 373 | 375 |
| 374 // True until |MoveAttached| is invoked once. | 376 // True until |MoveAttached| is invoked once. |
| 375 bool initial_move_; | 377 bool initial_move_; |
| 376 | 378 |
| 377 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); | 379 DISALLOW_COPY_AND_ASSIGN(DraggedTabController); |
| 378 }; | 380 }; |
| 379 | 381 |
| 380 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ | 382 #endif // CHROME_BROWSER_UI_VIEWS_TABS_DRAGGED_TAB_CONTROLLER_H_ |
| OLD | NEW |