Descriptionmac: Fix tab dragging visual bug in Yosemite.
In OSX 10.10+, all views must be added to the NSWindow's contentView. Some
views (like the tab strip and the profile icon) are placed on top of the title
bar and require special treatment. All other views are added as subviews of
'chromeContentView' in TabWindowController. This allows tab dragging and
fullscreen logic to easily move the views that don't need special treatment.
This CL also removes the instances where a VersionIndependentWindow's
contentView gets replaced by setContentView:. Instead, the 'chromeContentView'
gets passed around as a subview. This allows VersionIndependentWindow to remove
another of its internal hacks.
BUG=392239
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283166
Patch Set 1 : First #Patch Set 2 : Second. #
Total comments: 10
Patch Set 3 : Comments from andre. #
Total comments: 6
Patch Set 4 : Comments from shess. #
Total comments: 2
Patch Set 5 : Comments from shess, round two. #Patch Set 6 : Fix unit test. #Patch Set 7 : Set the frame of the chromeContentView when adding it as a subview. #
Messages
Total messages: 24 (0 generated)
|