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

Issue 895713002: Stops updating the status bubble position when the bubble is empty. (Closed)

Created:
5 years, 10 months ago by rohitrao (ping after 24h)
Modified:
5 years, 9 months ago
Reviewers:
erikchen, Andre
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] Always sets the status bubble to 1pt wide when hidden. When the status bubble is in state kBubbleHidden, its width is now always 1pt. This prevents us from wasting time resizing and redrawing a hidden bubble. BUG=454502 TEST=No visible impact. Status bubble should continue to show when hovering over links and resize properly when the window size is changed. Committed: https://crrev.com/9ec18e41d4a50ebb61849921602a4dae996f448d Cr-Commit-Position: refs/heads/master@{#318790}

Patch Set 1 #

Patch Set 2 : Use state_. #

Patch Set 3 : #

Patch Set 4 : LOG #

Patch Set 5 : Comment. #

Patch Set 6 : New approach. #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/status_bubble_mac.mm View 1 2 3 4 5 6 4 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
rohitrao (ping after 24h)
Still playing around with this, but I wanted to give you an idea of what ...
5 years, 10 months ago (2015-02-02 18:33:53 UTC) #2
erikchen
On 2015/02/02 18:33:53, rohitrao wrote: > Still playing around with this, but I wanted to ...
5 years, 10 months ago (2015-02-02 19:57:58 UTC) #3
rohitrao (ping after 24h)
I switched to using state_, because it turns out we're actually explicitly tracking bubble visibility ...
5 years, 10 months ago (2015-02-02 20:58:30 UTC) #4
rohitrao (ping after 24h)
And of course this fails unit_tests =)
5 years, 10 months ago (2015-02-02 21:30:23 UTC) #5
rohitrao (ping after 24h)
Not happy that I have to keep the text_ comparisons, but the unit tests fail ...
5 years, 10 months ago (2015-02-03 18:58:38 UTC) #6
erikchen
On 2015/02/03 18:58:38, rohitrao wrote: > Not happy that I have to keep the text_ ...
5 years, 10 months ago (2015-02-03 20:24:02 UTC) #7
rohitrao (ping after 24h)
> Are you asking for a review? Yup.
5 years, 10 months ago (2015-02-03 20:25:31 UTC) #8
erikchen
On 2015/02/03 20:25:31, rohitrao wrote: > > Are you asking for a review? > > ...
5 years, 10 months ago (2015-02-03 20:34:31 UTC) #9
Andre
How about setting the window size to kWindowSizeDeterminedLater in CalculateWindowFrame when state is hidden, instead ...
5 years, 10 months ago (2015-02-03 20:40:23 UTC) #11
rohitrao (ping after 24h)
I've updated the CL to (try and?) enforce that the bubble's size is kWindowSizeDeterminedLater whenever ...
5 years, 9 months ago (2015-03-02 20:23:12 UTC) #12
erikchen
On 2015/03/02 20:23:12, rohitrao wrote: > I've updated the CL to (try and?) enforce that ...
5 years, 9 months ago (2015-03-02 21:30:41 UTC) #13
Andre
On 2015/03/02 20:23:12, rohitrao wrote: > I've updated the CL to (try and?) enforce that ...
5 years, 9 months ago (2015-03-02 22:18:13 UTC) #14
rohitrao (ping after 24h)
> What kind of CPU usage is that remaining 1%? Seems like it could be ...
5 years, 9 months ago (2015-03-02 22:37:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/895713002/120001
5 years, 9 months ago (2015-03-02 22:41:29 UTC) #17
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-02 22:51:46 UTC) #18
commit-bot: I haz the power
5 years, 9 months ago (2015-03-02 22:52:20 UTC) #19
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9ec18e41d4a50ebb61849921602a4dae996f448d
Cr-Commit-Position: refs/heads/master@{#318790}

Powered by Google App Engine
This is Rietveld 408576698