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

Issue 2932373002: Add a battery icon to the right of Tether networks in system tray. (Closed)

Created:
3 years, 6 months ago by lesliewatkins
Modified:
3 years, 6 months ago
CC:
Ryan Hansberry, chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org, Jeremy Klein, James Hawkins
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a battery icon to the right of Tether networks in system tray. BUG=672257 Review-Url: https://codereview.chromium.org/2932373002 Cr-Commit-Position: refs/heads/master@{#478702} Committed: https://chromium.googlesource.com/chromium/src/+/9e8cf3f662fb0c0ad5b662046851209f34a4b476

Patch Set 1 #

Total comments: 7

Patch Set 2 : stevenjb@ comments #

Total comments: 14

Patch Set 3 : khorimoto@ comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -3 lines) Patch
M ash/system/network/network_list.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ash/system/network/network_list.cc View 1 2 4 chunks +52 lines, -3 lines 2 comments Download

Messages

Total messages: 20 (8 generated)
lesliewatkins
The change to network_state_handler_unittest was done automatically by `git cl format`. I tried unsuccessfully to ...
3 years, 6 months ago (2017-06-12 16:12:36 UTC) #2
stevenjb
https://codereview.chromium.org/2932373002/diff/1/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2932373002/diff/1/ash/system/network/network_list.cc#newcode598 ash/system/network/network_list.cc:598: NetworkStateHandler* handler = NetworkHandler::Get()->network_state_handler(); handler is only used once, ...
3 years, 6 months ago (2017-06-12 16:20:52 UTC) #4
lesliewatkins
https://codereview.chromium.org/2932373002/diff/1/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2932373002/diff/1/ash/system/network/network_list.cc#newcode598 ash/system/network/network_list.cc:598: NetworkStateHandler* handler = NetworkHandler::Get()->network_state_handler(); On 2017/06/12 16:20:51, stevenjb wrote: ...
3 years, 6 months ago (2017-06-12 16:53:35 UTC) #5
Kyle Horimoto
https://codereview.chromium.org/2932373002/diff/20001/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2932373002/diff/20001/ash/system/network/network_list.cc#newcode574 ash/system/network/network_list.cc:574: void NetworkListView::UpdateViewForNetwork(HoverHighlightView* view, Question: "Update" implies that this will ...
3 years, 6 months ago (2017-06-12 17:22:10 UTC) #6
stevenjb
lgtm https://codereview.chromium.org/2932373002/diff/20001/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2932373002/diff/20001/ash/system/network/network_list.cc#newcode585 ash/system/network/network_list.cc:585: view->AddRightView(power_icon); On 2017/06/12 17:22:09, Kyle Horimoto wrote: > ...
3 years, 6 months ago (2017-06-12 17:30:04 UTC) #7
lesliewatkins
https://codereview.chromium.org/2932373002/diff/20001/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2932373002/diff/20001/ash/system/network/network_list.cc#newcode574 ash/system/network/network_list.cc:574: void NetworkListView::UpdateViewForNetwork(HoverHighlightView* view, On 2017/06/12 17:22:09, Kyle Horimoto wrote: ...
3 years, 6 months ago (2017-06-12 18:06:05 UTC) #9
Kyle Horimoto
lgtm Nice work!
3 years, 6 months ago (2017-06-12 18:10:20 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2932373002/40001
3 years, 6 months ago (2017-06-12 18:13:55 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/9e8cf3f662fb0c0ad5b662046851209f34a4b476
3 years, 6 months ago (2017-06-12 19:00:10 UTC) #16
Evan Stade
https://codereview.chromium.org/2932373002/diff/40001/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2932373002/diff/40001/ash/system/network/network_list.cc#newcode610 ash/system/network/network_list.cc:610: gfx::Size canvas_size = gfx::Size(kMenuIconSize, kMenuIconSize); Hi all, I am ...
3 years, 6 months ago (2017-06-14 18:04:38 UTC) #18
Kyle Horimoto
https://codereview.chromium.org/2932373002/diff/40001/ash/system/network/network_list.cc File ash/system/network/network_list.cc (right): https://codereview.chromium.org/2932373002/diff/40001/ash/system/network/network_list.cc#newcode610 ash/system/network/network_list.cc:610: gfx::Size canvas_size = gfx::Size(kMenuIconSize, kMenuIconSize); On 2017/06/14 18:04:38, Evan ...
3 years, 6 months ago (2017-06-15 20:14:24 UTC) #19
Evan Stade
3 years, 6 months ago (2017-06-15 20:53:43 UTC) #20
Message was sent while issue was closed.
On 2017/06/15 20:14:24, Kyle Horimoto wrote:
>
https://codereview.chromium.org/2932373002/diff/40001/ash/system/network/netw...
> File ash/system/network/network_list.cc (right):
> 
>
https://codereview.chromium.org/2932373002/diff/40001/ash/system/network/netw...
> ash/system/network/network_list.cc:610: gfx::Size canvas_size =
> gfx::Size(kMenuIconSize, kMenuIconSize);
> On 2017/06/14 18:04:38, Evan Stade wrote:
> > Hi all,
> > 
> > I am making some changes to the battery icon so I noticed this CL. There are
a
> > couple things I see to keep in mind for the future. The first is that this
is
> > using an icon at a size that it's not designed for. It's subtle but you can
> tell
> > the icon should only be displayed at 16dip because that's what the 1x.icon
> file
> > specifies. (I'm working on adding a DCHECK for this but can't do so until
> errant
> > callsites are cleaned up.) Displaying at any other size won't have
guaranteed
> > sharp lines: in this case, if you zoom in you can see that it's a bit
blurrier
> > than we'd like. The second observation is that this copies a lot of code
from
> > PowerStatus, which should instead be shared. The final observation is that
> > assuming a 1x scale and using CreateFrom1xBitmap is not appropriate as the
> icon
> > for non-1x scales is slightly different.
> > 
> > I will fold these suggestions into my change but I wanted to share them here
> for
> > future reference. Thanks and sorry for the late notice.
> 
> Thanks for the heads-up, Evan! Just wanted to clarify - you'll be fixing this
> issue in a follow-up CL (so we don't have to submit a change ourselves),
right?

correct

> 
> Please CC us on your change so we can see the correct way to use these icons -
> thank you! :)

In this case, I was actually busy removing this icon for a different reason when
I noticed this usage, so the correct way is to delete the icon and do something
else :) Usually, the correct thing would have been to ask the designer for an
icon designed for 20x20dip. You can see there are many parallel icons called
ash/resources/vector_icons/system_menu_foo.icon vs.
ash/resources/system_tray_foo.icon which reflect the difference between designed
for 16x16 vs designed for 20x20.

The CL that fixes this is here:
https://chromium-review.googlesource.com/c/535973/

Powered by Google App Engine
This is Rietveld 408576698