OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 webFrame->client()->forwardInputEvent(&event); | 993 webFrame->client()->forwardInputEvent(&event); |
994 return true; | 994 return true; |
995 } | 995 } |
996 | 996 |
997 if (!focusedFrame || !focusedFrame->isLocalFrame()) | 997 if (!focusedFrame || !focusedFrame->isLocalFrame()) |
998 return false; | 998 return false; |
999 | 999 |
1000 LocalFrame* frame = toLocalFrame(focusedFrame.get()); | 1000 LocalFrame* frame = toLocalFrame(focusedFrame.get()); |
1001 | 1001 |
1002 PlatformKeyboardEventBuilder evt(event); | 1002 PlatformKeyboardEventBuilder evt(event); |
| 1003 evt.setKeyboardEventDOMCodeValue(m_client->keyboardDOMCodeValue(evt.nativeVi
rtualKeyCode())); |
1003 | 1004 |
1004 if (frame->eventHandler().keyEvent(evt)) { | 1005 if (frame->eventHandler().keyEvent(evt)) { |
1005 if (WebInputEvent::RawKeyDown == event.type) { | 1006 if (WebInputEvent::RawKeyDown == event.type) { |
1006 // Suppress the next keypress event unless the focused node is a plu
g-in node. | 1007 // Suppress the next keypress event unless the focused node is a plu
g-in node. |
1007 // (Flash needs these keypress events to handle non-US keyboards.) | 1008 // (Flash needs these keypress events to handle non-US keyboards.) |
1008 Element* element = focusedElement(); | 1009 Element* element = focusedElement(); |
1009 if (!element || !element->renderer() || !element->renderer()->isEmbe
ddedObject()) | 1010 if (!element || !element->renderer() || !element->renderer()->isEmbe
ddedObject()) |
1010 m_suppressNextKeypressEvent = true; | 1011 m_suppressNextKeypressEvent = true; |
1011 } | 1012 } |
1012 return true; | 1013 return true; |
(...skipping 3511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4524 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4525 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4525 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4526 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4526 } | 4527 } |
4527 | 4528 |
4528 void WebViewImpl::forceNextWebGLContextCreationToFail() | 4529 void WebViewImpl::forceNextWebGLContextCreationToFail() |
4529 { | 4530 { |
4530 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); | 4531 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); |
4531 } | 4532 } |
4532 | 4533 |
4533 } // namespace blink | 4534 } // namespace blink |
OLD | NEW |