| OLD | NEW |
| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 m_button = static_cast<MouseButton>(e.button); | 180 m_button = static_cast<MouseButton>(e.button); |
| 181 m_modifiers = e.modifiers; | 181 m_modifiers = e.modifiers; |
| 182 | 182 |
| 183 m_timestamp = e.timeStampSeconds; | 183 m_timestamp = e.timeStampSeconds; |
| 184 m_clickCount = e.clickCount; | 184 m_clickCount = e.clickCount; |
| 185 | 185 |
| 186 m_pointerProperties = static_cast<WebPointerProperties>(e); | 186 m_pointerProperties = static_cast<WebPointerProperties>(e); |
| 187 | 187 |
| 188 switch (e.type) { | 188 switch (e.type) { |
| 189 case WebInputEvent::MouseMove: | 189 case WebInputEvent::MouseMove: |
| 190 case WebInputEvent::MouseLeave: // synthesize a move event | 190 case WebInputEvent::MouseEnter: // synthesize a move event |
| 191 case WebInputEvent::MouseLeave: // synthesize a move event |
| 191 m_type = PlatformEvent::MouseMoved; | 192 m_type = PlatformEvent::MouseMoved; |
| 192 break; | 193 break; |
| 193 | 194 |
| 194 case WebInputEvent::MouseDown: | 195 case WebInputEvent::MouseDown: |
| 195 m_type = PlatformEvent::MousePressed; | 196 m_type = PlatformEvent::MousePressed; |
| 196 break; | 197 break; |
| 197 | 198 |
| 198 case WebInputEvent::MouseUp: | 199 case WebInputEvent::MouseUp: |
| 199 m_type = PlatformEvent::MouseReleased; | 200 m_type = PlatformEvent::MouseReleased; |
| 200 | 201 |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 break; | 818 break; |
| 818 case GestureSourceTouchscreen: | 819 case GestureSourceTouchscreen: |
| 819 sourceDevice = WebGestureDeviceTouchscreen; | 820 sourceDevice = WebGestureDeviceTouchscreen; |
| 820 break; | 821 break; |
| 821 case GestureSourceUninitialized: | 822 case GestureSourceUninitialized: |
| 822 NOTREACHED(); | 823 NOTREACHED(); |
| 823 } | 824 } |
| 824 } | 825 } |
| 825 | 826 |
| 826 } // namespace blink | 827 } // namespace blink |
| OLD | NEW |