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

Issue 1905163002: [Mac][Material Design] Rework how location bar shadow is drawn. (Closed)

Created:
4 years, 8 months ago by shrike
Modified:
4 years, 7 months ago
Reviewers:
tapted
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac][Material Design] Rework how location bar shadow is drawn. The location bar in Material Design has a very faint line of shadow beneath it in Incognito mode. I originally accomplished this by drawing it within the bounds of the location bar but by borrowing a pixel row I changed the height of the interior of the location bar, causing items within the bar to no longer be vertically centered. This change moves the shadow into a separate view. R=tapted@chromium.org BUG=594847 Committed: https://crrev.com/56996c30e8a829fb4f7e4733845717e23f9f1b14 Cr-Commit-Position: refs/heads/master@{#390764}

Patch Set 1 #

Patch Set 2 : Fix for Retina screens. #

Total comments: 14

Patch Set 3 : Address comments. #

Total comments: 11

Patch Set 4 : Fix nits. #

Patch Set 5 : Fix crasher with installing a theme. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -10 lines) Patch
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm View 1 2 3 4 4 chunks +84 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm View 1 2 3 4 3 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
shrike
PTAL
4 years, 8 months ago (2016-04-21 21:29:17 UTC) #1
shrike
avi@ has been reviewing my cls but I see that he's OOO for two weeks. ...
4 years, 8 months ago (2016-04-21 21:30:29 UTC) #4
tapted
https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode29 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:29: @interface AutocompleteTextFieldShadowView : NSView { nit: curlies not needed ...
4 years, 8 months ago (2016-04-22 01:11:46 UTC) #5
shrike
https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode45 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:45: [[NSColor colorWithCalibratedWhite:69 / 255. alpha:1] set]; On 2016/04/22 01:11:46, ...
4 years, 8 months ago (2016-04-22 02:09:00 UTC) #6
tapted
https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode45 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:45: [[NSColor colorWithCalibratedWhite:69 / 255. alpha:1] set]; On 2016/04/22 02:09:00, ...
4 years, 8 months ago (2016-04-22 04:41:34 UTC) #7
shrike
PTAL https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1905163002/diff/20001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode29 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:29: @interface AutocompleteTextFieldShadowView : NSView { On 2016/04/22 01:11:46, ...
4 years, 7 months ago (2016-04-26 19:19:30 UTC) #8
tapted
lgtm - just a bunch of nits. (there's also an R=avi in the CL description, ...
4 years, 7 months ago (2016-04-27 00:55:33 UTC) #9
shrike
https://codereview.chromium.org/1905163002/diff/40001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1905163002/diff/40001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode32 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:32: AutocompleteTextField* textField_; // weak On 2016/04/27 00:55:32, tapted wrote: ...
4 years, 7 months ago (2016-04-27 17:00:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905163002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905163002/60001
4 years, 7 months ago (2016-04-27 17:00:46 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-04-27 17:40:51 UTC) #15
shrike
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1928783003/ by shrike@chromium.org. ...
4 years, 7 months ago (2016-04-27 22:11:31 UTC) #17
shrike
The code that notifies NSViews of Chrome theme changes loops through the views with a ...
4 years, 7 months ago (2016-04-28 00:36:21 UTC) #18
tapted
lgtm https://codereview.chromium.org/1905163002/diff/40001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm File chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm (right): https://codereview.chromium.org/1905163002/diff/40001/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm#newcode39 chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm:39: self = [self initWithFrame:NSZeroRect]; On 2016/04/27 17:00:22, shrike ...
4 years, 7 months ago (2016-04-28 00:41:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1905163002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1905163002/80001
4 years, 7 months ago (2016-04-29 20:39:26 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-04-29 21:22:07 UTC) #23
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c1bb0685bfb2257b22548240af9c622402697780 Cr-Commit-Position: refs/heads/master@{#390115}
4 years, 7 months ago (2016-04-30 17:10:57 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:29:09 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/56996c30e8a829fb4f7e4733845717e23f9f1b14
Cr-Commit-Position: refs/heads/master@{#390764}

Powered by Google App Engine
This is Rietveld 408576698