skia2/tools/viewer
brianosman 622c8d5de1 Add flexible keybinding/command system to sk_app.
Viewer demonstrates use: Just create an instance of CommandSet,
register with the window, and add commands. Hopefully, we can keep
all commands in one place, and get some nice side-benefits. With
this framework, if you want to add a new command, you are only
required to add code in ONE place. And you get added to the help
screen, for free.

CommandSet automatically binds 'h' to cycle through the help modes.
(Functional grouping is most useful for general use, but the other
mode is nice to know what a key does, or to find an unused key for
a new feature).

Grouped by function: https://screenshot.googleplex.com/G5h3f52wFKu.png
Alphabetical by key: https://screenshot.googleplex.com/nZiopabLKJ6.png

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1955293002

Review-Url: https://codereview.chromium.org/1955293002
2016-05-10 06:50:49 -07:00
..
sk_app Add flexible keybinding/command system to sk_app. 2016-05-10 06:50:49 -07:00
GMSlide.cpp More refactoring for Viewer 2016-05-05 12:32:03 -07:00
GMSlide.h More refactoring for Viewer 2016-05-05 12:32:03 -07:00
SKPSlide.cpp More refactoring for Viewer 2016-05-05 12:32:03 -07:00
SKPSlide.h More refactoring for Viewer 2016-05-05 12:32:03 -07:00
Slide.h More refactoring for Viewer 2016-05-05 12:32:03 -07:00
Viewer.cpp Add flexible keybinding/command system to sk_app. 2016-05-10 06:50:49 -07:00
Viewer.h Add flexible keybinding/command system to sk_app. 2016-05-10 06:50:49 -07:00