| 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 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 case WebInputEvent::GestureDoubleTap: | 162 case WebInputEvent::GestureDoubleTap: |
| 163 case WebInputEvent::GestureTwoFingerTap: | 163 case WebInputEvent::GestureTwoFingerTap: |
| 164 case WebInputEvent::GestureLongPress: | 164 case WebInputEvent::GestureLongPress: |
| 165 case WebInputEvent::GestureLongTap: | 165 case WebInputEvent::GestureLongTap: |
| 166 return handler.handleGestureEvent(static_cast<const WebGestureEvent&>(ev
ent)); | 166 return handler.handleGestureEvent(static_cast<const WebGestureEvent&>(ev
ent)); |
| 167 | 167 |
| 168 case WebInputEvent::TouchStart: | 168 case WebInputEvent::TouchStart: |
| 169 case WebInputEvent::TouchMove: | 169 case WebInputEvent::TouchMove: |
| 170 case WebInputEvent::TouchEnd: | 170 case WebInputEvent::TouchEnd: |
| 171 case WebInputEvent::TouchCancel: | 171 case WebInputEvent::TouchCancel: |
| 172 case WebInputEvent::TouchScrollStarted: |
| 172 if (!root || !root->view()) | 173 if (!root || !root->view()) |
| 173 return WebInputEventResult::NotHandled; | 174 return WebInputEventResult::NotHandled; |
| 174 return handler.handleTouchEvent(*root, static_cast<const WebTouchEvent&>
(event)); | 175 return handler.handleTouchEvent(*root, static_cast<const WebTouchEvent&>
(event)); |
| 175 case WebInputEvent::GesturePinchBegin: | 176 case WebInputEvent::GesturePinchBegin: |
| 176 case WebInputEvent::GesturePinchEnd: | 177 case WebInputEvent::GesturePinchEnd: |
| 177 case WebInputEvent::GesturePinchUpdate: | 178 case WebInputEvent::GesturePinchUpdate: |
| 178 // Touchscreen pinch events are currently not handled in main thread. On
ce they are, | 179 // Touchscreen pinch events are currently not handled in main thread. On
ce they are, |
| 179 // these should be passed to |handleGestureEvent| similar to gesture scr
oll events. | 180 // these should be passed to |handleGestureEvent| similar to gesture scr
oll events. |
| 180 return WebInputEventResult::NotHandled; | 181 return WebInputEventResult::NotHandled; |
| 181 default: | 182 default: |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 WEBINPUT_EVENT_CASE(TouchMove) | 254 WEBINPUT_EVENT_CASE(TouchMove) |
| 254 WEBINPUT_EVENT_CASE(TouchEnd) | 255 WEBINPUT_EVENT_CASE(TouchEnd) |
| 255 WEBINPUT_EVENT_CASE(TouchCancel) | 256 WEBINPUT_EVENT_CASE(TouchCancel) |
| 256 default: | 257 default: |
| 257 NOTREACHED(); | 258 NOTREACHED(); |
| 258 return ""; | 259 return ""; |
| 259 } | 260 } |
| 260 } | 261 } |
| 261 | 262 |
| 262 } // namespace blink | 263 } // namespace blink |
| OLD | NEW |