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_CONTROLLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER2_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER2_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER2_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 static TabStripModel* GetModel(TabStrip* tabstrip); | 272 static TabStripModel* GetModel(TabStrip* tabstrip); |
273 | 273 |
274 // Returns the BrowserView of the currently attached TabStrip. | 274 // Returns the BrowserView of the currently attached TabStrip. |
275 BrowserView* GetAttachedBrowserView(); | 275 BrowserView* GetAttachedBrowserView(); |
276 | 276 |
277 // Creates and returns a new Browser to handle the drag. | 277 // Creates and returns a new Browser to handle the drag. |
278 Browser* CreateBrowserForDrag(TabStrip* source, | 278 Browser* CreateBrowserForDrag(TabStrip* source, |
279 const gfx::Point& screen_point, | 279 const gfx::Point& screen_point, |
280 std::vector<gfx::Rect>* drag_bounds); | 280 std::vector<gfx::Rect>* drag_bounds); |
281 | 281 |
| 282 // Marks whether |window| is constrained. While dragging we set this to false |
| 283 // to allow maximized windows to move any where. |
| 284 void SetTrackedByWorkspace(gfx::NativeWindow window, bool value); |
| 285 |
282 // Handles registering for notifications. | 286 // Handles registering for notifications. |
283 content::NotificationRegistrar registrar_; | 287 content::NotificationRegistrar registrar_; |
284 | 288 |
285 // The TabStrip the drag originated from. This is set to NULL if the source | 289 // The TabStrip the drag originated from. This is set to NULL if the source |
286 // tabstrip is deleted while we're detached. | 290 // tabstrip is deleted while we're detached. |
287 TabStrip* source_tabstrip_; | 291 TabStrip* source_tabstrip_; |
288 | 292 |
289 // The TabStrip the dragged Tab is currently attached to, or NULL if the | 293 // The TabStrip the dragged Tab is currently attached to, or NULL if the |
290 // dragged Tab is detached. | 294 // dragged Tab is detached. |
291 TabStrip* attached_tabstrip_; | 295 TabStrip* attached_tabstrip_; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // Non-null for the duration of RunMoveLoop. | 386 // Non-null for the duration of RunMoveLoop. |
383 BrowserView* move_loop_browser_view_; | 387 BrowserView* move_loop_browser_view_; |
384 | 388 |
385 // If non-null set to true from destructor. | 389 // If non-null set to true from destructor. |
386 bool* destroyed_; | 390 bool* destroyed_; |
387 | 391 |
388 DISALLOW_COPY_AND_ASSIGN(TabDragController2); | 392 DISALLOW_COPY_AND_ASSIGN(TabDragController2); |
389 }; | 393 }; |
390 | 394 |
391 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER2_H_ | 395 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER2_H_ |
OLD | NEW |