commit | 026630f338e29a3e0a28713c0df24178bbee671f | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@chromium.org> | Fri Jan 11 04:54:56 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 11 04:54:56 2019 |
tree | 5003ab21aa0015688fa6539489f8e7a6bcb2fbd3 | |
parent | a2dada4953067fd6f975110b789c9c404446fb27 [diff] |
Implement context menus for App List + App Service It re-uses the existing AppContextMenu, ArcAppContextMenu, CrostiniAppContextMenu and ExtensionAppContextMenu code. Making an App Service abstraction was considered, but rejected as not worth it. For example, the shelf's context menu differs from the launcher's context menu, even for the same app, so the bulk of the *_context_menu.cc code is essentially idiosyncratic UI code for the launcher (aka app list). Some broader concepts (e.g. is it a platform app, is it an uninstallable app), rather than an explicit serialized context menu model, could be factored into the App Service. That work is reserved for future commits. Also remove the ExtensionAppContextMenu::set_is_platform_app method, as it's really a constructor argument. Also clean up some double-calls at two GetAppContextMenu call sites. BUG=826982 Change-Id: I0f9afad47f8de145b391f6dfa9f51ec9085f17b2 Reviewed-on: https://chromium-review.googlesource.com/c/1404761 Commit-Queue: Nigel Tao <nigeltao@chromium.org> Reviewed-by: calamity <calamity@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#621910}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .