| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_SHELF_SHELF_DELEGATE_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_DELEGATE_H_ |
| 6 #define ASH_COMMON_SHELF_SHELF_DELEGATE_H_ | 6 #define ASH_COMMON_SHELF_SHELF_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/common/shelf/shelf_item_types.h" | 11 #include "ash/common/shelf/shelf_item_types.h" |
| 12 | 12 |
| 13 namespace ash { | 13 namespace ash { |
| 14 | 14 |
| 15 class WmShelf; | |
| 16 | |
| 17 // Delegate shared by all shelf instances. | 15 // Delegate shared by all shelf instances. |
| 18 class ASH_EXPORT ShelfDelegate { | 16 class ASH_EXPORT ShelfDelegate { |
| 19 public: | 17 public: |
| 20 virtual ~ShelfDelegate() {} | 18 virtual ~ShelfDelegate() {} |
| 21 | 19 |
| 22 // Get the shelf ID from an application ID. | 20 // Get the shelf ID from an application ID. |
| 23 virtual ShelfID GetShelfIDForAppID(const std::string& app_id) = 0; | 21 virtual ShelfID GetShelfIDForAppID(const std::string& app_id) = 0; |
| 24 | 22 |
| 25 // Get the shelf ID from an application ID and a launch ID. | 23 // Get the shelf ID from an application ID and a launch ID. |
| 26 // The launch ID can be passed to an app when launched in order to support | 24 // The launch ID can be passed to an app when launched in order to support |
| (...skipping 21 matching lines...) Expand all Loading... |
| 48 // Check if the app with |app_id_| is pinned to the shelf. | 46 // Check if the app with |app_id_| is pinned to the shelf. |
| 49 virtual bool IsAppPinned(const std::string& app_id) = 0; | 47 virtual bool IsAppPinned(const std::string& app_id) = 0; |
| 50 | 48 |
| 51 // Unpins app item with |app_id|. | 49 // Unpins app item with |app_id|. |
| 52 virtual void UnpinAppWithID(const std::string& app_id) = 0; | 50 virtual void UnpinAppWithID(const std::string& app_id) = 0; |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 } // namespace ash | 53 } // namespace ash |
| 56 | 54 |
| 57 #endif // ASH_COMMON_SHELF_SHELF_DELEGATE_H_ | 55 #endif // ASH_COMMON_SHELF_SHELF_DELEGATE_H_ |
| OLD | NEW |