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

Issue 12210102: Ensure that the AppListController class which lives in app_list_controller_win.cc plays nice with A… (Closed)

Created:
7 years, 10 months ago by ananta
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Ensure that the AppListController class which lives in app_list_controller_win.cc plays nice with AURA and ASH. For ASH on Windows 8 we defer calls to open and hide the apps list to the ash Shell via the ToggleAppList member function in the Shell class. For AURA the fixes were mostly around retrieving the native window for the view appropriately, i.e via RootWindow::GetAcceleratedWidget This also fixes the AppInstallConfirmation and AppInstallConfirmation_Incognito browser tests for AURA. I added a class AppListControllerAsh which inherits from the AppListController class and overrides the ShowAppList/DismissAppList functions to display the ASH specific app lists. This also fixes the startup crash in desktop chrome observed when displaying the app list as we were deferencing a NULL ash shell pointer. The app_list_controller_ash.cc functionality is disabled for Windows and is provided by the newly added AppListControllerAsh class which lives in the app_list_controller_win.cc file. BUG=174940, 174399, 174504, 175389 TEST=covered by existing Browser tests for desktop chrome AURA. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182051

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 6

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 2

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -69 lines) Patch
M apps/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M apps/app_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/app_list/app_list_controller_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/app_list/app_list_controller_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 chunks +147 lines, -57 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
ananta
7 years, 10 months ago (2013-02-09 02:16:18 UTC) #1
koz (OOO until 15th September)
[+benwells, +tapted]
7 years, 10 months ago (2013-02-10 22:22:10 UTC) #2
koz (OOO until 15th September)
https://codereview.chromium.org/12210102/diff/13002/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://codereview.chromium.org/12210102/diff/13002/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode474 chrome/browser/ui/views/app_list/app_list_controller_win.cc:474: #if defined(USE_AURA) Rather than adding these #ifdefs into app_list_controller_win, ...
7 years, 10 months ago (2013-02-10 22:41:39 UTC) #3
ananta
https://codereview.chromium.org/12210102/diff/13002/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://codereview.chromium.org/12210102/diff/13002/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode474 chrome/browser/ui/views/app_list/app_list_controller_win.cc:474: #if defined(USE_AURA) On 2013/02/10 22:41:39, koz wrote: > Rather ...
7 years, 10 months ago (2013-02-11 23:27:00 UTC) #4
koz (OOO until 15th September)
LGTM This is much nicer, thanks! https://codereview.chromium.org/12210102/diff/11006/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://codereview.chromium.org/12210102/diff/11006/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode785 chrome/browser/ui/views/app_list/app_list_controller_win.cc:785: #if !defined(USE_AURA) nit: ...
7 years, 10 months ago (2013-02-12 00:33:48 UTC) #5
benwells
rubber stamp lgtm
7 years, 10 months ago (2013-02-12 00:41:50 UTC) #6
ananta
https://codereview.chromium.org/12210102/diff/11006/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://codereview.chromium.org/12210102/diff/11006/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode785 chrome/browser/ui/views/app_list/app_list_controller_win.cc:785: #if !defined(USE_AURA) On 2013/02/12 00:33:48, koz wrote: > nit: ...
7 years, 10 months ago (2013-02-12 04:57:53 UTC) #7
xiyuan
lgtm https://codereview.chromium.org/12210102/diff/9020/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://codereview.chromium.org/12210102/diff/9020/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode53 chrome/browser/ui/views/app_list/app_list_controller_win.cc:53: #include "ash/shell.h" nit: This probably should be wrapped ...
7 years, 10 months ago (2013-02-12 18:54:39 UTC) #8
ananta
7 years, 10 months ago (2013-02-12 19:00:11 UTC) #9
https://codereview.chromium.org/12210102/diff/9020/chrome/browser/ui/views/ap...
File chrome/browser/ui/views/app_list/app_list_controller_win.cc (right):

https://codereview.chromium.org/12210102/diff/9020/chrome/browser/ui/views/ap...
chrome/browser/ui/views/app_list/app_list_controller_win.cc:53: #include
"ash/shell.h"
On 2013/02/12 18:54:39, xiyuan wrote:
> nit: This probably should be wrapped under defined(USE_ASH)

Done.

Powered by Google App Engine
This is Rietveld 408576698