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

Issue 92073003: [SiteChip] Draw site chip icon and site title. Drag support. (Closed)

Created:
7 years ago by Greg Billock
Modified:
7 years ago
CC:
chromium-reviews, tfarina, Justin Donnelly
Visibility:
Public.

Description

[SiteChip] Draw site chip icon and site title. Drag support. BUG=315944 R=pkasting@chromium.org TBR=cpu Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240175

Patch Set 1 #

Patch Set 2 : More icon and name improvements. #

Patch Set 3 : Add 16x16 full icon accounting #

Patch Set 4 : Rebase to master #

Patch Set 5 : . #

Total comments: 80

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : Lots of adjustments #

Patch Set 9 : Rebased on new ToolbarModel method #

Patch Set 10 : Site chip horiz spacing matches location bar #

Patch Set 11 : Rebase #

Patch Set 12 : Use new image assets #

Total comments: 39

Patch Set 13 : l10n str for ev ssl, 2 16x16 icons, etc. #

Total comments: 8

Patch Set 14 : . #

Patch Set 15 : Change file url handling to use full url. #

Patch Set 16 : Rebase #

Total comments: 5

Patch Set 17 : missing virtual #

Patch Set 18 : Unused var #

Total comments: 27
Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -45 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +11 lines, -4 lines 2 comments Download
M chrome/browser/ui/views/toolbar/site_chip_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +35 lines, -3 lines 2 comments Download
M chrome/browser/ui/views/toolbar/site_chip_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +272 lines, -22 lines 23 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -16 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Greg Billock
Still in progress, but have a look if you have time. This sets up basically ...
7 years ago (2013-11-27 17:27:18 UTC) #1
Greg Billock
On 2013/11/27 17:27:18, Greg Billock wrote: > Still in progress, but have a look if ...
7 years ago (2013-12-03 00:21:56 UTC) #2
Peter Kasting
Lemme punt reviewing this until the base CL lands.
7 years ago (2013-12-03 01:32:42 UTC) #3
Greg Billock
On 2013/12/03 01:32:42, Peter Kasting wrote: > Lemme punt reviewing this until the base CL ...
7 years ago (2013-12-05 18:33:15 UTC) #4
Peter Kasting
https://codereview.chromium.org/92073003/diff/80001/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/92073003/diff/80001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode680 chrome/browser/ui/views/location_bar/location_bar_view.cc:680: ToolbarModel::EV_SECURE && !site_chip_view_) { Nit: Parens around binary subexprs ...
7 years ago (2013-12-06 02:16:52 UTC) #5
Greg Billock
Also smoothed out the narrow-window layout case a bit. https://codereview.chromium.org/92073003/diff/80001/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/92073003/diff/80001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode680 chrome/browser/ui/views/location_bar/location_bar_view.cc:680: ...
7 years ago (2013-12-06 19:54:26 UTC) #6
Peter Kasting
https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode125 chrome/browser/ui/views/toolbar/site_chip_view.cc:125: // length or the autocomplete parser. On 2013/12/06 19:54:26, ...
7 years ago (2013-12-06 21:26:10 UTC) #7
Greg Billock
https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode125 chrome/browser/ui/views/toolbar/site_chip_view.cc:125: // length or the autocomplete parser. On 2013/12/06 21:26:11, ...
7 years ago (2013-12-06 22:11:50 UTC) #8
Greg Billock
https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode217 chrome/browser/ui/views/toolbar/site_chip_view.cc:217: // See ToolbarModelImpl::GetIcon() On 2013/12/06 22:11:50, Greg Billock wrote: ...
7 years ago (2013-12-06 22:42:40 UTC) #9
Greg Billock
On 2013/12/06 22:42:40, Greg Billock wrote: > https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc > File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): > > https://codereview.chromium.org/92073003/diff/80001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode217 ...
7 years ago (2013-12-07 06:01:06 UTC) #10
Peter Kasting
https://codereview.chromium.org/92073003/diff/190001/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/92073003/diff/190001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode680 chrome/browser/ui/views/location_bar/location_bar_view.cc:680: (GetToolbarModel()->GetSecurityLevel(false) == Nit: Indent 4, a la } else ...
7 years ago (2013-12-10 03:28:39 UTC) #11
Greg Billock
Saw you about, Peter. Thanks for the last-minute looks. Just finalizing the l10n string, but ...
7 years ago (2013-12-10 17:37:58 UTC) #12
Peter Kasting
LGTM https://codereview.chromium.org/92073003/diff/190001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/92073003/diff/190001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode146 chrome/browser/ui/views/toolbar/site_chip_view.cc:146: base::string16 formatted = net::FormatUrl(url.GetOrigin(), languages, On 2013/12/10 17:37:59, ...
7 years ago (2013-12-10 19:44:30 UTC) #13
Greg Billock
+cpu for resources https://codereview.chromium.org/92073003/diff/190001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/92073003/diff/190001/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode582 chrome/browser/ui/views/toolbar/toolbar_view.cc:582: site_chip_view_->GetPreferredSize().width() + On 2013/12/10 19:44:31, Peter ...
7 years ago (2013-12-10 20:36:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/92073003/270001
7 years ago (2013-12-10 22:36:33 UTC) #15
msw
I haven't looked at this in full, but will asap to get up to speed ...
7 years ago (2013-12-11 00:16:18 UTC) #16
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=62498
7 years ago (2013-12-11 01:19:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/92073003/280001
7 years ago (2013-12-11 04:49:47 UTC) #18
Greg Billock
https://codereview.chromium.org/92073003/diff/270001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/92073003/diff/270001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode50 chrome/browser/ui/views/toolbar/site_chip_view.cc:50: ~SiteChipExtensionIcon(); On 2013/12/11 00:16:19, msw wrote: > Error from ...
7 years ago (2013-12-11 04:53:37 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos_clang for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos_clang&number=62566
7 years ago (2013-12-11 06:20:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/92073003/300001
7 years ago (2013-12-11 16:29:04 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=234460
7 years ago (2013-12-11 20:48:08 UTC) #22
Greg Billock
Committed patchset #18 manually as r240175 (presubmit successful).
7 years ago (2013-12-11 20:58:42 UTC) #23
msw
https://codereview.chromium.org/92073003/diff/300001/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/92073003/diff/300001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode974 chrome/browser/ui/views/location_bar/location_bar_view.cc:974: return site_chip_view_ ? I think this change will alter ...
7 years ago (2013-12-11 21:54:43 UTC) #24
Greg Billock
https://codereview.chromium.org/92073003/diff/300001/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/92073003/diff/300001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode974 chrome/browser/ui/views/location_bar/location_bar_view.cc:974: return site_chip_view_ ? On 2013/12/11 21:54:44, msw wrote: > ...
7 years ago (2013-12-11 22:34:08 UTC) #25
msw
https://codereview.chromium.org/92073003/diff/300001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/92073003/diff/300001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode104 chrome/browser/ui/views/toolbar/site_chip_view.cc:104: string16 SiteChipView::SiteLabelFromURL(const GURL& url) { On 2013/12/11 22:34:08, Greg ...
7 years ago (2013-12-11 22:42:18 UTC) #26
Greg Billock
https://codereview.chromium.org/92073003/diff/300001/chrome/browser/ui/views/toolbar/site_chip_view.cc File chrome/browser/ui/views/toolbar/site_chip_view.cc (right): https://codereview.chromium.org/92073003/diff/300001/chrome/browser/ui/views/toolbar/site_chip_view.cc#newcode104 chrome/browser/ui/views/toolbar/site_chip_view.cc:104: string16 SiteChipView::SiteLabelFromURL(const GURL& url) { On 2013/12/11 22:42:19, msw ...
7 years ago (2013-12-11 23:00:44 UTC) #27
msw
7 years ago (2013-12-11 23:49:19 UTC) #28
Message was sent while issue was closed.
https://codereview.chromium.org/92073003/diff/300001/chrome/browser/ui/views/...
File chrome/browser/ui/views/toolbar/site_chip_view.cc (right):

https://codereview.chromium.org/92073003/diff/300001/chrome/browser/ui/views/...
chrome/browser/ui/views/toolbar/site_chip_view.cc:241:
color_utils::GetReadableColor(SK_ColorBLACK, toolbar_background));
On 2013/12/11 23:00:45, Greg Billock wrote:
> On 2013/12/11 22:42:19, msw wrote:
> > On 2013/12/11 22:34:08, Greg Billock wrote:
> > > On 2013/12/11 21:54:44, msw wrote:
> > > > Label does this automatically if you
> SetBackgroundColor(toolbar_background);
> > > 
> > > ok, so it manages visibility itself? Should I do it on 'this' as a whole?
Or
> I
> > > need to do it on the label directly? Will setting the label background
mess
> up
> > > any themes, or they are all solid toolbar colored?
> > 
> > Label::SetBackgroundColor won't draw a background, just determine a readable
> > color from the text color you specify, almost exactly like you're doing
here.
> 
> Nice! So I need to adjust for the specialized backgrounds we draw for EV SSL,
> broken SSL, or malware, too, right? That should be easy.

Yeah, updating for those backgrounds should help.

Powered by Google App Engine
This is Rietveld 408576698