| Index: ash/shelf/shelf_delegate.h
|
| diff --git a/ash/shelf/shelf_delegate.h b/ash/shelf/shelf_delegate.h
|
| deleted file mode 100644
|
| index 346240904604fca98755f085908a2931b77d8ba3..0000000000000000000000000000000000000000
|
| --- a/ash/shelf/shelf_delegate.h
|
| +++ /dev/null
|
| @@ -1,53 +0,0 @@
|
| -// Copyright 2013 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_SHELF_SHELF_DELEGATE_H_
|
| -#define ASH_SHELF_SHELF_DELEGATE_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "ash/ash_export.h"
|
| -#include "ash/public/cpp/shelf_types.h"
|
| -
|
| -namespace ash {
|
| -
|
| -// Delegate shared by all shelf instances.
|
| -class ASH_EXPORT ShelfDelegate {
|
| - public:
|
| - virtual ~ShelfDelegate() {}
|
| -
|
| - // Get the shelf ID from an application ID. Returns kInvalidShelfID if the
|
| - // app id is unknown, or has no associated ShelfID.
|
| - virtual ShelfID GetShelfIDForAppID(const std::string& app_id) = 0;
|
| -
|
| - // Get the shelf ID from an application ID and a launch ID.
|
| - // The launch ID can be passed to an app when launched in order to support
|
| - // multiple shelf items per app. This id is used together with the app_id to
|
| - // uniquely identify each shelf item that has the same app_id.
|
| - // For example, a single virtualization app might want to show different
|
| - // shelf icons for different remote apps. Returns kInvalidShelfID if the app
|
| - // id is unknown or has no associated ShelfID.
|
| - virtual ShelfID GetShelfIDForAppIDAndLaunchID(
|
| - const std::string& app_id,
|
| - const std::string& launch_id) = 0;
|
| -
|
| - // Get the application ID for a given shelf ID. Returns an empty string for
|
| - // an unknown or invalid ShelfID.
|
| - virtual const std::string& GetAppIDForShelfID(ShelfID id) = 0;
|
| -
|
| - // Pins an app with |app_id| to shelf. A running instance will get pinned.
|
| - // In case there is no running instance a new shelf item is created and
|
| - // pinned.
|
| - virtual void PinAppWithID(const std::string& app_id) = 0;
|
| -
|
| - // Check if the app with |app_id_| is pinned to the shelf.
|
| - virtual bool IsAppPinned(const std::string& app_id) = 0;
|
| -
|
| - // Unpins app item with |app_id|.
|
| - virtual void UnpinAppWithID(const std::string& app_id) = 0;
|
| -};
|
| -
|
| -} // namespace ash
|
| -
|
| -#endif // ASH_SHELF_SHELF_DELEGATE_H_
|
|
|