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

Side by Side Diff: remoting/host/usb_keycode_map.h

Issue 9701030: Native to USB keycode conversion for Mac (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/glue/webkit_glue.gypi » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file (temporarily) lives in two places:
6 // src/remoting/host/usb_keycode_map.h
7 // src/webkit/plugins/ppapi/usb_keycode_map.h
8 // Changes to this file must be made in both locations.
9 // TODO(garykac): Move file into shared location.
10
5 // Data in this file was created by referencing: 11 // Data in this file was created by referencing:
6 // USB HID Usage Tables (v1.11) 27 June 2001 12 // USB HID Usage Tables (v1.11) 27 June 2001
7 // HIToolbox/Events.h (Mac) 13 // HIToolbox/Events.h (Mac)
8 14
9 typedef struct { 15 typedef struct {
10 // USB keycode: 16 // USB keycode:
11 // Upper 16-bits: USB Usage Page. 17 // Upper 16-bits: USB Usage Page.
12 // Lower 16-bits: USB Usage Id: Assigned ID within this usage page. 18 // Lower 16-bits: USB Usage Id: Assigned ID within this usage page.
13 uint32_t usb_keycode; 19 uint32_t usb_keycode;
14 20
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 USB_KEYMAP(0x0c0223, 0x0000, 0xe032, 0xffff), // AC_Home 368 USB_KEYMAP(0x0c0223, 0x0000, 0xe032, 0xffff), // AC_Home
363 USB_KEYMAP(0x0c0224, 0x00a6, 0xe06a, 0xffff), // AC_Back 369 USB_KEYMAP(0x0c0224, 0x00a6, 0xe06a, 0xffff), // AC_Back
364 USB_KEYMAP(0x0c0225, 0x00a7, 0xe069, 0xffff), // AC_Forward 370 USB_KEYMAP(0x0c0225, 0x00a7, 0xe069, 0xffff), // AC_Forward
365 USB_KEYMAP(0x0c0226, 0x0000, 0xe068, 0xffff), // AC_Stop 371 USB_KEYMAP(0x0c0226, 0x0000, 0xe068, 0xffff), // AC_Stop
366 USB_KEYMAP(0x0c0227, 0x00b5, 0xe067, 0xffff), // AC_Refresh (Reload) 372 USB_KEYMAP(0x0c0227, 0x00b5, 0xe067, 0xffff), // AC_Refresh (Reload)
367 USB_KEYMAP(0x0c022a, 0x00a4, 0xe066, 0xffff), // AC_Bookmarks (Favorites) 373 USB_KEYMAP(0x0c022a, 0x00a4, 0xe066, 0xffff), // AC_Bookmarks (Favorites)
368 USB_KEYMAP(0x0c0289, 0x00f0, 0xe000, 0xffff), // AC_Reply 374 USB_KEYMAP(0x0c0289, 0x00f0, 0xe000, 0xffff), // AC_Reply
369 USB_KEYMAP(0x0c028b, 0x00f1, 0xe000, 0xffff), // AC_ForwardMsg (MailForward) 375 USB_KEYMAP(0x0c028b, 0x00f1, 0xe000, 0xffff), // AC_ForwardMsg (MailForward)
370 USB_KEYMAP(0x0c028c, 0x00ef, 0xe000, 0xffff), // AC_Send 376 USB_KEYMAP(0x0c028c, 0x00ef, 0xe000, 0xffff), // AC_Send
371 }; 377 };
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webkit_glue.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698