/external/chromium_org/ui/events/ozone/evdev/libgestures_glue/ |
H A D | gesture_interpreter_libevdev_cros.h | 54 // Handler for gesture events generated from libgestures. 55 void OnGestureReady(const Gesture* gesture); 58 void OnGestureMove(const Gesture* gesture, const GestureMove* move); 59 void OnGestureScroll(const Gesture* gesture, const GestureScroll* move); 60 void OnGestureButtonsChange(const Gesture* gesture, 62 void OnGestureContactInitiated(const Gesture* gesture); 63 void OnGestureFling(const Gesture* gesture, const GestureFling* fling); 64 void OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe); 65 void OnGestureSwipeLift(const Gesture* gesture, 67 void OnGesturePinch(const Gesture* gesture, cons [all...] |
H A D | gesture_interpreter_libevdev_cros.cc | 60 // Callback from libgestures when a gesture is ready. 61 void OnGestureReadyHelper(void* client_data, const Gesture* gesture) { argument 64 interpreter->OnGestureReady(gesture); 165 void GestureInterpreterLibevdevCros::OnGestureReady(const Gesture* gesture) { argument 166 switch (gesture->type) { 168 OnGestureMove(gesture, &gesture->details.move); 171 OnGestureScroll(gesture, &gesture->details.scroll); 174 OnGestureButtonsChange(gesture, 201 OnGestureMove(const Gesture* gesture, const GestureMove* move) argument 222 OnGestureScroll( const Gesture* gesture, const GestureScroll* scroll) argument 247 OnGestureButtonsChange( const Gesture* gesture, const GestureButtonsChange* buttons) argument 280 OnGestureContactInitiated( const Gesture* gesture) argument 285 OnGestureFling(const Gesture* gesture, const GestureFling* fling) argument 315 OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe) argument 339 OnGestureSwipeLift( const Gesture* gesture, const GestureSwipeLift* swipelift) argument 363 OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch) argument 374 OnGestureMetrics( const Gesture* gesture, const GestureMetrics* metrics) argument [all...] |
/external/chromium_org/content/browser/renderer_host/input/ |
H A D | gesture_text_selector.cc | 25 // Only trigger selection on ACTION_DOWN to prevent partial touch or gesture 32 bool GestureTextSelector::OnGestureEvent(const ui::GestureEventData& gesture) { argument 36 switch (gesture.type()) { 38 client_->LongPress(gesture.time, gesture.x, gesture.y); 43 anchor_x_ = gesture.x; 44 anchor_y_ = gesture.y; 52 client_->SelectRange(anchor_x_, anchor_y_, gesture.x, gesture [all...] |
H A D | web_input_event_util.cc | 283 WebGestureEvent gesture; local 284 gesture.modifiers = EventFlagsToWebEventModifiers(data.flags); 285 gesture.x = data.x; 286 gesture.y = data.y; 287 gesture.globalX = data.raw_x; 288 gesture.globalY = data.raw_y; 289 gesture.timeStampSeconds = (data.time - base::TimeTicks()).InSecondsF(); 290 gesture.sourceDevice = blink::WebGestureDeviceTouchscreen; 294 gesture.type = WebInputEvent::GestureShowPress; 295 gesture [all...] |
H A D | synthetic_gesture_controller.cc | 42 SyntheticGesture* gesture = pending_gesture_queue_.FrontGesture(); 44 gesture->ForwardInputEvents(timestamp, gesture_target_.get()); 51 // It's possible that all events generated by the gesture have been fully 54 // will trigger the necessary gesture-ending call to |OnDidFlushInput()|. 73 void SyntheticGestureController::StartGesture(const SyntheticGesture& gesture) { argument 76 &gesture); 81 const SyntheticGesture& gesture, 87 &gesture); 80 StopGesture( const SyntheticGesture& gesture, const OnGestureCompleteCallback& completion_callback, SyntheticGesture::Result result) argument
|
H A D | synthetic_gesture_controller.h | 23 // Controls a synthetic gesture. 24 // Repeatedly invokes the gesture object's ForwardInputEvent method to send 25 // input events to the platform until the gesture has finished. 38 // Forward input events of the currently processed gesture. 41 // To be called when all events generated from the current gesture have been 46 void StartGesture(const SyntheticGesture& gesture); 47 void StopGesture(const SyntheticGesture& gesture, 54 // A queue of gesture/callback pairs. Implemented as two queues to 60 void Push(scoped_ptr<SyntheticGesture> gesture, argument 62 gestures_.push_back(gesture [all...] |
H A D | input_router_impl_perftest.cc | 108 // TODO(jdduke): Use synthetic gesture pipeline, crbug.com/344598. 116 WebGestureEvent gesture; local 117 gesture.type = WebInputEvent::GestureScrollBegin; 118 gesture.x = origin.x(); 119 gesture.y = origin.y(); 120 gestures.push_back(gesture); 122 gesture.type = WebInputEvent::GestureScrollUpdate; 123 gesture.data.scrollUpdate.deltaX = delta.x(); 124 gesture.data.scrollUpdate.deltaY = delta.y(); 126 gesture 224 SendEvent(const WebGestureEvent& gesture, const ui::LatencyInfo& latency) argument [all...] |
H A D | synthetic_gesture_controller_unittest.cc | 395 void QueueSyntheticGesture(scoped_ptr<SyntheticGesture> gesture) { argument 396 controller_->QueueSyntheticGesture(gesture.Pass(), 434 scoped_ptr<MockSyntheticGesture> gesture( 436 QueueSyntheticGesture(gesture.PassAs<SyntheticGesture>()); 448 scoped_ptr<MockSyntheticGesture> gesture( 450 QueueSyntheticGesture(gesture.PassAs<SyntheticGesture>()); 468 // Queue first gesture and wait for it to finish 476 // Queue second gesture. 564 scoped_ptr<SyntheticSmoothScrollGesture> gesture( 566 QueueSyntheticGesture(gesture [all...] |
H A D | gesture_text_selector.h | 33 // A class to handle gesture-based text selection, such as when clicking first 34 // button on stylus input. It also generates a synthetic long press gesture on 41 // This should be called after gesture detection but before associated 46 bool OnGestureEvent(const ui::GestureEventData& gesture);
|
/external/chromium_org/ui/views/widget/ |
H A D | root_view_targeter.cc | 25 const ui::GestureEvent& gesture) { 28 // Return the default gesture handler if one is already set. 34 // If no default gesture handler has already been set, do not perform any 36 if (gesture.type() == ui::ET_GESTURE_END) 39 // If rect-based targeting is enabled, use the gesture's bounding box to 40 // determine the target. Otherwise use the center point of the gesture's 42 gfx::Rect rect(gesture.location(), gfx::Size(1, 1)); 44 !gesture.details().bounding_box().IsEmpty()) { 47 rect.set_size(gesture.details().bounding_box().size()); 56 const ui::GestureEvent& gesture) { 23 FindTargetForGestureEvent( View* root, const ui::GestureEvent& gesture) argument 54 FindNextBestTargetForGestureEvent( ui::EventTarget* previous_target, const ui::GestureEvent& gesture) argument [all...] |
H A D | root_view_targeter.h | 22 // target of a gesture event, we need to know if a previous gesture has already 34 const ui::GestureEvent& gesture) OVERRIDE; 37 const ui::GestureEvent& gesture) OVERRIDE;
|
/external/chromium_org/athena/wm/ |
H A D | title_drag_controller.cc | 20 // non-fling gesture. 74 void TitleDragController::OnGestureEvent(ui::GestureEvent* gesture) { argument 75 // Do not process any gesture events if an animation is still in progress from 80 if (gesture->type() == ui::ET_GESTURE_TAP_DOWN) { 81 // It is possible to start a gesture sequence on a second window while a 83 // window that is being revealed by the title-drag). Ignore these gesture 87 aura::Window* window = static_cast<aura::Window*>(gesture->target()); 91 window->delegate()->GetNonClientComponent(gesture->location()); 97 drag_start_location_ = gesture->root_location(); 101 // If this gesture i [all...] |
H A D | window_overview_mode.cc | 525 void CloseDragWindow(const ui::GestureEvent& gesture) { argument 539 if (gesture.location().x() > dragged_start_location_.x()) 567 void EndDragWindow(const ui::GestureEvent& gesture) { argument 581 aura::Window* split_drop = GetSplitWindowDropTarget(gesture); 593 if (ShouldCloseDragWindow(gesture)) 594 CloseDragWindow(gesture); 635 virtual void OnGestureEvent(ui::GestureEvent* gesture) OVERRIDE { 636 if (gesture->type() == ui::ET_GESTURE_TAP) { 637 aura::Window* select = SelectWindowAt(gesture); 639 gesture 670 DragWindow(*gesture); variable 676 EndDragWindow(*gesture); variable 680 EndDragWindow(*gesture); variable 682 CreateFlingerFor(*gesture); variable [all...] |
/external/chromium_org/ui/events/gestures/ |
H A D | gesture_provider_aura.cc | 64 const GestureEventData& gesture) { 65 GestureEventDetails details = gesture.details; 66 details.set_oldest_touch_id(gesture.motion_event_id); 68 if (gesture.type() == ET_GESTURE_TAP) { 70 if (previous_tap_ && IsConsideredDoubleTap(*previous_tap_, gesture)) 74 previous_tap_.reset(new GestureEventData(gesture)); 76 *previous_tap_ = gesture; 78 } else if (gesture.type() == ET_GESTURE_TAP_CANCEL) { 83 new ui::GestureEvent(gesture.x, 84 gesture 63 OnGestureEvent( const GestureEventData& gesture) argument [all...] |
/external/chromium_org/ui/events/gesture_detection/ |
H A D | gesture_event_data_packet.cc | 73 void GestureEventDataPacket::Push(const GestureEventData& gesture) { argument 74 DCHECK_NE(ET_UNKNOWN, gesture.type()); 75 gestures_->push_back(gesture); 87 const GestureEventData& gesture) { 88 GestureEventDataPacket packet(gesture.time, 90 gfx::PointF(gesture.x, gesture.y), 91 gfx::PointF(gesture.raw_x, gesture.raw_y)); 92 packet.Push(gesture); 86 FromTouchTimeout( const GestureEventData& gesture) argument [all...] |
H A D | gesture_touch_uma_histogram.cc | 19 const GestureEventData& gesture) { 21 "Event.GestureCreated", UMAEventTypeFromEvent(gesture), UMA_ET_COUNT); 53 const GestureEventData& gesture) { 54 switch (gesture.type()) { 68 int touch_points = gesture.details.touch_points(); 78 int tap_count = gesture.details.tap_count(); 101 int touch_points = gesture.details.touch_points(); 113 int touch_points = gesture.details.touch_points(); 18 RecordGestureEvent( const GestureEventData& gesture) argument 52 UMAEventTypeFromEvent( const GestureEventData& gesture) argument
|
H A D | gesture_event_data_packet_unittest.cc | 53 if (!GestureEquals(lhs.gesture(i), rhs.gesture(i))) 77 GestureEventData gesture = CreateGesture(type); local 78 packet.Push(gesture); 81 EXPECT_TRUE(GestureEquals(gesture, packet.gesture(index))); 126 GestureEventData gesture = CreateGesture(ET_GESTURE_TAP); local 127 packet = GestureEventDataPacket::FromTouchTimeout(gesture); 131 EXPECT_EQ(gfx::PointF(gesture.x, gesture [all...] |
H A D | gesture_touch_uma_histogram.h | 61 // Records some touch/gesture event specific details (e.g. what gestures are 68 static void RecordGestureEvent(const ui::GestureEventData& gesture); 72 static UMAEventType UMAEventTypeFromEvent(const GestureEventData& gesture);
|
H A D | gesture_event_data_packet.h | 22 INVALID, // The source of the gesture was invalid. 23 TOUCH_SEQUENCE_START, // The start of a new gesture sequence. 24 TOUCH_SEQUENCE_END, // The end of a gesture sequence. 25 TOUCH_SEQUENCE_CANCEL, // The gesture sequence was cancelled. 26 TOUCH_START, // A touch down occured during a gesture sequence. 27 TOUCH_MOVE, // A touch move occured during a gesture sequence. 28 TOUCH_END, // A touch up occured during a gesture sequence. 29 TOUCH_TIMEOUT, // Timeout from an existing gesture sequence. 40 const GestureEventData& gesture); 42 void Push(const GestureEventData& gesture); 45 const GestureEventData& gesture(size_t i) const { return gestures_[i]; } function in class:ui::GestureEventDataPacket [all...] |
H A D | touch_disposition_gesture_filter.cc | 14 // A BitSet32 is used for tracking dropped gesture types. 227 const GestureEventData& gesture = packet.gesture(i); local 228 DCHECK_GE(gesture.details.type(), ET_GESTURE_TYPE_START); 229 DCHECK_LE(gesture.details.type(), ET_GESTURE_TYPE_END); 230 if (state_.Filter(gesture.details.type())) { 235 // Sending a timed gesture could delete |this|, so we need to return 237 SendGesture(gesture, packet); 238 // We should not have a timeout gesture and other gestures in the same 246 if (gesture [all...] |
/external/chromium_org/content/common/input/ |
H A D | input_event_stream_validator.cc | 37 const WebGestureEvent& gesture = static_cast<const WebGestureEvent&>(event); local 38 // TODO(jdduke): Validate touchpad gesture streams. 39 if (gesture.sourceDevice == blink::WebGestureDeviceTouchscreen) 40 return gesture_validator_.Validate(gesture, error_msg);
|
/external/chromium_org/ui/views/ |
H A D | view_targeter.cc | 43 ui::GestureEvent* gesture = event->AsGestureEvent(); local 44 View* gesture_target = FindTargetForGestureEvent(view, *gesture); 45 root->ConvertEventToTarget(gesture_target, gesture); 60 ui::GestureEvent* gesture = event->AsGestureEvent(); local 62 FindNextBestTargetForGestureEvent(previous_target, *gesture); 63 previous_target->ConvertEventToTarget(next_target, gesture); 97 const ui::GestureEvent& gesture) { 101 // here if we need to be able to perform gesture targeting 109 const ui::GestureEvent& gesture) { 96 FindTargetForGestureEvent(View* root, const ui::GestureEvent& gesture) argument 107 FindNextBestTargetForGestureEvent( ui::EventTarget* previous_target, const ui::GestureEvent& gesture) argument
|
H A D | view_targeter.h | 55 const ui::GestureEvent& gesture); 58 const ui::GestureEvent& gesture);
|
/external/chromium_org/content/browser/renderer_host/ |
H A D | overscroll_controller.cc | 92 // has been scrolled, then there is not going to be an overscroll gesture, 93 // until the current scroll ends, and a new scroll gesture starts. 105 const blink::WebGestureEvent& gesture) { 107 (gesture.type == blink::WebInputEvent::GestureScrollEnd || 108 gesture.type == blink::WebInputEvent::GestureFlingStart)) { 130 // Complete the overscroll gesture if there was a mouse move or a scroll-end 146 const blink::WebGestureEvent gesture = local 150 if (gesture.data.flingStart.velocityX < 0) 154 if (gesture.data.flingStart.velocityX > 0) 158 if (gesture 104 DiscardingGestureEvent( const blink::WebGestureEvent& gesture) argument 222 const blink::WebGestureEvent& gesture = local 231 const blink::WebGestureEvent& gesture = local [all...] |
/external/chromium_org/content/renderer/ |
H A D | render_widget_fullscreen_pepper.cc | 65 WebMouseEvent WebMouseEventFromGestureEvent(const WebGestureEvent& gesture) { argument 68 switch (gesture.type) { 78 if (gesture.sourceDevice == blink::WebGestureDeviceTouchscreen) { 79 // A scroll gesture on the touchscreen may end with a GestureScrollEnd 99 mouse.timeStampSeconds = gesture.timeStampSeconds; 100 mouse.modifiers = gesture.modifiers | WebInputEvent::LeftButtonDown; 105 mouse.x = gesture.x; 106 mouse.y = gesture.y; 107 mouse.windowX = gesture.globalX; 108 mouse.windowY = gesture [all...] |