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

Side by Side Diff: Source/platform/KeyCodeConversionAndroid.cpp

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 unified diff | Download patch
« no previous file with comments | « Source/platform/CheckedInt.h ('k') | Source/platform/TraceEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2007, The Android Open Source Project 2 * Copyright 2007, The Android Open Source Project
3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 4 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
5 * Copyright (C) 2007 Holger Hans Peter Freyther 5 * Copyright (C) 2007 Holger Hans Peter Freyther
6 * Copyright (C) 2008 Collabora, Ltd. All rights reserved. 6 * Copyright (C) 2008 Collabora, Ltd. All rights reserved.
7 * All rights reserved. 7 * All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 AKEYCODE_NUMPAD_DIVIDE = 154, 77 AKEYCODE_NUMPAD_DIVIDE = 154,
78 AKEYCODE_NUMPAD_MULTIPLY = 155, 78 AKEYCODE_NUMPAD_MULTIPLY = 155,
79 AKEYCODE_NUMPAD_SUBTRACT = 156, 79 AKEYCODE_NUMPAD_SUBTRACT = 156,
80 AKEYCODE_NUMPAD_ADD = 157, 80 AKEYCODE_NUMPAD_ADD = 157,
81 AKEYCODE_NUMPAD_DOT = 158, 81 AKEYCODE_NUMPAD_DOT = 158,
82 AKEYCODE_VOLUME_MUTE = 164, 82 AKEYCODE_VOLUME_MUTE = 164,
83 AKEYCODE_CHANNEL_UP = 166, 83 AKEYCODE_CHANNEL_UP = 166,
84 AKEYCODE_CHANNEL_DOWN = 167, 84 AKEYCODE_CHANNEL_DOWN = 167,
85 }; 85 };
86 86
87 int windowsKeyCodeForKeyEvent(unsigned int keyCode) 87 int windowsKeyCodeForKeyEvent(unsigned keyCode)
88 { 88 {
89 // Does not provide all key codes, and does not handle all keys. 89 // Does not provide all key codes, and does not handle all keys.
90 switch (keyCode) { 90 switch (keyCode) {
91 case AKEYCODE_DEL: 91 case AKEYCODE_DEL:
92 return VKEY_BACK; 92 return VKEY_BACK;
93 case AKEYCODE_TAB: 93 case AKEYCODE_TAB:
94 return VKEY_TAB; 94 return VKEY_TAB;
95 case AKEYCODE_CLEAR: 95 case AKEYCODE_CLEAR:
96 return VKEY_CLEAR; 96 return VKEY_CLEAR;
97 case AKEYCODE_DPAD_CENTER: 97 case AKEYCODE_DPAD_CENTER:
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 case AKEYCODE_CHANNEL_UP: 322 case AKEYCODE_CHANNEL_UP:
323 return VKEY_PRIOR; 323 return VKEY_PRIOR;
324 case AKEYCODE_CHANNEL_DOWN: 324 case AKEYCODE_CHANNEL_DOWN:
325 return VKEY_NEXT; 325 return VKEY_NEXT;
326 default: 326 default:
327 return 0; 327 return 0;
328 } 328 }
329 } 329 }
330 330
331 } // namespace WebCore 331 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/platform/CheckedInt.h ('k') | Source/platform/TraceEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698