sk_app, Sample: Unify InputState enum.
replace() {
if git grep -q "$1")";
then sed -i -e "s#${1}#${2}#g" $(git grep -l "$1");
fi
}
replace 'k\([A-Za-z]*\)_InputState' 'InputState::k\1'
replace '\(\(sk_app::\|\)Window\|Sample\|\)::InputState' 'InputState'
Change-Id: I4cc18814fb1fbdd1f240aabba05aae79c54a4841
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/227642
Commit-Queue: Hal Canary <halcanary@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Auto-Submit: Hal Canary <halcanary@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
diff --git a/tools/sk_app/CommandSet.h b/tools/sk_app/CommandSet.h
index 7e99e3c..7350bb7 100644
--- a/tools/sk_app/CommandSet.h
+++ b/tools/sk_app/CommandSet.h
@@ -41,7 +41,7 @@
CommandSet();
void attach(Window* window);
- bool onKey(sk_app::Window::Key key, sk_app::Window::InputState state, ModifierKey modifiers);
+ bool onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers);
bool onChar(SkUnichar, ModifierKey modifiers);
bool onSoftkey(const SkString& softkey);