Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: content/browser/renderer_host/web_input_event_aurax11.cc

Issue 10533029: Fix TAP_DOWN gesture event: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Portions based heavily on: 5 // Portions based heavily on:
6 // third_party/WebKit/Source/WebKit/chromium/public/gtk/WebInputEventFactory.cpp 6 // third_party/WebKit/Source/WebKit/chromium/public/gtk/WebInputEventFactory.cpp
7 // 7 //
8 /* 8 /*
9 * Copyright (C) 2006-2011 Google Inc. All rights reserved. 9 * Copyright (C) 2006-2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 break; 361 break;
362 case ui::ET_SCROLL_FLING_CANCEL: 362 case ui::ET_SCROLL_FLING_CANCEL:
363 gesture_event.type = WebKit::WebInputEvent::GestureFlingCancel; 363 gesture_event.type = WebKit::WebInputEvent::GestureFlingCancel;
364 break; 364 break;
365 case ui::ET_GESTURE_LONG_PRESS: 365 case ui::ET_GESTURE_LONG_PRESS:
366 gesture_event.type = WebKit::WebInputEvent::GestureLongPress; 366 gesture_event.type = WebKit::WebInputEvent::GestureLongPress;
367 break; 367 break;
368 case ui::ET_GESTURE_TWO_FINGER_TAP: 368 case ui::ET_GESTURE_TWO_FINGER_TAP:
369 gesture_event.type = WebKit::WebInputEvent::GestureTwoFingerTap; 369 gesture_event.type = WebKit::WebInputEvent::GestureTwoFingerTap;
370 break; 370 break;
371 case ui::ET_GESTURE_TAP_UP: 371 case ui::ET_GESTURE_END:
sadrul 2012/06/06 19:51:14 _BEGIN too
varunjain 2012/06/06 21:52:53 Done.
372 case ui::ET_GESTURE_MULTIFINGER_SWIPE: 372 case ui::ET_GESTURE_MULTIFINGER_SWIPE:
373 break; 373 break;
374 default: 374 default:
375 NOTREACHED() << "Unknown gesture type: " << event->type(); 375 NOTREACHED() << "Unknown gesture type: " << event->type();
376 } 376 }
377 377
378 gesture_event.deltaX = event->delta_x(); 378 gesture_event.deltaX = event->delta_x();
379 gesture_event.deltaY = event->delta_y(); 379 gesture_event.deltaY = event->delta_y();
380 gesture_event.modifiers = EventFlagsToWebEventModifiers(event->flags()); 380 gesture_event.modifiers = EventFlagsToWebEventModifiers(event->flags());
381 381
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 447
448 // Update the type of the touch event. 448 // Update the type of the touch event.
449 web_event->type = TouchEventTypeFromEvent(event); 449 web_event->type = TouchEventTypeFromEvent(event);
450 web_event->timeStampSeconds = event->time_stamp().InSecondsF(); 450 web_event->timeStampSeconds = event->time_stamp().InSecondsF();
451 web_event->modifiers = EventFlagsToWebEventModifiers(event->flags()); 451 web_event->modifiers = EventFlagsToWebEventModifiers(event->flags());
452 452
453 return point; 453 return point;
454 } 454 }
455 455
456 } // namespace content 456 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698