| Index: ash/public/cpp/shelf_item_types.h
|
| diff --git a/ash/public/cpp/shelf_item_types.h b/ash/public/cpp/shelf_item_types.h
|
| deleted file mode 100644
|
| index 448f08e16f72cd2b0c00365da77303e7836e0d6d..0000000000000000000000000000000000000000
|
| --- a/ash/public/cpp/shelf_item_types.h
|
| +++ /dev/null
|
| @@ -1,90 +0,0 @@
|
| -// Copyright 2017 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_PUBLIC_CPP_SHELF_ITEM_TYPES_H_
|
| -#define ASH_PUBLIC_CPP_SHELF_ITEM_TYPES_H_
|
| -
|
| -#include <string>
|
| -#include <vector>
|
| -
|
| -#include "base/strings/string16.h"
|
| -#include "ui/gfx/image/image_skia.h"
|
| -
|
| -namespace ash {
|
| -
|
| -typedef int ShelfID;
|
| -const int kInvalidShelfID = 0;
|
| -
|
| -// The type of a shelf item.
|
| -enum ShelfItemType {
|
| - // Represents a running app panel.
|
| - TYPE_APP_PANEL,
|
| -
|
| - // Represents a pinned shortcut to an app.
|
| - TYPE_APP_SHORTCUT,
|
| -
|
| - // Toggles visiblity of the app list.
|
| - TYPE_APP_LIST,
|
| -
|
| - // The browser shortcut button.
|
| - TYPE_BROWSER_SHORTCUT,
|
| -
|
| - // Represents an app: Extension "V1" (legacy packaged and hosted) apps,
|
| - // Extension "V2" (platform) apps,
|
| - // Arc (App Runtime for Chrome - Android Play Store) apps.
|
| - TYPE_APP,
|
| -
|
| - // Represents a dialog.
|
| - TYPE_DIALOG,
|
| -
|
| - // Default value.
|
| - TYPE_UNDEFINED,
|
| -};
|
| -
|
| -// Represents the status of applications in the shelf.
|
| -enum ShelfItemStatus {
|
| - // A closed shelf item, i.e. has no live instance.
|
| - STATUS_CLOSED,
|
| - // A shelf item that has live instance.
|
| - STATUS_RUNNING,
|
| - // An active shelf item that has focus.
|
| - STATUS_ACTIVE,
|
| - // A shelf item that needs user's attention.
|
| - STATUS_ATTENTION,
|
| -};
|
| -
|
| -struct ShelfItem {
|
| - ShelfItem();
|
| - ShelfItem(const ShelfItem& shelf_item);
|
| - ~ShelfItem();
|
| -
|
| - ShelfItemType type = TYPE_UNDEFINED;
|
| -
|
| - // Image to display in the shelf.
|
| - gfx::ImageSkia image;
|
| -
|
| - // Assigned by the model when the item is added.
|
| - ShelfID id = kInvalidShelfID;
|
| -
|
| - // Running status.
|
| - ShelfItemStatus status = STATUS_CLOSED;
|
| -
|
| - // The application id for this shelf item; only populated for some items.
|
| - std::string app_id;
|
| -
|
| - // The title to display for tooltips, etc.
|
| - base::string16 title;
|
| -
|
| - // Whether the tooltip should be shown on hover; generally true.
|
| - bool shows_tooltip = true;
|
| -
|
| - // Whether the item is pinned by a policy preference (ie. user cannot un-pin).
|
| - bool pinned_by_policy = false;
|
| -};
|
| -
|
| -typedef std::vector<ShelfItem> ShelfItems;
|
| -
|
| -} // namespace ash
|
| -
|
| -#endif // ASH_PUBLIC_CPP_SHELF_ITEM_TYPES_H_
|
|
|