| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/common/shelf/shelf_delegate.h" | 10 #include "ash/common/shelf/shelf_delegate.h" |
| 11 #include "ash/public/cpp/shelf_types.h" | 11 #include "ash/public/cpp/shelf_types.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | 15 |
| 16 // Manages communication between the mash shelf and the browser. | 16 // Manages communication between the mash shelf and the browser. |
| 17 class ShelfDelegateMus : public ShelfDelegate { | 17 class ShelfDelegateMus : public ShelfDelegate { |
| 18 public: | 18 public: |
| 19 ShelfDelegateMus(); | 19 ShelfDelegateMus(); |
| 20 ~ShelfDelegateMus() override; | 20 ~ShelfDelegateMus() override; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 // ShelfDelegate: | 23 // ShelfDelegate: |
| 24 ShelfID GetShelfIDForAppID(const std::string& app_id) override; | 24 ShelfID GetShelfIDForAppID(const std::string& app_id) override; |
| 25 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, | 25 ShelfID GetShelfIDForAppIDAndLaunchID(const std::string& app_id, |
| 26 const std::string& launch_id) override; | 26 const std::string& launch_id) override; |
| 27 bool HasShelfIDToAppIDMapping(ShelfID id) const override; | |
| 28 const std::string& GetAppIDForShelfID(ShelfID id) override; | 27 const std::string& GetAppIDForShelfID(ShelfID id) override; |
| 29 void PinAppWithID(const std::string& app_id) override; | 28 void PinAppWithID(const std::string& app_id) override; |
| 30 bool IsAppPinned(const std::string& app_id) override; | 29 bool IsAppPinned(const std::string& app_id) override; |
| 31 void UnpinAppWithID(const std::string& app_id) override; | 30 void UnpinAppWithID(const std::string& app_id) override; |
| 32 | 31 |
| 33 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus); | 32 DISALLOW_COPY_AND_ASSIGN(ShelfDelegateMus); |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 } // namespace ash | 35 } // namespace ash |
| 37 | 36 |
| 38 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_ | 37 #endif // ASH_MUS_SHELF_DELEGATE_MUS_H_ |
| OLD | NEW |