Chromium Code Reviews| Index: chrome/browser/ui/app_list/app_list_controller_delegate_views.cc |
| diff --git a/chrome/browser/ui/app_list/app_list_controller_delegate_views.cc b/chrome/browser/ui/app_list/app_list_controller_delegate_views.cc |
| index 2ec4e9b7df47e7f6a001484f2d59b698a048bcdf..ce34abcdbe3f910acb98d6a00d17e031b6b58e4a 100644 |
| --- a/chrome/browser/ui/app_list/app_list_controller_delegate_views.cc |
| +++ b/chrome/browser/ui/app_list/app_list_controller_delegate_views.cc |
| @@ -5,6 +5,7 @@ |
| #include "chrome/browser/ui/app_list/app_list_controller_delegate_views.h" |
| #include "chrome/browser/ui/app_list/app_list_service_views.h" |
| +#include "ui/app_list/views/app_list_view.h" |
| AppListControllerDelegateViews::AppListControllerDelegateViews( |
| AppListServiceViews* service) |
| @@ -14,15 +15,28 @@ AppListControllerDelegateViews::AppListControllerDelegateViews( |
| AppListControllerDelegateViews::~AppListControllerDelegateViews() {} |
| +gfx::Rect AppListControllerDelegateViews::GetAppListBounds() { |
| + app_list::AppListView* app_list_view = service_->shower().app_list(); |
|
tapted
2014/05/21 03:40:57
It feels a bit weird to use the view bounds instea
sashab
2014/05/22 07:20:21
As discussed, this is needed on platforms where th
|
| + if (app_list_view) |
| + return app_list_view->GetBoundsInScreen(); |
| + return gfx::Rect(); |
| +} |
| + |
| void AppListControllerDelegateViews::ViewClosing() { |
| service_->OnViewBeingDestroyed(); |
| } |
| void AppListControllerDelegateViews::OnShowExtensionPrompt() { |
| + app_list::AppListView* app_list_view = service_->shower().app_list(); |
| + if (app_list_view) |
|
tapted
2014/05/21 03:40:57
I think it's impossible for this to be false. Perh
sashab
2014/05/22 07:20:21
Done.
|
| + app_list_view->ShowAppListOverlay(true); |
| service_->set_can_dismiss(false); |
| } |
| void AppListControllerDelegateViews::OnCloseExtensionPrompt() { |
| + app_list::AppListView* app_list_view = service_->shower().app_list(); |
| + if (app_list_view) |
|
tapted
2014/05/21 03:40:57
This one... I'm guessing can actually be false if
sashab
2014/05/22 07:20:21
Yup, you're right, this can never be the case - th
|
| + app_list_view->ShowAppListOverlay(false); |
| service_->set_can_dismiss(true); |
| } |