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