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

Side by Side Diff: Source/web/WebInputEventConversion.cpp

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 if (type == RawKeyDown) { 335 if (type == RawKeyDown) {
336 m_text = String(); 336 m_text = String();
337 m_unmodifiedText = String(); 337 m_unmodifiedText = String();
338 } else { 338 } else {
339 m_keyIdentifier = String(); 339 m_keyIdentifier = String();
340 m_windowsVirtualKeyCode = 0; 340 m_windowsVirtualKeyCode = 0;
341 } 341 }
342 } 342 }
343 343
344 void PlatformKeyboardEventBuilder::setKeyboardEventDOMCodeValue(const char* code )
345 {
346 m_code = String(code);
347 }
348
344 // Please refer to bug http://b/issue?id=961192, which talks about Webkit 349 // Please refer to bug http://b/issue?id=961192, which talks about Webkit
345 // keyboard event handling changes. It also mentions the list of keys 350 // keyboard event handling changes. It also mentions the list of keys
346 // which don't have associated character events. 351 // which don't have associated character events.
347 bool PlatformKeyboardEventBuilder::isCharacterKey() const 352 bool PlatformKeyboardEventBuilder::isCharacterKey() const
348 { 353 {
349 switch (windowsVirtualKeyCode()) { 354 switch (windowsVirtualKeyCode()) {
350 case VKEY_BACK: 355 case VKEY_BACK:
351 case VKEY_ESCAPE: 356 case VKEY_ESCAPE:
352 return false; 357 return false;
353 } 358 }
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 modifiers = getWebInputModifiers(event); 821 modifiers = getWebInputModifiers(event);
817 822
818 globalX = event.screenX(); 823 globalX = event.screenX();
819 globalY = event.screenY(); 824 globalY = event.screenY();
820 IntPoint localPoint = convertAbsoluteLocationForRenderObject(event.absoluteL ocation(), *renderObject); 825 IntPoint localPoint = convertAbsoluteLocationForRenderObject(event.absoluteL ocation(), *renderObject);
821 x = localPoint.x(); 826 x = localPoint.x();
822 y = localPoint.y(); 827 y = localPoint.y();
823 } 828 }
824 829
825 } // namespace blink 830 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698