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

Unified Diff: ash/mus/app_list_presenter_mus.cc

Issue 2576913002: Use mojo app list interfaces for mash and classic ash. (Closed)
Patch Set: Fix AppListPresenterImplTest. Created 4 years 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
Index: ash/mus/app_list_presenter_mus.cc
diff --git a/ash/mus/app_list_presenter_mus.cc b/ash/mus/app_list_presenter_mus.cc
deleted file mode 100644
index 86d2cacb247ccfb4091ecd610dd66e5cdcc6b960..0000000000000000000000000000000000000000
--- a/ash/mus/app_list_presenter_mus.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/mus/app_list_presenter_mus.h"
-
-#include "ash/common/wm_shell.h"
-#include "ui/app_list/presenter/app_list.h"
-
-namespace ash {
-
-AppListPresenterMus::AppListPresenterMus() {}
-
-AppListPresenterMus::~AppListPresenterMus() {}
-
-void AppListPresenterMus::Show(int64_t display_id) {
- app_list::mojom::AppListPresenter* app_list_presenter =
- WmShell::Get()->app_list()->GetAppListPresenter();
- if (app_list_presenter)
- app_list_presenter->Show(display_id);
-}
-
-void AppListPresenterMus::Dismiss() {
- app_list::mojom::AppListPresenter* app_list_presenter =
- WmShell::Get()->app_list()->GetAppListPresenter();
- if (app_list_presenter)
- app_list_presenter->Dismiss();
-}
-
-void AppListPresenterMus::ToggleAppList(int64_t display_id) {
- app_list::mojom::AppListPresenter* app_list_presenter =
- WmShell::Get()->app_list()->GetAppListPresenter();
- if (app_list_presenter)
- app_list_presenter->ToggleAppList(display_id);
-}
-
-bool AppListPresenterMus::IsVisible() const {
- return false;
-}
-
-bool AppListPresenterMus::GetTargetVisibility() const {
- // TODO(mfomitchev): we have GetTargetVisibility() in mojom, but this
- // shouldn't be a synchronous method. We should go through the call sites and
- // either teach them to use a callback, or perhaps use a visibility observer.
- // NOTIMPLEMENTED();
- return false;
-}
-
-} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698