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

Issue 871423004: Mac: Clean up outdated use of NSThemeFrame (Closed)

Created:
5 years, 10 months ago by Andre
Modified:
5 years, 10 months ago
Reviewers:
Robert Sesek, erikchen
CC:
chromium-reviews, erikwright+watch_chromium.org, rohitrao (ping after 24h)
Base URL:
https://chromium.googlesource.com/chromium/src.git@themed-drawing
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Clean up outdated use of NSThemeFrame We have now moved to a better place where we no longer swizzle NSThemeFrame's drawRect, and use a subview instead (TabStripBackgroundView). We also no longer add subviews to NSThemeFrame (with the exception of TabStripBackgroundView), and use a full-size content view instead. This is a clean-up of code that relies on outdated assumptions. For example, FramedBrowserWindow was unnecessarily calling setNeedsDisplay and setNeedsDisplayInRect. BUG=453996 Committed: https://crrev.com/51fe497c74cf1378f40159250fa1d627e893cf01 Cr-Commit-Position: refs/heads/master@{#314845}

Patch Set 1 #

Total comments: 8

Patch Set 2 : No need to floor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -109 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/framed_browser_window.mm View 1 8 chunks +2 lines, -75 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_window_controller.h View 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_window_controller.mm View 3 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/ui/cocoa/themed_window.h View 1 chunk +4 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Andre
Robert, Erik, please review. https://codereview.chromium.org/871423004/diff/1/chrome/browser/ui/cocoa/browser_window_controller.h File chrome/browser/ui/cocoa/browser_window_controller.h (right): https://codereview.chromium.org/871423004/diff/1/chrome/browser/ui/cocoa/browser_window_controller.h#newcode356 chrome/browser/ui/cocoa/browser_window_controller.h:356: // Returns the position in ...
5 years, 10 months ago (2015-02-04 23:03:23 UTC) #2
erikchen
https://codereview.chromium.org/871423004/diff/1/chrome/browser/ui/cocoa/framed_browser_window.mm File chrome/browser/ui/cocoa/framed_browser_window.mm (left): https://codereview.chromium.org/871423004/diff/1/chrome/browser/ui/cocoa/framed_browser_window.mm#oldcode222 chrome/browser/ui/cocoa/framed_browser_window.mm:222: [[self frameView] setNeedsDisplay:YES]; It seems like this class was ...
5 years, 10 months ago (2015-02-04 23:53:55 UTC) #3
Andre
https://codereview.chromium.org/871423004/diff/1/chrome/browser/ui/cocoa/framed_browser_window.mm File chrome/browser/ui/cocoa/framed_browser_window.mm (left): https://codereview.chromium.org/871423004/diff/1/chrome/browser/ui/cocoa/framed_browser_window.mm#oldcode222 chrome/browser/ui/cocoa/framed_browser_window.mm:222: [[self frameView] setNeedsDisplay:YES]; On 2015/02/04 23:53:55, erikchen wrote: > ...
5 years, 10 months ago (2015-02-05 01:04:26 UTC) #4
erikchen
lgtm
5 years, 10 months ago (2015-02-05 01:26:04 UTC) #5
Robert Sesek
LGTM
5 years, 10 months ago (2015-02-05 19:01:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/871423004/20001
5 years, 10 months ago (2015-02-05 19:04:40 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-05 19:09:05 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 19:10:06 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/51fe497c74cf1378f40159250fa1d627e893cf01
Cr-Commit-Position: refs/heads/master@{#314845}

Powered by Google App Engine
This is Rietveld 408576698