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

Side by Side Diff: ui/base/keycodes/keyboard_code_conversion_x.cc

Issue 8801008: Enable RenderViewImplTest.{OnHandleKeyboardEvent,InsertCharacters} for Aura on X11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « content/test/render_view_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/base/keycodes/keyboard_code_conversion_x.h" 5 #include "ui/base/keycodes/keyboard_code_conversion_x.h"
6 6
7 #include <X11/keysym.h> 7 #include <X11/keysym.h>
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 10
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 case XK_2: 163 case XK_2:
164 case XK_3: 164 case XK_3:
165 case XK_4: 165 case XK_4:
166 case XK_5: 166 case XK_5:
167 case XK_6: 167 case XK_6:
168 case XK_7: 168 case XK_7:
169 case XK_8: 169 case XK_8:
170 case XK_9: 170 case XK_9:
171 return static_cast<KeyboardCode>(VKEY_0 + (keysym - XK_0)); 171 return static_cast<KeyboardCode>(VKEY_0 + (keysym - XK_0));
172 172
173 case XK_parenright:
174 return VKEY_0;
175 case XK_exclam:
176 return VKEY_1;
177 case XK_at:
178 return VKEY_2;
179 case XK_numbersign:
180 return VKEY_3;
181 case XK_dollar:
182 return VKEY_4;
183 case XK_percent:
184 return VKEY_5;
185 case XK_asciicircum:
186 return VKEY_6;
187 case XK_ampersand:
188 return VKEY_7;
189 case XK_asterisk:
190 return VKEY_8;
191 case XK_parenleft:
192 return VKEY_9;
193
173 case XK_KP_0: 194 case XK_KP_0:
174 case XK_KP_1: 195 case XK_KP_1:
175 case XK_KP_2: 196 case XK_KP_2:
176 case XK_KP_3: 197 case XK_KP_3:
177 case XK_KP_4: 198 case XK_KP_4:
178 case XK_KP_5: 199 case XK_KP_5:
179 case XK_KP_6: 200 case XK_KP_6:
180 case XK_KP_7: 201 case XK_KP_7:
181 case XK_KP_8: 202 case XK_KP_8:
182 case XK_KP_9: 203 case XK_KP_9:
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 case VKEY_F23: 614 case VKEY_F23:
594 case VKEY_F24: 615 case VKEY_F24:
595 return XK_F1 + (keycode - VKEY_F1); 616 return XK_F1 + (keycode - VKEY_F1);
596 617
597 default: 618 default:
598 return 0; 619 return 0;
599 } 620 }
600 } 621 }
601 622
602 } // namespace ui 623 } // namespace ui
OLDNEW
« no previous file with comments | « content/test/render_view_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698