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

Side by Side Diff: include/views/android/AndroidKeyToSkKey.h

Issue 721903002: Cleanup public includes directory. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: &^%%$# Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « include/gpu/GrGlyph.h ('k') | include/views/unix/XkeysToSkKeys.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2011 Skia
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9
10 #ifndef _ANDROID_TO_SKIA_KEYCODES_H
11 #define _ANDROID_TO_SKIA_KEYCODES_H
12
13 #include "android/keycodes.h"
14 #include "SkKey.h"
15
16 // Convert an Android keycode to an SkKey. This is an incomplete list, only
17 // including keys used by the sample app.
18 SkKey AndroidKeycodeToSkKey(int keycode) {
19 switch (keycode) {
20 case AKEYCODE_DPAD_LEFT:
21 return kLeft_SkKey;
22 case AKEYCODE_DPAD_RIGHT:
23 return kRight_SkKey;
24 case AKEYCODE_DPAD_UP:
25 return kUp_SkKey;
26 case AKEYCODE_DPAD_DOWN:
27 return kDown_SkKey;
28 case AKEYCODE_BACK:
29 return kBack_SkKey;
30 default:
31 return kNONE_SkKey;
32 }
33 }
34
35 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrGlyph.h ('k') | include/views/unix/XkeysToSkKeys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698