cros: introduce callback for GetContextMenu in ash::ShelfItemDelegate
Changes: Introduce callback for GetContextMenu in ash::ShelfItemDelegate so that chrome's implementation could pass this callback further to wait asynchronous getting menu items, such as getting menu items from Android. For ARC++ app shortcuts project, we could bind GetAppShortcutItems callback and run this introduced callback when android runs GetAppShortcutItems callback. AppListItem side change: crrev.com/c/1023064. Bug: 803291 Test: covered by tests. Change-Id: I4d1e25ff8dfcf6572bb483fe4be3bd3eddba367e Reviewed-on: https://chromium-review.googlesource.com/1023161 Commit-Queue: Qiang Xu <warx@google.com> Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#552847}
Showing
Please register or sign in to comment