From 5a01f0ec51577582ed2433fbeafb1caa517e3440 Mon Sep 17 00:00:00 2001 From: thiruram Date: Mon, 4 May 2020 17:49:37 -0700 Subject: Implements LAUNCHER_ITEM_DROP_FOLDER_CREATED event. When item is dropped on a existing item resulting in new folder creation, triggers LAUNCHER_ITEM_DROP_FOLDER_CREATED event with details of the destination package. This change also introduces new FolderIcon item to launcher_atom.proto to represent folder icon. Screencast and sample logs: https://docs.google.com/document/d/1CBP2yTcXdFhPdNG5ZmWFKSgd8mDbMevY-akVlUXPLDo/edit#bookmark=id.tmbucd1f44qp Bug: 152978018 Change-Id: Ib4d343ba9075aa8853652f128457c4638541ec59 --- protos/launcher_atom.proto | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protos') diff --git a/protos/launcher_atom.proto b/protos/launcher_atom.proto index 036fb02243..cac2d8f5a7 100644 --- a/protos/launcher_atom.proto +++ b/protos/launcher_atom.proto @@ -26,6 +26,7 @@ message ItemInfo { Task task = 2; Shortcut shortcut = 3; Widget widget = 4; + FolderIcon folder_icon = 9; } // When used for launch event, stores the global predictive rank optional int32 rank = 5; @@ -92,6 +93,11 @@ message Task { optional int32 index = 3; } +// Represents folder in a closed state. +message FolderIcon { + optional int32 cardinality = 1; +} + ////////////////////////////////////////////// // Containers -- cgit v1.2.3