app_list_specifics.proto 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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
  3. // found in the LICENSE file.
  4. //
  5. // Sync protocol datatype extension for the app list (aka app launcher).
  6. // If you change or add any fields in this file, update proto_visitors.h and
  7. // potentially proto_enum_conversions.{h, cc}.
  8. syntax = "proto2";
  9. option java_multiple_files = true;
  10. option java_package = "org.chromium.components.sync.protocol";
  11. option optimize_for = LITE_RUNTIME;
  12. package sync_pb;
  13. // Properties of app list objects.
  14. message AppListSpecifics {
  15. // Unique identifier for the item:
  16. // * TYPE_FOLDER: Folder id (generated)
  17. // * TYPE_APP: App Id
  18. optional string item_id = 1;
  19. // What type of item this is.
  20. enum AppListItemType {
  21. // An app, whether a web app, Android app, etc.
  22. //
  23. // For bookmark apps (URL shortcuts), additional information such as their
  24. // URLs are kept in the AppSpecifics.bookmark_app_foobar fields.
  25. TYPE_APP = 1;
  26. // A request to remove any matching default installed apps.
  27. TYPE_REMOVE_DEFAULT_APP = 2;
  28. // A folder containing entries whose |parent_id| matches |item_id|.
  29. TYPE_FOLDER = 3;
  30. // Obsolete type, intended for URL shortcuts, that was never implemented.
  31. TYPE_OBSOLETE_URL = 4;
  32. // A "page break" item (Indicate creation of a new page in app list).
  33. TYPE_PAGE_BREAK = 5;
  34. }
  35. optional AppListItemType item_type = 2;
  36. // Item name (FOLDER).
  37. optional string item_name = 3;
  38. // Id of the parent (folder) item.
  39. optional string parent_id = 4;
  40. // Marked OBSOLETE because this is unused for the app list.
  41. // Which page this item will appear on in the app list.
  42. optional string OBSOLETE_page_ordinal = 5 [deprecated = true];
  43. // Where on a page this item will appear.
  44. optional string item_ordinal = 6;
  45. // Where on a shelf this item will appear.
  46. optional string item_pin_ordinal = 7;
  47. // The color groups used for grouping together icons by colors.
  48. enum ColorGroup {
  49. COLOR_EMPTY = 0;
  50. COLOR_WHITE = 1;
  51. COLOR_RED = 2;
  52. COLOR_ORANGE = 3;
  53. COLOR_YELLOW = 4;
  54. COLOR_GREEN = 5;
  55. COLOR_BLUE = 6;
  56. COLOR_MAGENTA = 7;
  57. COLOR_BLACK = 8;
  58. }
  59. message IconColor {
  60. // The item icon's background color.
  61. optional ColorGroup background_color = 1;
  62. // The item icon's hue.
  63. optional int32 hue = 2;
  64. }
  65. optional IconColor item_color = 8;
  66. }