| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 if (webEvent.type == WebInputEvent::Undefined) | 821 if (webEvent.type == WebInputEvent::Undefined) |
| 822 return; | 822 return; |
| 823 | 823 |
| 824 WebCursorInfo cursorInfo; | 824 WebCursorInfo cursorInfo; |
| 825 if (m_webPlugin->handleInputEvent(webEvent, cursorInfo)) | 825 if (m_webPlugin->handleInputEvent(webEvent, cursorInfo)) |
| 826 event->setDefaultHandled(); | 826 event->setDefaultHandled(); |
| 827 } | 827 } |
| 828 | 828 |
| 829 void WebPluginContainerImpl::handleKeyboardEvent(KeyboardEvent* event) | 829 void WebPluginContainerImpl::handleKeyboardEvent(KeyboardEvent* event) |
| 830 { | 830 { |
| 831 WebKeyboardEventBuilder webEvent(*event); | 831 WebKeyboardEventBuilder webEvent(this, *event); |
| 832 if (webEvent.type == WebInputEvent::Undefined) | 832 if (webEvent.type == WebInputEvent::Undefined) |
| 833 return; | 833 return; |
| 834 | 834 |
| 835 if (webEvent.type == WebInputEvent::KeyDown) { | 835 if (webEvent.type == WebInputEvent::KeyDown) { |
| 836 #if OS(MACOSX) | 836 #if OS(MACOSX) |
| 837 if (webEvent.modifiers == WebInputEvent::MetaKey | 837 if (webEvent.modifiers == WebInputEvent::MetaKey |
| 838 #else | 838 #else |
| 839 if (webEvent.modifiers == WebInputEvent::ControlKey | 839 if (webEvent.modifiers == WebInputEvent::ControlKey |
| 840 #endif | 840 #endif |
| 841 && (webEvent.windowsKeyCode == VKEY_C || webEvent.windowsKeyCode ==
VKEY_INSERT) | 841 && (webEvent.windowsKeyCode == VKEY_C || webEvent.windowsKeyCode ==
VKEY_INSERT) |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 | 981 |
| 982 return clipRect; | 982 return clipRect; |
| 983 } | 983 } |
| 984 | 984 |
| 985 bool WebPluginContainerImpl::pluginShouldPersist() const | 985 bool WebPluginContainerImpl::pluginShouldPersist() const |
| 986 { | 986 { |
| 987 return m_webPlugin->shouldPersist(); | 987 return m_webPlugin->shouldPersist(); |
| 988 } | 988 } |
| 989 | 989 |
| 990 } // namespace blink | 990 } // namespace blink |
| OLD | NEW |