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

Side by Side Diff: webkit/glue/webinputevent_mac.mm

Issue 8026: Remove WebKeyboardEvent::key_data because we don't actually use it... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 | « webkit/glue/webinputevent.h ('k') | webkit/glue/webinputevent_win.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "config.h" 7 #include "config.h"
8 8
9 #include "webkit/glue/webinputevent.h" 9 #include "webkit/glue/webinputevent.h"
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 modifiers |= CTRL_KEY; 153 modifiers |= CTRL_KEY;
154 if ([event modifierFlags] & NSShiftKeyMask) 154 if ([event modifierFlags] & NSShiftKeyMask)
155 modifiers |= SHIFT_KEY; 155 modifiers |= SHIFT_KEY;
156 if ([event modifierFlags] & NSAlternateKeyMask) 156 if ([event modifierFlags] & NSAlternateKeyMask)
157 modifiers |= ALT_KEY; 157 modifiers |= ALT_KEY;
158 158
159 if ([event isARepeat]) 159 if ([event isARepeat])
160 modifiers |= IS_AUTO_REPEAT; 160 modifiers |= IS_AUTO_REPEAT;
161 161
162 key_code = [event keyCode]; 162 key_code = [event keyCode];
163 key_data = [[event characters] characterAtIndex:0];
164 163
165 mac_event = event; // retains |event| 164 mac_event = event; // retains |event|
166 } 165 }
OLDNEW
« no previous file with comments | « webkit/glue/webinputevent.h ('k') | webkit/glue/webinputevent_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698