| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * * Redistributions of source code must retain the above copyright | 7 * * Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * * Redistributions in binary form must reproduce the above copyright | 9 * * Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 GestureSource source = GestureSourceUninitialized; | 44 GestureSource source = GestureSourceUninitialized; |
| 45 switch (event.source()) { | 45 switch (event.source()) { |
| 46 case PlatformGestureSourceTouchpad: | 46 case PlatformGestureSourceTouchpad: |
| 47 source = GestureSourceTouchpad; | 47 source = GestureSourceTouchpad; |
| 48 break; | 48 break; |
| 49 case PlatformGestureSourceTouchscreen: | 49 case PlatformGestureSourceTouchscreen: |
| 50 source = GestureSourceTouchscreen; | 50 source = GestureSourceTouchscreen; |
| 51 break; | 51 break; |
| 52 default: | 52 default: |
| 53 ASSERT_NOT_REACHED(); | 53 NOTREACHED(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 switch (event.type()) { | 56 switch (event.type()) { |
| 57 case PlatformEvent::GestureScrollBegin: | 57 case PlatformEvent::GestureScrollBegin: |
| 58 eventType = EventTypeNames::gesturescrollstart; | 58 eventType = EventTypeNames::gesturescrollstart; |
| 59 synthetic = event.synthetic(); | 59 synthetic = event.synthetic(); |
| 60 deltaUnits = event.deltaUnits(); | 60 deltaUnits = event.deltaUnits(); |
| 61 inertialPhase = event.inertialPhase(); | 61 inertialPhase = event.inertialPhase(); |
| 62 break; | 62 break; |
| 63 case PlatformEvent::GestureScrollEnd: | 63 case PlatformEvent::GestureScrollEnd: |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 , m_resendingPluginId(resendingPluginId) | 127 , m_resendingPluginId(resendingPluginId) |
| 128 { | 128 { |
| 129 } | 129 } |
| 130 | 130 |
| 131 DEFINE_TRACE(GestureEvent) | 131 DEFINE_TRACE(GestureEvent) |
| 132 { | 132 { |
| 133 MouseRelatedEvent::trace(visitor); | 133 MouseRelatedEvent::trace(visitor); |
| 134 } | 134 } |
| 135 | 135 |
| 136 } // namespace blink | 136 } // namespace blink |
| OLD | NEW |