forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshelf_delegate_mus.h
37 lines (28 loc) · 1.16 KB
/
shelf_delegate_mus.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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 ASH_MUS_SHELF_DELEGATE_MUS_H_
#define ASH_MUS_SHELF_DELEGATE_MUS_H_
#include <string>
#include "ash/common/shelf/shelf_delegate.h"
#include "ash/public/cpp/shelf_types.h"
namespace ash {
// Manages communication between the mash shelf and the browser.
class ShelfDelegateMus : public ShelfDelegate {
public:
ShelfDelegateMus();
~ShelfDelegateMus() override;
private:
// ShelfDelegate:
ShelfID GetShelfIDForAppID(const std::string& app_id) override;
ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id,
const std::string& launch_id) override;
bool HasShelfIDToAppIDMapping(ShelfID id) const override;
const std::string& GetAppIDForShelfID(ShelfID id) override;
void PinAppWithID(const std::string& app_id) override;
bool IsAppPinned(const std::string& app_id) override;
void UnpinAppWithID(const std::string& app_id) override;
DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus);
};
} // namespace ash
#endif // ASH_MUS_SHELF_DELEGATE_MUS_H_