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

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

Issue 1352283002: Remove PlatformKeyboardEvents requirement to have located virtual keycode information. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/web/WebInputEventConversion.cpp ('k') | no next file » | 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 , isSystemKey(false) 287 , isSystemKey(false)
288 { 288 {
289 memset(&text, 0, sizeof(text)); 289 memset(&text, 0, sizeof(text));
290 memset(&unmodifiedText, 0, sizeof(unmodifiedText)); 290 memset(&unmodifiedText, 0, sizeof(unmodifiedText));
291 memset(&keyIdentifier, 0, sizeof(keyIdentifier)); 291 memset(&keyIdentifier, 0, sizeof(keyIdentifier));
292 } 292 }
293 293
294 // Sets keyIdentifier based on the value of windowsKeyCode. This is 294 // Sets keyIdentifier based on the value of windowsKeyCode. This is
295 // handy for generating synthetic keyboard events. 295 // handy for generating synthetic keyboard events.
296 BLINK_EXPORT void setKeyIdentifierFromWindowsKeyCode(); 296 BLINK_EXPORT void setKeyIdentifierFromWindowsKeyCode();
297
298 static int windowsKeyCodeWithoutLocation(int keycode);
299 static int locationModifiersFromWindowsKeyCode(int keycode);
300 }; 297 };
301 298
302 // WebMouseEvent -------------------------------------------------------------- 299 // WebMouseEvent --------------------------------------------------------------
303 300
304 class WebMouseEvent : public WebInputEvent, public WebPointerProperties { 301 class WebMouseEvent : public WebInputEvent, public WebPointerProperties {
305 public: 302 public:
306 // Window coordinate 303 // Window coordinate
307 int x; 304 int x;
308 int y; 305 int y;
309 306
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 , uniqueTouchEventId(0) 566 , uniqueTouchEventId(0)
570 { 567 {
571 } 568 }
572 }; 569 };
573 570
574 #pragma pack(pop) 571 #pragma pack(pop)
575 572
576 } // namespace blink 573 } // namespace blink
577 574
578 #endif 575 #endif
OLDNEW
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698