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

Side by Side Diff: base/keyboard_code_conversion.cc

Issue 3337006: Revert 58388 - Revert 58215 - Revert 58186 - Move the keyboard files from bas... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « base/keyboard_code_conversion.h ('k') | base/keyboard_code_conversion_gtk.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/keyboard_code_conversion.h" 5 #include "base/keyboard_code_conversion.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/keyboard_codes.h" 9 #include "base/keyboard_codes.h"
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 287
288 KeyboardCode KeyCodeFromKeyIdentifier(const std::string& key_identifier) { 288 KeyboardCode KeyCodeFromKeyIdentifier(const std::string& key_identifier) {
289 const KeyIdentifier* id = GetKeyIdentifierData(key_identifier); 289 const KeyIdentifier* id = GetKeyIdentifierData(key_identifier);
290 if (!id) { 290 if (!id) {
291 return VKEY_UNKNOWN; 291 return VKEY_UNKNOWN;
292 } 292 }
293 return id->key_code; 293 return id->key_code;
294 } 294 }
295 295
296 } // namespace base 296 } // namespace base
OLDNEW
« no previous file with comments | « base/keyboard_code_conversion.h ('k') | base/keyboard_code_conversion_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698