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

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: Embedder API are part of Platform.h instead of WebViewClient.h 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
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // what is returned by the Windows API. For example, it should 230 // what is returned by the Windows API. For example, it should
231 // store VK_SHIFT instead of VK_RSHIFT. The location information 231 // store VK_SHIFT instead of VK_RSHIFT. The location information
232 // should be stored in |modifiers|. 232 // should be stored in |modifiers|.
233 int windowsKeyCode; 233 int windowsKeyCode;
234 234
235 // The actual key code genenerated by the platform. The DOM spec runs 235 // The actual key code genenerated by the platform. The DOM spec runs
236 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it 236 // on Windows-equivalent codes (thus |windowsKeyCode| above) but it
237 // doesn't hurt to have this one around. 237 // doesn't hurt to have this one around.
238 int nativeKeyCode; 238 int nativeKeyCode;
239 239
240 // The DOM code enum of the key pressed as passed by the embedder. DOM
241 // code enum are defined in ui/events/keycodes/dom4/keycode_converter_data.h .
242 int domCode;
Mike West 2015/01/29 11:49:35 Nit: "domKeyCode"?
Habib Virji 2015/01/29 12:24:14 There are 2 DOM3 Keyboard Event specs, http://www.
243
240 // This identifies whether this event was tagged by the system as being 244 // This identifies whether this event was tagged by the system as being
241 // a "system key" event (see 245 // a "system key" event (see
242 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for 246 // http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for
243 // details). Other platforms don't have this concept, but it's just 247 // details). Other platforms don't have this concept, but it's just
244 // easier to leave it always false than ifdef. 248 // easier to leave it always false than ifdef.
245 bool isSystemKey; 249 bool isSystemKey;
246 250
247 // |text| is the text generated by this keystroke. |unmodifiedText| is 251 // |text| is the text generated by this keystroke. |unmodifiedText| is
248 // |text|, but unmodified by an concurrently-held modifiers (except 252 // |text|, but unmodified by an concurrently-held modifiers (except
249 // shift). This is useful for working out shortcut keys. Linux and 253 // shift). This is useful for working out shortcut keys. Linux and
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 , causesScrollingIfUncanceled(false) 520 , causesScrollingIfUncanceled(false)
517 { 521 {
518 } 522 }
519 }; 523 };
520 524
521 #pragma pack(pop) 525 #pragma pack(pop)
522 526
523 } // namespace blink 527 } // namespace blink
524 528
525 #endif 529 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698