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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_APP_LIST_PRESENTER_APP_LIST_H_
6 #define UI_APP_LIST_PRESENTER_APP_LIST_H_
7
8 #include "mojo/public/cpp/bindings/binding_set.h"
9 #include "ui/app_list/presenter/app_list_presenter.mojom.h"
10 #include "ui/app_list/presenter/app_list_presenter_export.h"
11
12 namespace app_list {
13
14 // Stores the app list presenter interface pointer.
15 class APP_LIST_PRESENTER_EXPORT AppList : public mojom::AppList {
16 public:
17 AppList();
18 ~AppList() override;
19
20 // Binds the mojom::AppList interface request to this object.
21 void BindRequest(mojom::AppListRequest request);
22
23 // Get a raw pointer to the mojom::AppListPresenter interface; may be null.
24 mojom::AppListPresenter* GetAppListPresenter();
25
26 // mojom::AppList:
27 void SetAppListPresenter(mojom::AppListPresenterPtr presenter) override;
28
29 private:
30 // Bindings for the mojom::AppList interface.
31 mojo::BindingSet<mojom::AppList> bindings_;
32
33 // App list presenter interface in chrome; used to show/hide the app list.
34 mojom::AppListPresenterPtr presenter_;
35
36 DISALLOW_COPY_AND_ASSIGN(AppList);
37 };
38
39 } // namespace app_list
40
41 #endif // UI_APP_LIST_PRESENTER_APP_LIST_H_
OLDNEW
« 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