tree: cac3bb162693771d450929507972beeabe28e95f [path history] [tgz]
  1. BUILD.gn
  2. README.md
  3. main.cc
  4. meta/
  5. present_view.cc
  6. present_view.h
  7. tests/
src/ui/tools/present_view/README.md

Scenic View Debugger

This directory contains present_view, a utility which can debug processes that provide Views via the ViewProvider interface.

The present_view tool takes the URL to a process that exposes the ViewProvider interface and makes its View the root (fullscreen) View.

This tool is intended for testing and debugging purposes only and may cause problems if invoked incorrectly.

Usage

$ present_view <view_provider_process>
e.g.
$ present_view spinning_square_view

When a view is presented, it takes over the entire display. To switch between presentations, type Control-Alt-‘[’ or Control-Alt-‘]’.

Alternatively, kill any other view-providing processes like so:

$ killall spinning_square_view

Using fuchsia.intl.PropertyProvider

present_view can optionally start a component that will serve fuchsia.intl.PropertyProvider for the started process. This is useful for debugging programs that require this functionality. This option is not the default as different environments may not have this service available. The functionality is invoked by adding a flag --locale=..., where the flag value is a comma-separated list of BCP-47 locale identifiers that we want to be served by fuchsia.intl.PropertyProvider.

Example below.

$ present_view --locale=<locale_id>[,<locale_id>]... <view_provider_process>
e.g.
$ present_view --locale=nl-NL,ru-RU spinning_square_view