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

Issue 1368363003: Programmatically render the omnibox border (Closed)

Created:
5 years, 2 months ago by jonross
Modified:
5 years, 2 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Programmatically render the omnibox border For Material Design switch from using an asset for rendering the omnibox border to programmatically rendering it. It is now a one pixel line regardless of screen scaling. TEST=manual testing on 100% & 200% devices. Confirmed the rendering matched the designed asset. BUG=527863 Committed: https://crrev.com/701b557ba7141b55636ae7572160cb8fa7581267 Cr-Commit-Position: refs/heads/master@{#351370}

Patch Set 1 : #

Total comments: 9

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Scale Fix #

Patch Set 5 : Corner Rounding #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -5 lines) Patch
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 3 chunks +32 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (9 generated)
jonross
Hi Terry, Mind taking a first look?
5 years, 2 months ago (2015-09-28 14:52:10 UTC) #3
jonross
https://codereview.chromium.org/1368363003/diff/20001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1368363003/diff/20001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1279 chrome/browser/ui/views/location_bar/location_bar_view.cc:1279: if (ui::MaterialDesignController::IsModeMaterial()) { If this pattern begins to be ...
5 years, 2 months ago (2015-09-28 14:55:00 UTC) #4
tdanderson
Please see some comments below. It would also be a good idea to attach screenshots ...
5 years, 2 months ago (2015-09-28 15:12:14 UTC) #5
jonross
https://codereview.chromium.org/1368363003/diff/20001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1368363003/diff/20001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode540 chrome/browser/ui/views/location_bar/location_bar_view.cc:540: return min_size; On 2015/09/28 15:12:14, tdanderson wrote: > With ...
5 years, 2 months ago (2015-09-28 15:21:48 UTC) #6
tdanderson
lgtm https://codereview.chromium.org/1368363003/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.h File chrome/browser/ui/views/location_bar/location_bar_view.h (right): https://codereview.chromium.org/1368363003/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.h#newcode405 chrome/browser/ui/views/location_bar/location_bar_view.h:405: // Object used to paint the border when ...
5 years, 2 months ago (2015-09-28 15:52:12 UTC) #7
jonross
https://codereview.chromium.org/1368363003/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.h File chrome/browser/ui/views/location_bar/location_bar_view.h (right): https://codereview.chromium.org/1368363003/diff/40001/chrome/browser/ui/views/location_bar/location_bar_view.h#newcode405 chrome/browser/ui/views/location_bar/location_bar_view.h:405: // Object used to paint the border when not ...
5 years, 2 months ago (2015-09-28 17:42:30 UTC) #8
jonross
Hey Peter, Could you review this change? Thanks, Jon
5 years, 2 months ago (2015-09-28 17:42:56 UTC) #9
jonross
Hey Peter, Could you review this change? Thanks, Jon
5 years, 2 months ago (2015-09-28 17:45:20 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/1368363003/diff/60001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1368363003/diff/60001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1286 chrome/browser/ui/views/location_bar/location_bar_view.cc:1286: paint.setColor(SkColorSetARGBInline(0x40, 0x0, 0x0, 0x0)); Don't explicitly call the ...
5 years, 2 months ago (2015-09-28 23:01:10 UTC) #12
jonross
https://codereview.chromium.org/1368363003/diff/60001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1368363003/diff/60001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1286 chrome/browser/ui/views/location_bar/location_bar_view.cc:1286: paint.setColor(SkColorSetARGBInline(0x40, 0x0, 0x0, 0x0)); On 2015/09/28 23:01:10, Peter Kasting ...
5 years, 2 months ago (2015-09-29 17:25:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368363003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368363003/100001
5 years, 2 months ago (2015-09-29 17:26:45 UTC) #17
Peter Kasting
I just took a look at your screenshots and they exhibit the problem I described: ...
5 years, 2 months ago (2015-09-29 17:33:09 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/110326)
5 years, 2 months ago (2015-09-29 17:38:21 UTC) #20
jonross
On 2015/09/29 17:33:09, Peter Kasting wrote: > I just took a look at your screenshots ...
5 years, 2 months ago (2015-09-29 17:50:39 UTC) #21
Peter Kasting
Cool, looks better. LGTM https://codereview.chromium.org/1368363003/diff/120001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1368363003/diff/120001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1271 chrome/browser/ui/views/location_bar/location_bar_view.cc:1271: recorder.canvas()->DrawFocusRect(omnibox_view_->bounds()); Nit: recorder.canvas() is used ...
5 years, 2 months ago (2015-09-29 18:12:37 UTC) #22
jonross
https://codereview.chromium.org/1368363003/diff/120001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/1368363003/diff/120001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1271 chrome/browser/ui/views/location_bar/location_bar_view.cc:1271: recorder.canvas()->DrawFocusRect(omnibox_view_->bounds()); On 2015/09/29 18:12:37, Peter Kasting wrote: > Nit: ...
5 years, 2 months ago (2015-09-29 18:37:57 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1368363003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1368363003/140001
5 years, 2 months ago (2015-09-29 18:38:40 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 2 months ago (2015-09-29 19:18:15 UTC) #27
commit-bot: I haz the power
5 years, 2 months ago (2015-09-29 19:18:52 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/701b557ba7141b55636ae7572160cb8fa7581267
Cr-Commit-Position: refs/heads/master@{#351370}

Powered by Google App Engine
This is Rietveld 408576698