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

Side by Side Diff: chrome/test/remoting/key_code_conv.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « chrome/test/remoting/it2me_browsertest.cc ('k') | chrome/test/remoting/key_code_map.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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/test/remoting/key_code_conv.h" 5 #include "chrome/test/remoting/key_code_conv.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
7 #include "chrome/test/remoting/key_code_map.h" 10 #include "chrome/test/remoting/key_code_map.h"
8 11
9 namespace remoting { 12 namespace remoting {
10 13
11 ui::KeyboardCode InvalidKeyboardCode() { 14 ui::KeyboardCode InvalidKeyboardCode() {
12 return key_code_map[0].vkey_code; 15 return key_code_map[0].vkey_code;
13 } 16 }
14 17
15 void GetKeyValuesFromChar( 18 void GetKeyValuesFromChar(
16 char c, const char** code, ui::KeyboardCode* vkey_code, bool* shift) { 19 char c, const char** code, ui::KeyboardCode* vkey_code, bool* shift) {
(...skipping 10 matching lines...) Expand all
27 30
28 if (key_code_map[i].upper_char == c) { 31 if (key_code_map[i].upper_char == c) {
29 *code = key_code_map[i].code; 32 *code = key_code_map[i].code;
30 *vkey_code = key_code_map[i].vkey_code; 33 *vkey_code = key_code_map[i].vkey_code;
31 *shift = true; 34 *shift = true;
32 } 35 }
33 } 36 }
34 } 37 }
35 38
36 } // namespace remoting 39 } // namespace remoting
OLDNEW
« no previous file with comments | « chrome/test/remoting/it2me_browsertest.cc ('k') | chrome/test/remoting/key_code_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698