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

Side by Side Diff: ash/sysui/app_list_presenter_mus.h

Issue 2070143003: Add MD ink drop ripple to app list button (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@b612539_shelf_button_ripple
Patch Set: Rebased Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « ash/system/toast/toast_overlay.cc ('k') | ash/sysui/app_list_presenter_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_ 5 #ifndef ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_
6 #define ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_ 6 #define ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/app_list/presenter/app_list_presenter.h" 9 #include "ui/app_list/presenter/app_list_presenter.h"
10 #include "ui/app_list/presenter/app_list_presenter.mojom.h" 10 #include "ui/app_list/presenter/app_list_presenter.mojom.h"
11 11
12 namespace shell { 12 namespace shell {
13 class Connector; 13 class Connector;
14 } 14 }
15 15
16 namespace ash { 16 namespace ash {
17 17
18 // Mus+ash implementation of the AppListPresenter interface for mash, which 18 // Mus+ash implementation of the AppListPresenter interface for mash, which
19 // talks to the mojo app list service in chrome. 19 // talks to the mojo app list service in chrome.
20 class AppListPresenterMus : public app_list::AppListPresenter { 20 class AppListPresenterMus : public app_list::AppListPresenter {
21 public: 21 public:
22 explicit AppListPresenterMus(::shell::Connector* connector); 22 explicit AppListPresenterMus(::shell::Connector* connector);
23 ~AppListPresenterMus() override; 23 ~AppListPresenterMus() override;
24 24
25 // app_list::AppListPresenter: 25 // app_list::AppListPresenter:
26 void Show(int64_t display_id) override; 26 void Show(int64_t display_id) override;
27 void Dismiss() override; 27 void Dismiss() override;
28 void ToggleAppList(int64_t display_id) override; 28 void ToggleAppList(int64_t display_id) override;
29 bool IsVisible() const override;
29 bool GetTargetVisibility() const override; 30 bool GetTargetVisibility() const override;
30 31
31 private: 32 private:
32 // Connect to the mojo app list service in chrome if the connection hasn't 33 // Connect to the mojo app list service in chrome if the connection hasn't
33 // been established or has an error. 34 // been established or has an error.
34 bool ConnectIfNeeded(); 35 bool ConnectIfNeeded();
35 36
36 ::shell::Connector* connector_; 37 ::shell::Connector* connector_;
37 app_list::mojom::AppListPresenterPtr presenter_; 38 app_list::mojom::AppListPresenterPtr presenter_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(AppListPresenterMus); 40 DISALLOW_COPY_AND_ASSIGN(AppListPresenterMus);
40 }; 41 };
41 42
42 } // namespace ash 43 } // namespace ash
43 44
44 #endif // ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_ 45 #endif // ASH_SYSUI_APP_LIST_PRESENTER_MUS_H_
OLDNEW
« no previous file with comments | « ash/system/toast/toast_overlay.cc ('k') | ash/sysui/app_list_presenter_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698