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

Issue 10909220: Removes caching of whether the launcher should be visible from (Closed)

Created:
8 years, 3 months ago by sky
Modified:
8 years, 3 months ago
Reviewers:
sadrul
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Removes caching of whether the launcher should be visible from StatusAreaWidget and instead queries as necessary. The problem is the current code was caching things based on mouse location, but it wasn't always updating when the mouse moved. Since the shelf has its own mouse handler that queries for state it isn't necessary to duplicate that in the tray. BUG=148548 TEST=see bug R=sadrul@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156740

Patch Set 1 #

Patch Set 2 : Tweaks #

Total comments: 4

Patch Set 3 : auto-hide #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -54 lines) Patch
M ash/system/status_area_widget.h View 1 2 3 chunks +4 lines, -7 lines 0 comments Download
M ash/system/status_area_widget.cc View 3 chunks +17 lines, -24 lines 0 comments Download
M ash/system/tray/system_tray.cc View 1 4 chunks +3 lines, -7 lines 0 comments Download
M ash/system/tray/system_tray_bubble.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ash/system/tray/tray_background_view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/system/tray/tray_background_view.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
sky
8 years, 3 months ago (2012-09-13 23:21:17 UTC) #1
sadrul
http://codereview.chromium.org/10909220/diff/2001/ash/system/status_area_widget.h File ash/system/status_area_widget.h (right): http://codereview.chromium.org/10909220/diff/2001/ash/system/status_area_widget.h#newcode73 ash/system/status_area_widget.h:73: // launcher is configured to aut-hide and test if ...
8 years, 3 months ago (2012-09-13 23:31:26 UTC) #2
sky
http://codereview.chromium.org/10909220/diff/2001/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (left): http://codereview.chromium.org/10909220/diff/2001/ash/system/web_notification/web_notification_tray.cc#oldcode910 ash/system/web_notification/web_notification_tray.cc:910: tray_->UpdateShouldShowLauncher(); On 2012/09/13 23:31:26, sadrul wrote: > Can this ...
8 years, 3 months ago (2012-09-14 00:06:35 UTC) #3
sadrul
LGTM http://codereview.chromium.org/10909220/diff/2001/ash/system/web_notification/web_notification_tray.cc File ash/system/web_notification/web_notification_tray.cc (left): http://codereview.chromium.org/10909220/diff/2001/ash/system/web_notification/web_notification_tray.cc#oldcode910 ash/system/web_notification/web_notification_tray.cc:910: tray_->UpdateShouldShowLauncher(); On 2012/09/14 00:06:35, sky wrote: > On ...
8 years, 3 months ago (2012-09-14 00:10:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/10909220/7001
8 years, 3 months ago (2012-09-14 02:01:37 UTC) #5
commit-bot: I haz the power
8 years, 3 months ago (2012-09-14 04:22:36 UTC) #6
Change committed as 156740

Powered by Google App Engine
This is Rietveld 408576698