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

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

Issue 2567523002: mash: Have chrome set itself as the app list presenter. (Closed)
Patch Set: Address comments, 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
« no previous file with comments | « ui/app_list/presenter/BUILD.gn ('k') | ui/app_list/presenter/app_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/presenter/app_list.h
diff --git a/ui/app_list/presenter/app_list.h b/ui/app_list/presenter/app_list.h
new file mode 100644
index 0000000000000000000000000000000000000000..2cf701d2a5cbd1a1f6a9ae07f4f2b8b908f922fe
--- /dev/null
+++ b/ui/app_list/presenter/app_list.h
@@ -0,0 +1,41 @@
+// 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 UI_APP_LIST_PRESENTER_APP_LIST_H_
+#define UI_APP_LIST_PRESENTER_APP_LIST_H_
+
+#include "mojo/public/cpp/bindings/binding_set.h"
+#include "ui/app_list/presenter/app_list_presenter.mojom.h"
+#include "ui/app_list/presenter/app_list_presenter_export.h"
+
+namespace app_list {
+
+// Stores the app list presenter interface pointer.
+class APP_LIST_PRESENTER_EXPORT AppList : public mojom::AppList {
+ public:
+ AppList();
+ ~AppList() override;
+
+ // Binds the mojom::AppList interface request to this object.
+ void BindRequest(mojom::AppListRequest request);
+
+ // Get a raw pointer to the mojom::AppListPresenter interface; may be null.
+ mojom::AppListPresenter* GetAppListPresenter();
+
+ // mojom::AppList:
+ void SetAppListPresenter(mojom::AppListPresenterPtr presenter) override;
+
+ private:
+ // Bindings for the mojom::AppList interface.
+ mojo::BindingSet<mojom::AppList> bindings_;
+
+ // App list presenter interface in chrome; used to show/hide the app list.
+ mojom::AppListPresenterPtr presenter_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppList);
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_PRESENTER_APP_LIST_H_
« no previous file with comments | « ui/app_list/presenter/BUILD.gn ('k') | ui/app_list/presenter/app_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698