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

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

Issue 2647833003: Adds AppListDelegate to AppList that is notified on visibility changes (Closed)
Patch Set: move Created 3 years, 11 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/presenter/app_list.h ('k') | ui/app_list/presenter/app_list_delegate.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.cc
diff --git a/ui/app_list/presenter/app_list.cc b/ui/app_list/presenter/app_list.cc
index 76b36d8ce8afecc18ab71a8200f00ab49416bcf0..e6086d9a8dc18d4af26cd0cdb3bd7752b56ec345 100644
--- a/ui/app_list/presenter/app_list.cc
+++ b/ui/app_list/presenter/app_list.cc
@@ -4,6 +4,8 @@
#include "ui/app_list/presenter/app_list.h"
+#include "ui/app_list/presenter/app_list_delegate.h"
+
namespace app_list {
AppList::AppList() {}
@@ -49,8 +51,13 @@ void AppList::OnTargetVisibilityChanged(bool visible) {
target_visible_ = visible;
}
-void AppList::OnVisibilityChanged(bool visible) {
+void AppList::OnVisibilityChanged(bool visible, int64_t display_id) {
+ if (visible_ == visible)
+ return;
+
visible_ = visible;
+ if (delegate_)
+ delegate_->OnAppListVisibilityChanged(visible, display_id);
}
} // namespace app_list
« no previous file with comments | « ui/app_list/presenter/app_list.h ('k') | ui/app_list/presenter/app_list_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698