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

Unified Diff: ash/sysui/app_list_presenter_mus.h

Issue 2335833002: mash: Port ash_sysui app list presenter to mojo:ash. (Closed)
Patch Set: Reorder ShellDelegateMus members. Created 4 years, 3 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 | « ash/sysui/BUILD.gn ('k') | ash/sysui/app_list_presenter_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sysui/app_list_presenter_mus.h
diff --git a/ash/sysui/app_list_presenter_mus.h b/ash/sysui/app_list_presenter_mus.h
deleted file mode 100644
index b2d36e5950930077dfb7f261ba32a8e15363282f..0000000000000000000000000000000000000000
--- a/ash/sysui/app_list_presenter_mus.h
+++ /dev/null
@@ -1,45 +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.
-
-#ifndef ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_
-#define ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_
-
-#include "base/macros.h"
-#include "ui/app_list/presenter/app_list_presenter.h"
-#include "ui/app_list/presenter/app_list_presenter.mojom.h"
-
-namespace shell {
-class Connector;
-}
-
-namespace ash {
-
-// Mus+ash implementation of the AppListPresenter interface for mash, which
-// talks to the mojo app list service in chrome.
-class AppListPresenterMus : public app_list::AppListPresenter {
- public:
- explicit AppListPresenterMus(::shell::Connector* connector);
- ~AppListPresenterMus() override;
-
- // app_list::AppListPresenter:
- void Show(int64_t display_id) override;
- void Dismiss() override;
- void ToggleAppList(int64_t display_id) override;
- bool IsVisible() const override;
- bool GetTargetVisibility() const override;
-
- private:
- // Connect to the mojo app list service in chrome if the connection hasn't
- // been established or has an error.
- bool ConnectIfNeeded();
-
- ::shell::Connector* connector_;
- app_list::mojom::AppListPresenterPtr presenter_;
-
- DISALLOW_COPY_AND_ASSIGN(AppListPresenterMus);
-};
-
-} // namespace ash
-
-#endif // ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_
« no previous file with comments | « ash/sysui/BUILD.gn ('k') | ash/sysui/app_list_presenter_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698