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

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

Issue 10916346: Propagate touch area to WebKit for GestureTapDown event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 switch (event->type()) { 348 switch (event->type()) {
349 case ui::ET_GESTURE_TAP: 349 case ui::ET_GESTURE_TAP:
350 gesture_event.type = WebKit::WebInputEvent::GestureTap; 350 gesture_event.type = WebKit::WebInputEvent::GestureTap;
351 gesture_event.data.tap.tapCount = event->details().tap_count(); 351 gesture_event.data.tap.tapCount = event->details().tap_count();
352 gesture_event.data.tap.width = event->details().bounding_box().width(); 352 gesture_event.data.tap.width = event->details().bounding_box().width();
353 gesture_event.data.tap.height = event->details().bounding_box().height(); 353 gesture_event.data.tap.height = event->details().bounding_box().height();
354 break; 354 break;
355 case ui::ET_GESTURE_TAP_DOWN: 355 case ui::ET_GESTURE_TAP_DOWN:
356 gesture_event.type = WebKit::WebInputEvent::GestureTapDown; 356 gesture_event.type = WebKit::WebInputEvent::GestureTapDown;
357 gesture_event.data.tapDown.width =
358 event->details().bounding_box().width();
359 gesture_event.data.tapDown.height =
360 event->details().bounding_box().height();
357 break; 361 break;
358 case ui::ET_GESTURE_TAP_CANCEL: 362 case ui::ET_GESTURE_TAP_CANCEL:
359 gesture_event.type = WebKit::WebInputEvent::GestureTapCancel; 363 gesture_event.type = WebKit::WebInputEvent::GestureTapCancel;
360 break; 364 break;
361 case ui::ET_GESTURE_DOUBLE_TAP: 365 case ui::ET_GESTURE_DOUBLE_TAP:
362 gesture_event.type = WebKit::WebInputEvent::GestureDoubleTap; 366 gesture_event.type = WebKit::WebInputEvent::GestureDoubleTap;
363 break; 367 break;
364 case ui::ET_GESTURE_SCROLL_BEGIN: 368 case ui::ET_GESTURE_SCROLL_BEGIN:
365 gesture_event.type = WebKit::WebInputEvent::GestureScrollBegin; 369 gesture_event.type = WebKit::WebInputEvent::GestureScrollBegin;
366 break; 370 break;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 486
483 // Update the type of the touch event. 487 // Update the type of the touch event.
484 web_event->type = TouchEventTypeFromEvent(event); 488 web_event->type = TouchEventTypeFromEvent(event);
485 web_event->timeStampSeconds = event->time_stamp().InSecondsF(); 489 web_event->timeStampSeconds = event->time_stamp().InSecondsF();
486 web_event->modifiers = EventFlagsToWebEventModifiers(event->flags()); 490 web_event->modifiers = EventFlagsToWebEventModifiers(event->flags());
487 491
488 return point; 492 return point;
489 } 493 }
490 494
491 } // namespace content 495 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698