Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h

Issue 882193003: Mac: Fix for janky tab dragging/reordering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ValidationMessageBubble
Patch Set: Fix for rsesek Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_COCOA_TABS_TAB_STRIP_DRAG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_DRAG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_DRAG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_DRAG_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <map> 9 #include <map>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 TabController* draggedTab_; // Weak. The tab controller being dragged. 53 TabController* draggedTab_; // Weak. The tab controller being dragged.
54 54
55 TabWindowController* draggedController_; // Weak. Controller being dragged. 55 TabWindowController* draggedController_; // Weak. Controller being dragged.
56 NSWindow* dragWindow_; // Weak. The window being dragged 56 NSWindow* dragWindow_; // Weak. The window being dragged
57 NSWindow* dragOverlay_; // Weak. The overlay being dragged 57 NSWindow* dragOverlay_; // Weak. The overlay being dragged
58 58
59 TabWindowController* targetController_; // weak. Controller being targeted 59 TabWindowController* targetController_; // weak. Controller being targeted
60 } 60 }
61 61
62 // The tab being dragged, or nil if not dragging a tab.
63 @property(readonly) TabController* draggedTab;
64
62 // Designated initializer. 65 // Designated initializer.
63 - (id)initWithTabStripController:(TabStripController*)controller; 66 - (id)initWithTabStripController:(TabStripController*)controller;
64 67
65 // TabDraggingEventTarget methods are also implemented. 68 // TabDraggingEventTarget methods are also implemented.
66 69
67 @end 70 @end
68 71
69 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_DRAG_CONTROLLER_H_ 72 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_DRAG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698