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

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

Issue 2576913002: Use mojo app list interfaces for mash and classic ash. (Closed)
Patch Set: Sync and rebase 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_presenter.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 9dda27a88a6a35397dc3e5454f70ca9d69725a32..76b36d8ce8afecc18ab71a8200f00ab49416bcf0 100644
--- a/ui/app_list/presenter/app_list.cc
+++ b/ui/app_list/presenter/app_list.cc
@@ -18,8 +18,39 @@ mojom::AppListPresenter* AppList::GetAppListPresenter() {
return presenter_.get();
}
+void AppList::Show(int64_t display_id) {
+ if (presenter_)
+ presenter_->Show(display_id);
+}
+
+void AppList::Dismiss() {
+ if (presenter_)
+ presenter_->Dismiss();
+}
+
+void AppList::ToggleAppList(int64_t display_id) {
+ if (presenter_)
+ presenter_->ToggleAppList(display_id);
+}
+
+bool AppList::IsVisible() const {
+ return visible_;
+}
+
+bool AppList::GetTargetVisibility() const {
+ return target_visible_;
+}
+
void AppList::SetAppListPresenter(mojom::AppListPresenterPtr presenter) {
presenter_ = std::move(presenter);
}
+void AppList::OnTargetVisibilityChanged(bool visible) {
+ target_visible_ = visible;
+}
+
+void AppList::OnVisibilityChanged(bool visible) {
+ visible_ = visible;
+}
+
} // namespace app_list
« no previous file with comments | « ui/app_list/presenter/app_list.h ('k') | ui/app_list/presenter/app_list_presenter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698