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

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: fixed build 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_BEGIN:
372 case ui::ET_GESTURE_END:
372 case ui::ET_GESTURE_MULTIFINGER_SWIPE: 373 case ui::ET_GESTURE_MULTIFINGER_SWIPE:
373 break; 374 break;
374 default: 375 default:
375 NOTREACHED() << "Unknown gesture type: " << event->type(); 376 NOTREACHED() << "Unknown gesture type: " << event->type();
376 } 377 }
377 378
378 gesture_event.deltaX = event->delta_x(); 379 gesture_event.deltaX = event->delta_x();
379 gesture_event.deltaY = event->delta_y(); 380 gesture_event.deltaY = event->delta_y();
380 gesture_event.modifiers = EventFlagsToWebEventModifiers(event->flags()); 381 gesture_event.modifiers = EventFlagsToWebEventModifiers(event->flags());
381 382
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 448
448 // Update the type of the touch event. 449 // Update the type of the touch event.
449 web_event->type = TouchEventTypeFromEvent(event); 450 web_event->type = TouchEventTypeFromEvent(event);
450 web_event->timeStampSeconds = event->time_stamp().InSecondsF(); 451 web_event->timeStampSeconds = event->time_stamp().InSecondsF();
451 web_event->modifiers = EventFlagsToWebEventModifiers(event->flags()); 452 web_event->modifiers = EventFlagsToWebEventModifiers(event->flags());
452 453
453 return point; 454 return point;
454 } 455 }
455 456
456 } // namespace content 457 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/aura/gestures/gesture_recognizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698