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

Issue 379293003: mac: Fix tab dragging visual bug in Yosemite. (Closed)

Created:
6 years, 5 months ago by erikchen
Modified:
6 years, 5 months ago
CC:
chromium-reviews, Avi (use Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mac: 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -26 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 4 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_window_controller.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_window_controller.mm View 1 2 3 4 5 6 5 chunks +24 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/version_independent_window.mm View 1 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
erikchen
andresantoso: Please review.
6 years, 5 months ago (2014-07-09 23:52:51 UTC) #1
erikchen
andresantoso: I've rewritten this CL. Please review.
6 years, 5 months ago (2014-07-10 23:30:52 UTC) #2
Andre
https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode981 chrome/browser/ui/cocoa/browser_window_controller_private.mm:981: if (floatingBarBackingView_) { I think this floatingBarBackingView_ is placed ...
6 years, 5 months ago (2014-07-11 00:57:11 UTC) #3
erikchen
andresantoso: PTAL https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/browser_window_controller_private.mm File chrome/browser/ui/cocoa/browser_window_controller_private.mm (right): https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/browser_window_controller_private.mm#newcode981 chrome/browser/ui/cocoa/browser_window_controller_private.mm:981: if (floatingBarBackingView_) { On 2014/07/11 00:57:11, Andre ...
6 years, 5 months ago (2014-07-11 01:17:43 UTC) #4
Andre
lgtm
6 years, 5 months ago (2014-07-11 01:34:00 UTC) #5
erikchen
shess: Looking for an OWNER review.
6 years, 5 months ago (2014-07-11 01:37:05 UTC) #6
Scott Hess - ex-Googler
https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm File chrome/browser/ui/cocoa/tabs/tab_window_controller.mm (right): https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm#newcode70 chrome/browser/ui/cocoa/tabs/tab_window_controller.mm:70: [self.chromeContentView addSubview:tabContentArea_]; On 2014/07/11 01:17:43, erikchen1 wrote: > On ...
6 years, 5 months ago (2014-07-11 18:08:34 UTC) #7
erikchen
shess: PTAL https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm File chrome/browser/ui/cocoa/tabs/tab_window_controller.mm (right): https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm#newcode70 chrome/browser/ui/cocoa/tabs/tab_window_controller.mm:70: [self.chromeContentView addSubview:tabContentArea_]; On 2014/07/11 18:08:34, Scott Hess ...
6 years, 5 months ago (2014-07-11 20:48:05 UTC) #8
Scott Hess - ex-Googler
LGTM, except that the constants need to be constant and k-prefixed. Because pedantic. https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm File ...
6 years, 5 months ago (2014-07-11 21:10:52 UTC) #9
erikchen
shess: PTAL https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm File chrome/browser/ui/cocoa/tabs/tab_window_controller.mm (right): https://codereview.chromium.org/379293003/diff/80001/chrome/browser/ui/cocoa/tabs/tab_window_controller.mm#newcode70 chrome/browser/ui/cocoa/tabs/tab_window_controller.mm:70: [self.chromeContentView addSubview:tabContentArea_]; On 2014/07/11 21:10:52, Scott Hess ...
6 years, 5 months ago (2014-07-11 21:18:19 UTC) #10
Scott Hess - ex-Googler
lgtm
6 years, 5 months ago (2014-07-11 21:19:54 UTC) #11
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 5 months ago (2014-07-11 21:30:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/379293003/130001
6 years, 5 months ago (2014-07-11 21:30:50 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-12 02:38:43 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-12 04:22:50 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/48437)
6 years, 5 months ago (2014-07-12 04:22:50 UTC) #16
erikchen
shess: PTAL I added 2 more lines. See the diff between patch set 7 and ...
6 years, 5 months ago (2014-07-14 18:39:40 UTC) #17
Scott Hess - ex-Googler
On 2014/07/14 18:39:40, erikchen1 wrote: > shess: PTAL > > I added 2 more lines. ...
6 years, 5 months ago (2014-07-14 19:11:49 UTC) #18
erikchen
On 2014/07/14 19:11:49, Scott Hess wrote: > On 2014/07/14 18:39:40, erikchen1 wrote: > > shess: ...
6 years, 5 months ago (2014-07-14 19:35:01 UTC) #19
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 5 months ago (2014-07-14 19:36:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/379293003/170001
6 years, 5 months ago (2014-07-14 19:37:56 UTC) #21
commit-bot: I haz the power
Change committed as 283166
6 years, 5 months ago (2014-07-15 08:46:17 UTC) #22
Michael Achenbach
A revert of this CL has been created in https://codereview.chromium.org/390313002/ by machenbach@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-15 09:25:26 UTC) #23
danakj
6 years, 5 months ago (2014-07-16 21:12:50 UTC) #24
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/394333002/ by danakj@chromium.org.

The reason for reverting is: Causing failures on the main waterfall.

http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%2010.6%20Tes...

BrowserWindowFullScreenControllerTest.TestActivate and
BrowserWindowFullScreenControllerTest.TestFullscreen both crash..

Powered by Google App Engine
This is Rietveld 408576698