1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Sync protocol datatype extension for the app list (aka app launcher).
// If you change or add any fields in this file, update proto_visitors.h and
// potentially proto_enum_conversions.{h, cc}.
syntax = "proto2";
option java_multiple_files = true;
option java_package = "org.chromium.components.sync.protocol";
option optimize_for = LITE_RUNTIME;
package sync_pb;
// Properties of app list objects.
message AppListSpecifics {
// Unique identifier for the item:
// * TYPE_FOLDER: Folder id (generated)
// * TYPE_APP: App Id
optional string item_id = 1;
// What type of item this is.
enum AppListItemType {
// An app, whether a web app, Android app, etc.
//
// For bookmark apps (URL shortcuts), additional information such as their
// URLs are kept in the AppSpecifics.bookmark_app_foobar fields.
TYPE_APP = 1;
// A request to remove any matching default installed apps.
TYPE_REMOVE_DEFAULT_APP = 2;
// A folder containing entries whose `parent_id` matches `item_id`.
TYPE_FOLDER = 3;
// Obsolete type, intended for URL shortcuts, that was never implemented.
TYPE_OBSOLETE_URL = 4;
// A "page break" item (Indicate creation of a new page in app list).
TYPE_PAGE_BREAK = 5;
}
optional AppListItemType item_type = 2;
// Item name (FOLDER).
optional string item_name = 3;
// Id of the parent (folder) item.
optional string parent_id = 4;
// Marked OBSOLETE because this is unused for the app list.
// Which page this item will appear on in the app list.
optional string OBSOLETE_page_ordinal = 5 [deprecated = true];
// Where on a page this item will appear.
optional string item_ordinal = 6;
// Where on a shelf this item will appear.
optional string item_pin_ordinal = 7;
// The color groups used for grouping together icons by colors.
enum ColorGroup {
COLOR_EMPTY = 0;
COLOR_WHITE = 1;
COLOR_RED = 2;
COLOR_ORANGE = 3;
COLOR_YELLOW = 4;
COLOR_GREEN = 5;
COLOR_BLUE = 6;
COLOR_MAGENTA = 7;
COLOR_BLACK = 8;
}
message IconColor {
// The item icon's background color.
optional ColorGroup background_color = 1;
// The item icon's hue.
optional int32 hue = 2;
}
optional IconColor item_color = 8;
// This field previously stored the is_user_pinned value, which has been
// removed.
reserved 9;
// Identifier for the app package of the item. Package Ids are stable and
// globally unique across app platforms, whereas App Id stored in item_id is
// not.
optional string promise_package_id = 10;
}
|