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

Unified Diff: src/views/unix/XkeysToSkKeys.h

Issue 1763833002: Force tiles in SampleApp to integer boundaries. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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
« samplecode/SampleApp.cpp ('K') | « samplecode/SampleApp.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/unix/XkeysToSkKeys.h
diff --git a/src/views/unix/XkeysToSkKeys.h b/src/views/unix/XkeysToSkKeys.h
index 30eb97d3969c357a255d057ab9c68baeed6323bd..9cc9885db85b2cf2c0caeb53ca63bf11102b1c06 100644
--- a/src/views/unix/XkeysToSkKeys.h
+++ b/src/views/unix/XkeysToSkKeys.h
@@ -31,6 +31,35 @@ SkKey XKeyToSkKey(KeySym keysym) {
return kDown_SkKey;
case XK_Up:
return kUp_SkKey;
+ case XK_KP_0:
+ case XK_KP_Insert:
+ return k0_SkKey;
+ case XK_KP_1:
+ case XK_KP_End:
+ return k1_SkKey;
+ case XK_KP_2:
+ case XK_KP_Down:
+ return k2_SkKey;
+ case XK_KP_3:
+ case XK_KP_Page_Down:
+ return k3_SkKey;
+ case XK_KP_4:
+ case XK_KP_Left:
+ return k4_SkKey;
+ case XK_KP_5:
+ return k5_SkKey;
+ case XK_KP_6:
+ case XK_KP_Right:
+ return k6_SkKey;
+ case XK_KP_7:
+ case XK_KP_Home:
+ return k7_SkKey;
+ case XK_KP_8:
+ case XK_KP_Up:
+ return k8_SkKey;
+ case XK_KP_9:
+ case XK_KP_Page_Up:
+ return k9_SkKey;
default:
return kNONE_SkKey;
}
« samplecode/SampleApp.cpp ('K') | « samplecode/SampleApp.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698