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

Issue 11094019: Auto hide app list on Windows when it loses focus. (Closed)

Created:
8 years, 2 months ago by benwells
Modified:
8 years, 2 months ago
CC:
chromium-reviews, tfarina, Aaron Boodman, mihaip-chromium-reviews_chromium.org, sadrul, ben+watch_chromium.org, Mihai Parparita -not on Chrome
Visibility:
Public.

Description

Auto hide app list on Windows when it loses focus. This is a bit tricky as the app list should not hide when the taskbar gets focus. Handling this involves using a timer, when the app list does not have focus, to check whether either the taskbar or the app list has focus. Once one of these is not true the app list is closed. This change also ensures that the app list is never opened multiple times. Also includes is a bit of cleanup: - AppListController has been renamed to AppListControllerDelegate - a singleton AppListController has been introduced for Windows, similar to ash - default implementations have been added to AppListControllerDelegate where it makes sense. BUG=152847, 152846 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161474

Patch Set 1 #

Patch Set 2 : Small cleanup #

Patch Set 3 : cros build #

Total comments: 12

Patch Set 4 : Feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -112 lines) Patch
M ash/shell/app_list.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller.h View 1 chunk +13 lines, -7 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_controller.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_view_delegate.cc View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/apps_model_builder.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/apps_model_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/app_list/search_builder.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/search_builder.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.h View 1 chunk +5 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 2 1 chunk +10 lines, -13 lines 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/app_list/app_list_controller_win.cc View 1 2 3 10 chunks +162 lines, -68 lines 1 comment Download
M ui/app_list/app_list_view.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M ui/app_list/app_list_view.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M ui/app_list/app_list_view_delegate.h View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
benwells
8 years, 2 months ago (2012-10-09 08:03:49 UTC) #1
xiyuan
https://chromiumcodereview.appspot.com/11094019/diff/12002/chrome/browser/ui/views/app_list/app_list_controller_win.cc File chrome/browser/ui/views/app_list/app_list_controller_win.cc (right): https://chromiumcodereview.appspot.com/11094019/diff/12002/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode62 chrome/browser/ui/views/app_list/app_list_controller_win.cc:62: bool timer_running_; Where is |timer_running_| used? https://chromiumcodereview.appspot.com/11094019/diff/12002/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode98 chrome/browser/ui/views/app_list/app_list_controller_win.cc:98: // ...
8 years, 2 months ago (2012-10-09 17:43:15 UTC) #2
benwells
http://codereview.chromium.org/11094019/diff/12002/chrome/browser/ui/views/app_list/app_list_controller_win.cc File chrome/browser/ui/views/app_list/app_list_controller_win.cc (right): http://codereview.chromium.org/11094019/diff/12002/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode62 chrome/browser/ui/views/app_list/app_list_controller_win.cc:62: bool timer_running_; On 2012/10/09 17:43:15, xiyuan wrote: > Where ...
8 years, 2 months ago (2012-10-10 00:55:21 UTC) #3
benwells
sky: I need owners review from you for chrome/browser/ui/ash/chrome_shell_delegate.cc Also if you want to look ...
8 years, 2 months ago (2012-10-10 00:58:11 UTC) #4
xiyuan
LGTM
8 years, 2 months ago (2012-10-10 03:15:59 UTC) #5
sky
I added Carlos to the review. He might have ideas on finding the taskbar. http://codereview.chromium.org/11094019/diff/7002/chrome/browser/ui/views/app_list/app_list_controller_win.cc ...
8 years, 2 months ago (2012-10-10 04:31:19 UTC) #6
cpu_(ooo_6.6-7.5)
lgtm I gave up, I don't see a better way to do this. At least ...
8 years, 2 months ago (2012-10-11 17:37:40 UTC) #7
sky
LGTM
8 years, 2 months ago (2012-10-11 17:43:41 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/11094019/7002
8 years, 2 months ago (2012-10-11 23:17:00 UTC) #9
commit-bot: I haz the power
8 years, 2 months ago (2012-10-12 01:54:19 UTC) #10
Change committed as 161474

Powered by Google App Engine
This is Rietveld 408576698