OLD | NEW |
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_MUS_SHELF_DELEGATE_MUS_H_ | 5 #ifndef ASH_MUS_SHELF_DELEGATE_MUS_H_ |
6 #define ASH_MUS_SHELF_DELEGATE_MUS_H_ | 6 #define ASH_MUS_SHELF_DELEGATE_MUS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 private: | 27 private: |
28 // ShelfDelegate: | 28 // ShelfDelegate: |
29 void OnShelfCreated(WmShelf* shelf) override; | 29 void OnShelfCreated(WmShelf* shelf) override; |
30 void OnShelfDestroyed(WmShelf* shelf) override; | 30 void OnShelfDestroyed(WmShelf* shelf) override; |
31 void OnShelfAlignmentChanged(WmShelf* shelf) override; | 31 void OnShelfAlignmentChanged(WmShelf* shelf) override; |
32 void OnShelfAutoHideBehaviorChanged(WmShelf* shelf) override; | 32 void OnShelfAutoHideBehaviorChanged(WmShelf* shelf) override; |
33 void OnShelfAutoHideStateChanged(WmShelf* shelf) override; | 33 void OnShelfAutoHideStateChanged(WmShelf* shelf) override; |
34 void OnShelfVisibilityStateChanged(WmShelf* shelf) override; | 34 void OnShelfVisibilityStateChanged(WmShelf* shelf) override; |
35 ShelfID GetShelfIDForAppID(const std::string& app_id) override; | 35 ShelfID GetShelfIDForAppID(const std::string& app_id) override; |
| 36 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, |
| 37 const std::string& launch_id) override; |
36 bool HasShelfIDToAppIDMapping(ShelfID id) const override; | 38 bool HasShelfIDToAppIDMapping(ShelfID id) const override; |
37 const std::string& GetAppIDForShelfID(ShelfID id) override; | 39 const std::string& GetAppIDForShelfID(ShelfID id) override; |
38 void PinAppWithID(const std::string& app_id) override; | 40 void PinAppWithID(const std::string& app_id) override; |
39 bool IsAppPinned(const std::string& app_id) override; | 41 bool IsAppPinned(const std::string& app_id) override; |
40 void UnpinAppWithID(const std::string& app_id) override; | 42 void UnpinAppWithID(const std::string& app_id) override; |
41 | 43 |
42 // mojom::ShelfController: | 44 // mojom::ShelfController: |
43 void AddObserver(mojom::ShelfObserverAssociatedPtrInfo observer) override; | 45 void AddObserver(mojom::ShelfObserverAssociatedPtrInfo observer) override; |
44 void SetAlignment(ShelfAlignment alignment, int64_t display_id) override; | 46 void SetAlignment(ShelfAlignment alignment, int64_t display_id) override; |
45 void SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide, | 47 void SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide, |
(...skipping 11 matching lines...) Expand all Loading... |
57 | 59 |
58 std::map<std::string, ShelfID> app_id_to_shelf_id_; | 60 std::map<std::string, ShelfID> app_id_to_shelf_id_; |
59 std::map<ShelfID, std::string> shelf_id_to_app_id_; | 61 std::map<ShelfID, std::string> shelf_id_to_app_id_; |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus); | 63 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace ash | 66 } // namespace ash |
65 | 67 |
66 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_ | 68 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_ |
OLD | NEW |