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

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

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/app_list.h ('k') | ui/app_list/presenter/app_list_presenter.mojom » ('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
new file mode 100644
index 0000000000000000000000000000000000000000..9dda27a88a6a35397dc3e5454f70ca9d69725a32
--- /dev/null
+++ b/ui/app_list/presenter/app_list.cc
@@ -0,0 +1,25 @@
+// 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 "ui/app_list/presenter/app_list.h"
+
+namespace app_list {
+
+AppList::AppList() {}
+
+AppList::~AppList() {}
+
+void AppList::BindRequest(mojom::AppListRequest request) {
+ bindings_.AddBinding(this, std::move(request));
+}
+
+mojom::AppListPresenter* AppList::GetAppListPresenter() {
+ return presenter_.get();
+}
+
+void AppList::SetAppListPresenter(mojom::AppListPresenterPtr presenter) {
+ presenter_ = std::move(presenter);
+}
+
+} // namespace app_list
« no previous file with comments | « ui/app_list/presenter/app_list.h ('k') | ui/app_list/presenter/app_list_presenter.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698