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

Unified Diff: ui/app_list/presenter/app_list_presenter_impl.cc

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Removed header include in shell.h that was causing gn check failure. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/views/all_apps_tile_item_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/presenter/app_list_presenter_impl.cc
diff --git a/ui/app_list/presenter/app_list_presenter_impl.cc b/ui/app_list/presenter/app_list_presenter_impl.cc
index 9fa5613fca946acea340239af1c1cd85735af108..c4ef309215f59c14134c09e053aa685c4a643e51 100644
--- a/ui/app_list/presenter/app_list_presenter_impl.cc
+++ b/ui/app_list/presenter/app_list_presenter_impl.cc
@@ -59,8 +59,10 @@ void AppListPresenterImpl::Show(int64_t display_id) {
return;
is_visible_ = true;
- if (app_list_)
+ if (app_list_) {
app_list_->OnTargetVisibilityChanged(GetTargetVisibility());
+ app_list_->OnVisibilityChanged(GetTargetVisibility(), display_id);
+ }
if (view_) {
ScheduleAnimation();
@@ -86,9 +88,10 @@ void AppListPresenterImpl::Dismiss() {
DCHECK(view_);
is_visible_ = false;
- if (app_list_)
+ if (app_list_) {
app_list_->OnTargetVisibilityChanged(GetTargetVisibility());
-
+ app_list_->OnVisibilityChanged(GetTargetVisibility(), GetDisplayId());
+ }
// The dismissal may have occurred in response to the app list losing
// activation. Otherwise, our widget is currently active. When the animation
// completes we'll hide the widget, changing activation. If a menu is shown
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/views/all_apps_tile_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698