| 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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 sourceDevice = WebGestureDeviceTouchpad; | 822 sourceDevice = WebGestureDeviceTouchpad; |
| 823 break; | 823 break; |
| 824 case GestureSourceTouchscreen: | 824 case GestureSourceTouchscreen: |
| 825 sourceDevice = WebGestureDeviceTouchscreen; | 825 sourceDevice = WebGestureDeviceTouchscreen; |
| 826 break; | 826 break; |
| 827 case GestureSourceUninitialized: | 827 case GestureSourceUninitialized: |
| 828 NOTREACHED(); | 828 NOTREACHED(); |
| 829 } | 829 } |
| 830 } | 830 } |
| 831 | 831 |
| 832 Vector<PlatformMouseEvent> createPlatformMouseEventVector( |
| 833 Widget* widget, |
| 834 const std::vector<const WebInputEvent*>& coalescedEvents) { |
| 835 Vector<PlatformMouseEvent> result; |
| 836 for (const auto& event : coalescedEvents) { |
| 837 result.append(PlatformMouseEventBuilder( |
| 838 widget, static_cast<const WebMouseEvent&>(*event))); |
| 839 } |
| 840 return result; |
| 841 } |
| 842 |
| 843 Vector<PlatformTouchEvent> createPlatformTouchEventVector( |
| 844 Widget* widget, |
| 845 const std::vector<const WebInputEvent*>& coalescedEvents) { |
| 846 Vector<PlatformTouchEvent> result; |
| 847 for (const auto& event : coalescedEvents) { |
| 848 result.append(PlatformTouchEventBuilder( |
| 849 widget, static_cast<const WebTouchEvent&>(*event))); |
| 850 } |
| 851 return result; |
| 852 } |
| 853 |
| 832 } // namespace blink | 854 } // namespace blink |
| OLD | NEW |