Add MetalayerMode to the palette

Desktop / Chromium - kaznacheev [chromium.org] - 20 April 2017 18:35 EDT

This tool shows/hides the "metalayer" overlay on the containter side.

The tool name string is temporary, as well as the palette icons (reusing the icons from "Capture region").

Still keeping around the temporary Shift-Search-A shortcut and the repurposed "Capture region" tool.

BUG=b:37165189 TEST="Metalayer mode" stylus tool toggles the metalayer.

Review-Url: https://codereview.chromium.org/2824703006 Cr-Commit-Position: refs/heads/master@{#466167}

466e48c Add MetalayerMode to the palette.
ash/BUILD.gn | 2 +
ash/ash_strings.grd | 3 +
ash/palette_delegate.h | 11 ++++
ash/shell/shell_delegate_impl.cc | 3 +
ash/system/palette/palette_ids.cc | 4 ++
ash/system/palette/palette_ids.h | 2 +
ash/system/palette/palette_tool.cc | 2 +
ash/system/palette/tools/metalayer_mode.cc | 65 ++++++++++++++++++++++
ash/system/palette/tools/metalayer_mode.h | 42 ++++++++++++++
ash/test/test_palette_delegate.cc | 8 +++
ash/test/test_palette_delegate.h | 3 +
.../arc_voice_interaction_framework_service.cc | 62 ++++++++++++++++++++-
.../arc_voice_interaction_framework_service.h | 11 ++++
chrome/browser/ui/ash/palette_delegate_chromeos.cc | 34 ++++++++++-
chrome/browser/ui/ash/palette_delegate_chromeos.h | 3 +
.../arc/common/voice_interaction_framework.mojom | 13 +++--
16 files changed, 259 insertions(+), 9 deletions(-)

Upstream: git.chromium.org


  • Share