Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: tools/viewer/sk_app/Window.h

Issue 1955293002: Add flexible keybinding/command system to sk_app (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Extract keybinding system as CommandSet. Add grouping and two help modes. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/viewer/sk_app/Window.h
diff --git a/tools/viewer/sk_app/Window.h b/tools/viewer/sk_app/Window.h
index 56444a67b76639577e9b0e24a7b506c6bce1a54a..48fd4ecdb860a275e356f9fa1e07a110a966c4ef 100644
--- a/tools/viewer/sk_app/Window.h
+++ b/tools/viewer/sk_app/Window.h
@@ -41,7 +41,7 @@ public:
void detach();
// input handling
- enum Key {
+ enum class Key {
bsalomon 2016/05/09 20:25:53 When we use enum class we drop the _<Type> suffix
kNONE_Key, //corresponds to android's UNKNOWN
kLeftSoftKey_Key,
@@ -79,7 +79,7 @@ public:
kLast_Key = kCamera_Key
};
- static const int kKeyCount = kLast_Key + 1;
+ static const int kKeyCount = static_cast<int>(Key::kLast_Key) + 1;
enum ModifierKeys {
kShift_ModifierKey = 1 << 0,

Powered by Google App Engine
This is Rietveld 408576698