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

Issue 9701030: Native to USB keycode conversion for Mac (Closed)

Created:
8 years, 9 months ago by garykac
Modified:
8 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

Native to USB keycode conversion for Mac Add code to convert from native Mac keycodes into USB keycodes so that Pepper can correctly populate the |usb_key_code| field in the InputEvent. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126956

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -2 lines) Patch
M remoting/host/usb_keycode_map.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/usb_key_code_conversion.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A webkit/plugins/ppapi/usb_key_code_conversion_mac.cc View 1 2 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/usb_keycode_map.h View 1 2 3 4 5 6 1 chunk +377 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
garykac
8 years, 9 months ago (2012-03-14 17:53:29 UTC) #1
dmichael (off chromium)
I'll defer to wez about most of this; I'm not familiar with the data for ...
8 years, 9 months ago (2012-03-14 19:36:01 UTC) #2
garykac
On 2012/03/14 19:36:01, dmichael wrote: > I'll defer to wez about most of this; I'm ...
8 years, 9 months ago (2012-03-14 20:26:01 UTC) #3
garykac
http://codereview.chromium.org/9701030/diff/2001/webkit/plugins/ppapi/usb_key_code_conversion_mac.mm File webkit/plugins/ppapi/usb_key_code_conversion_mac.mm (right): http://codereview.chromium.org/9701030/diff/2001/webkit/plugins/ppapi/usb_key_code_conversion_mac.mm#newcode135 webkit/plugins/ppapi/usb_key_code_conversion_mac.mm:135: {0x0700e0, 0x003b}, // LeftControl On 2012/03/14 19:36:02, dmichael wrote: ...
8 years, 9 months ago (2012-03-14 20:26:06 UTC) #4
dmichael (off chromium)
lgtm, but you may want to let wez weigh in http://codereview.chromium.org/9701030/diff/2001/webkit/plugins/ppapi/usb_key_code_conversion_mac.mm File webkit/plugins/ppapi/usb_key_code_conversion_mac.mm (right): http://codereview.chromium.org/9701030/diff/2001/webkit/plugins/ppapi/usb_key_code_conversion_mac.mm#newcode135 ...
8 years, 9 months ago (2012-03-14 20:50:26 UTC) #5
garykac
On Wed, Mar 14, 2012 at 1:50 PM, <dmichael@chromium.org> wrote: > lgtm, but you may ...
8 years, 9 months ago (2012-03-14 21:05:01 UTC) #6
garykac
A copy of the complete mapping table has been placed in this directory so that ...
8 years, 9 months ago (2012-03-14 23:20:04 UTC) #7
Wez
LGTM!
8 years, 9 months ago (2012-03-14 23:21:57 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/9701030/4003
8 years, 9 months ago (2012-03-15 00:38:16 UTC) #9
commit-bot: I haz the power
Presubmit check for 9701030-4003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-15 00:38:22 UTC) #10
garykac
+tony for webkit/glue
8 years, 9 months ago (2012-03-15 00:58:18 UTC) #11
tony
Please elaborate in the change description. E.g., you might want to mention that this is ...
8 years, 9 months ago (2012-03-15 16:46:28 UTC) #12
dmichael (off chromium)
(still lgtm) http://codereview.chromium.org/9701030/diff/4003/webkit/plugins/ppapi/usb_key_code_conversion_mac.cc File webkit/plugins/ppapi/usb_key_code_conversion_mac.cc (right): http://codereview.chromium.org/9701030/diff/4003/webkit/plugins/ppapi/usb_key_code_conversion_mac.cc#newcode26 webkit/plugins/ppapi/usb_key_code_conversion_mac.cc:26: for (uint i = 0; i < ...
8 years, 9 months ago (2012-03-15 17:03:08 UTC) #13
Wez
http://codereview.chromium.org/9701030/diff/4003/webkit/plugins/ppapi/usb_key_code_conversion_mac.cc File webkit/plugins/ppapi/usb_key_code_conversion_mac.cc (right): http://codereview.chromium.org/9701030/diff/4003/webkit/plugins/ppapi/usb_key_code_conversion_mac.cc#newcode26 webkit/plugins/ppapi/usb_key_code_conversion_mac.cc:26: for (uint i = 0; i < arraysize(usb_keycode_map); i++) ...
8 years, 9 months ago (2012-03-15 17:10:52 UTC) #14
garykac
On 2012/03/15 16:46:28, tony wrote: > Please elaborate in the change description. E.g., you might ...
8 years, 9 months ago (2012-03-15 17:51:20 UTC) #15
dmichael (off chromium)
8 years, 9 months ago (2012-03-15 18:26:41 UTC) #16
On 2012/03/15 17:51:20, garykac wrote:
> On 2012/03/15 16:46:28, tony wrote:
> > Please elaborate in the change description.  E.g., you might want to mention
> > that this is for ppapi.
> 
> Done.
> 
> > What's the final location for this file going to be?  Can you file a bug for
> > that work?
> 
> Done. crbug.com/118432
> 
> 
> On 2012/03/15 17:03:08, dmichael wrote:
> > 
> >
>
http://codereview.chromium.org/9701030/diff/4003/webkit/plugins/ppapi/usb_key...
> > webkit/plugins/ppapi/usb_keycode_map.h:377: };
> > please undef USB_KEYMAP
> 
> Done.
> 
> I added an undefine in the usb_key_code_conversion_mac.cc file, so that it's
> near the corresponding #define.
> Although I can see the value of having a single #undef at the end of the
_map.h
> file.
> Does Chromium have a style preference for this?
I don't think so. Putting it after the include as you have makes sense. I just
didn't read carefully enough.

Powered by Google App Engine
This is Rietveld 408576698