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

Issue 2351183003: [Mac] Avoid "adding unknown subview" warning. (Closed)

Created:
4 years, 3 months ago by shrike
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Avoid "adding unknown subview" warning. Chrome Mac has added a subview above the window's content view, which the Appkit warns about at runtime. Presumably, doing so may break in a future macOS release. This cl adds Chrome's top-level subview to the window's content view, which is what the Appkit wants. BUG=605219

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -16 lines) Patch
M chrome/browser/ui/cocoa/framed_browser_window.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/full_size_content_window.mm View 1 2 chunks +14 lines, -11 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_view.mm View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_window_controller.mm View 1 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
erikchen
why don't you need NSFullSizeContentViewWindowMask? Does that get set automatically? Does this mean that https://bugs.chromium.org/p/chromium/issues/detail?id=380412#c25 ...
4 years, 3 months ago (2016-09-20 22:35:47 UTC) #2
shrike
On 2016/09/20 22:35:47, erikchen wrote: > why don't you need NSFullSizeContentViewWindowMask? Does that get set ...
4 years, 3 months ago (2016-09-20 22:43:19 UTC) #3
erikchen
On 2016/09/20 22:43:19, shrike wrote: > On 2016/09/20 22:35:47, erikchen wrote: > > why don't ...
4 years, 3 months ago (2016-09-20 22:53:36 UTC) #4
shrike
On 2016/09/20 22:53:36, erikchen wrote: > Can you try the steps in > https://bugs.chromium.org/p/chromium/issues/detail?id=380412#c25 to ...
4 years, 3 months ago (2016-09-20 23:00:25 UTC) #5
erikchen
On 2016/09/20 23:00:25, shrike wrote: > On 2016/09/20 22:53:36, erikchen wrote: > > Can you ...
4 years, 3 months ago (2016-09-20 23:07:42 UTC) #6
erikchen
https://codereview.chromium.org/2351183003/diff/1/chrome/browser/ui/cocoa/framed_browser_window.h File chrome/browser/ui/cocoa/framed_browser_window.h (right): https://codereview.chromium.org/2351183003/diff/1/chrome/browser/ui/cocoa/framed_browser_window.h#newcode24 chrome/browser/ui/cocoa/framed_browser_window.h:24: const CGFloat kBrowserFrameViewPaintHeight = 37.0; I imagine we'll need ...
4 years, 3 months ago (2016-09-20 23:07:47 UTC) #7
shrike
On 2016/09/20 23:07:42, erikchen wrote: > If it "just works", I won't stop you from ...
4 years, 3 months ago (2016-09-20 23:14:57 UTC) #8
shrike
PTAL (but note that I still need to address the issue with the 37.0 frame ...
4 years, 3 months ago (2016-09-20 23:27:17 UTC) #9
erikchen
lgtm % frame paint height
4 years, 3 months ago (2016-09-20 23:32:50 UTC) #10
Eugene But (OOO till 7-30)
4 years, 3 months ago (2016-09-21 03:01:15 UTC) #12
I tested this CL on 10.11.6. It moves close/minimize/maximize buttons to the top
and breaks RTL :(. I will attach screenshots to the bug.

Powered by Google App Engine
This is Rietveld 408576698