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

Side by Side Diff: ash/mus/shelf_delegate_mus.h

Issue 2791463002: mash: Remove ShelfDelegate; move functions to ShelfModel. (Closed)
Patch Set: Address comment. Created 3 years, 8 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/mus/BUILD.gn ('k') | ash/mus/shelf_delegate_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
(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 ASH_MUS_SHELF_DELEGATE_MUS_H_
6 #define ASH_MUS_SHELF_DELEGATE_MUS_H_
7
8 #include <string>
9
10 #include "ash/public/cpp/shelf_types.h"
11 #include "ash/shelf/shelf_delegate.h"
12 #include "base/macros.h"
13
14 namespace ash {
15
16 // Manages communication between the mash shelf and the browser.
17 class ShelfDelegateMus : public ShelfDelegate {
18 public:
19 ShelfDelegateMus();
20 ~ShelfDelegateMus() override;
21
22 private:
23 // ShelfDelegate:
24 ShelfID GetShelfIDForAppID(const std::string& app_id) override;
25 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id,
26 const std::string& launch_id) override;
27 const std::string& GetAppIDForShelfID(ShelfID id) override;
28 void PinAppWithID(const std::string& app_id) override;
29 bool IsAppPinned(const std::string& app_id) override;
30 void UnpinAppWithID(const std::string& app_id) override;
31
32 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus);
33 };
34
35 } // namespace ash
36
37 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_
OLDNEW
« no previous file with comments | « ash/mus/BUILD.gn ('k') | ash/mus/shelf_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698