Mac: Fix window border appearance when tab dragging.
commite2955f27eb423393f00f3c08cd57ff8af9f94eb6
authorandresantoso <andresantoso@chromium.org>
Fri, 28 Aug 2015 19:05:06 +0000 (28 12:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 28 Aug 2015 19:06:02 +0000 (28 19:06 +0000)
tree8ce3e272a6cab1bf2121cb549f569eca6e9d7096
parentc5ecd7ddc1a1f5a6ee104ea2ffffb82a0db288b7
Mac: Fix window border appearance when tab dragging.

As written in -[TabStripDragController setWindowBackgroundVisibility:],
dragWindow_ should be invisible and the overlayWindow should have a shadow
when there is a |targetController_|.
Fix a case when this state is out of sync right after creation of the dragged
window.

BUG=517447
TEST=Open 2 tabs. Drag a tab to horizontally to the right until it detached
while still targetting its current window. The dragged window should now have
a border and shadow.

Review URL: https://codereview.chromium.org/1307183005

Cr-Commit-Position: refs/heads/master@{#346202}
chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm