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

Issue 19918002: Refactor [FramedBrowserWindow drawWindowThemeInDirtyRect:] to use themeImagePositionForAlignment: (Closed)

Created:
7 years, 5 months ago by pkotwicz
Modified:
7 years, 4 months ago
Reviewers:
Robert Sesek, Nico
CC:
chromium-reviews, tfarina, rohitrao (ping after 24h), Robert Sesek, sail, ccameron, Avi (use Gerrit)
Visibility:
Public.

Description

Additional refactor necessary to fix the misaligned tab background images. (https://codereview.chromium.org/18486007/) - Make [FramedBrowserWindow drawWindowThemeInDirtyRect:] use themeImagePositionForAlignment: - Rename themePatternPhaseForAlignment: to themeImagePositionForAlignment:. This allows themeImagePositionForAlignment: to be used for positioning IDR_THEME_FRAME_OVERLAY. The renaming makes it clear that there is a single correct return value for themeImagePositionForAlignment:. Phase on the other hand is periodic. (This refactoring happens to make IDR_THEME_FRAME_OVERLAY properly line up with IDR_THEME_FRAME. See http://www.corp.google.com/~pkotwicz/theme_testing/theme_overlay.crx) - Swap setPatternPhase with cr_setPatternPhase. That makes the theme images line up consistently with or without --use-core-animation in presentation mode - Split [BrowserWindowUtils themeImagePositionFor:] into [BrowserWindowUtils themeImagePositionFor:] and [BrowserWindowUtils themeImagePositionInTabStripCoords:]. This will allow the new tab button to use [BrowserWindowUtils themeImagePositionInTabStripCoords:] in https://codereview.chromium.org/18486007/ BUG=176857 TEST=None NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217608

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Nits as per rsesek@ #

Patch Set 3 : A few comment changes #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -99 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm View 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_utils.h View 1 2 2 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_utils.mm View 1 2 1 chunk +43 lines, -25 lines 0 comments Download
M chrome/browser/ui/cocoa/chrome_browser_window.mm View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/find_bar/find_bar_view.mm View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/floating_bar_backing_view.mm View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/framed_browser_window.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/framed_browser_window.mm View 1 2 3 8 chunks +21 lines, -32 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_view.mm View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_view.mm View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_window_controller.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/themed_window.h View 2 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/themed_window.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/toolbar/toolbar_view.mm View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
pkotwicz
Nico, can you please take a look? The main reason for this change is to ...
7 years, 5 months ago (2013-07-21 23:10:29 UTC) #1
Nico
https://codereview.chromium.org/19918002/diff/4001/chrome/browser/ui/cocoa/framed_browser_window.mm File chrome/browser/ui/cocoa/framed_browser_window.mm (right): https://codereview.chromium.org/19918002/diff/4001/chrome/browser/ui/cocoa/framed_browser_window.mm#newcode451 chrome/browser/ui/cocoa/framed_browser_window.mm:451: NSView* frameView = [[[view window] contentView] superview]; On 2013/07/21 ...
7 years, 5 months ago (2013-07-22 04:18:01 UTC) #2
pkotwicz
https://codereview.chromium.org/19918002/diff/4001/chrome/browser/ui/cocoa/framed_browser_window.mm File chrome/browser/ui/cocoa/framed_browser_window.mm (right): https://codereview.chromium.org/19918002/diff/4001/chrome/browser/ui/cocoa/framed_browser_window.mm#newcode451 chrome/browser/ui/cocoa/framed_browser_window.mm:451: NSView* frameView = [[[view window] contentView] superview]; I did ...
7 years, 5 months ago (2013-07-22 21:23:30 UTC) #3
pkotwicz
Ping!
7 years, 5 months ago (2013-07-24 01:35:19 UTC) #4
Nico
Sorry, missed this today :-/ Ping tomorrow 11am PST if I haven't looked by then. ...
7 years, 5 months ago (2013-07-24 03:26:52 UTC) #5
Nico
CL description: have a first short overview line before listing all the individual changes. Looking ...
7 years, 5 months ago (2013-07-24 20:35:10 UTC) #6
pkotwicz
Did you forget to publish the comments?
7 years, 5 months ago (2013-07-25 01:34:48 UTC) #7
Nico
I apologize for the atrocious turnaround time. Code lgtm as far as I can see. ...
7 years, 4 months ago (2013-07-30 00:13:51 UTC) #8
Nico
On 2013/07/30 00:13:51, Nico wrote: > I apologize for the atrocious turnaround time. > > ...
7 years, 4 months ago (2013-07-30 00:14:05 UTC) #9
Robert Sesek
Mac FS stuff looks generally okay. Some nits. https://codereview.chromium.org/19918002/diff/4001/chrome/browser/ui/cocoa/browser_window_utils.h File chrome/browser/ui/cocoa/browser_window_utils.h (right): https://codereview.chromium.org/19918002/diff/4001/chrome/browser/ui/cocoa/browser_window_utils.h#newcode45 chrome/browser/ui/cocoa/browser_window_utils.h:45: + ...
7 years, 4 months ago (2013-07-30 14:25:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/19918002/20001
7 years, 4 months ago (2013-08-04 15:07:03 UTC) #11
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=18691
7 years, 4 months ago (2013-08-04 15:19:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/19918002/48001
7 years, 4 months ago (2013-08-14 19:26:59 UTC) #13
commit-bot: I haz the power
7 years, 4 months ago (2013-08-14 19:30:47 UTC) #14
Message was sent while issue was closed.
Change committed as 217608

Powered by Google App Engine
This is Rietveld 408576698