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

Side by Side Diff: public/web/WebInputEvent.h

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added keyboardTest failure for virtual/slimmingpaint Created 5 years, 10 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 | « public/platform/Platform.h ('k') | public/web/WebViewClient.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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // what is returned by the Windows API. For example, it should 236 // what is returned by the Windows API. For example, it should
237 // store VK_SHIFT instead of VK_RSHIFT. The location information 237 // store VK_SHIFT instead of VK_RSHIFT. The location information
238 // should be stored in |modifiers|. 238 // should be stored in |modifiers|.
239 int windowsKeyCode; 239 int windowsKeyCode;
240 240
241 // The actual key code genenerated by the platform. The DOM spec runs 241 // The actual key code genenerated by the platform. The DOM spec runs
242 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it 242 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it
243 // doesn't hurt to have this one around. 243 // doesn't hurt to have this one around.
244 int nativeKeyCode; 244 int nativeKeyCode;
245 245
246 // The DOM code enum of the key pressed as passed by the embedder. DOM
247 // code enum are defined in ui/events/keycodes/dom4/keycode_converter_data.h .
248 int domCode;
249
246 // This identifies whether this event was tagged by the system as being 250 // This identifies whether this event was tagged by the system as being
247 // a "system key" event (see 251 // a "system key" event (see
248 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for 252 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for
249 // details). Other platforms don't have this concept, but it's just 253 // details). Other platforms don't have this concept, but it's just
250 // easier to leave it always false than ifdef. 254 // easier to leave it always false than ifdef.
251 bool isSystemKey; 255 bool isSystemKey;
252 256
253 // |text| is the text generated by this keystroke. |unmodifiedText| is 257 // |text| is the text generated by this keystroke. |unmodifiedText| is
254 // |text|, but unmodified by an concurrently-held modifiers (except 258 // |text|, but unmodified by an concurrently-held modifiers (except
255 // shift). This is useful for working out shortcut keys. Linux and 259 // shift). This is useful for working out shortcut keys. Linux and
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 , causesScrollingIfUncanceled(false) 526 , causesScrollingIfUncanceled(false)
523 { 527 {
524 } 528 }
525 }; 529 };
526 530
527 #pragma pack(pop) 531 #pragma pack(pop)
528 532
529 } // namespace blink 533 } // namespace blink
530 534
531 #endif 535 #endif
OLDNEW
« no previous file with comments | « public/platform/Platform.h ('k') | public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698