summaryrefslogtreecommitdiffstats
path: root/sync/protocol/app_list_specifics.proto
diff options
context:
space:
mode:
Diffstat (limited to 'sync/protocol/app_list_specifics.proto')
-rw-r--r--sync/protocol/app_list_specifics.proto49
1 files changed, 49 insertions, 0 deletions
diff --git a/sync/protocol/app_list_specifics.proto b/sync/protocol/app_list_specifics.proto
new file mode 100644
index 0000000..c677a4b
--- /dev/null
+++ b/sync/protocol/app_list_specifics.proto
@@ -0,0 +1,49 @@
+// 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.
+//
+// Sync protocol datatype extension for the app list (aka app launcher).
+
+// Update proto_{value,enum}_conversions{.h,.cc,_unittest.cc} if you change
+// any fields in this file.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+option retain_unknown_fields = true;
+
+package sync_pb;
+
+// Properties of app list objects.
+message AppListSpecifics {
+ // Unique identifier for the item:
+ // * TYPE_FOLDER: Folder id (generated)
+ // * TYPE_APP: App Id
+ // * TYPE_URL: Url
+ optional string item_id = 1;
+
+ // What type of item this is.
+ enum AppListItemType {
+ // An extension app.
+ 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;
+ // A URL shortcut (functionally equivalent to a bookmark).
+ TYPE_URL = 4;
+ }
+ optional AppListItemType item_type = 2;
+
+ // Item name (FOLDER or URL).
+ optional string item_name = 3;
+
+ // Id of the parent (folder) item.
+ optional string parent_id = 4;
+
+ // Which page this item will appear on in the app list.
+ optional string page_ordinal = 5;
+
+ // Where on a page this item will appear.
+ optional string item_ordinal = 6;
+}