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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 2856423002: input: Change how synthesized events are dispatched in telemetry tests. (Closed)
Patch Set: . Created 3 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/browser/frame_host/render_widget_host_view_guest.h" 5 #include "content/browser/frame_host/render_widget_host_view_guest.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 gesture_tap_event.global_y = screenPosition.y; 527 gesture_tap_event.global_y = screenPosition.y;
528 GetOwnerRenderWidgetHostView()->ProcessGestureEvent( 528 GetOwnerRenderWidgetHostView()->ProcessGestureEvent(
529 gesture_tap_event, ui::LatencyInfo(ui::SourceEventType::TOUCH)); 529 gesture_tap_event, ui::LatencyInfo(ui::SourceEventType::TOUCH));
530 530
531 gesture_tap_event.SetType(blink::WebGestureEvent::kGestureTapCancel); 531 gesture_tap_event.SetType(blink::WebGestureEvent::kGestureTapCancel);
532 GetOwnerRenderWidgetHostView()->ProcessGestureEvent( 532 GetOwnerRenderWidgetHostView()->ProcessGestureEvent(
533 gesture_tap_event, ui::LatencyInfo(ui::SourceEventType::TOUCH)); 533 gesture_tap_event, ui::LatencyInfo(ui::SourceEventType::TOUCH));
534 } 534 }
535 } 535 }
536 536
537 void RenderWidgetHostViewGuest::OnSetNeedsFlushInput() {
538 NOTIMPLEMENTED();
539 }
540
537 void RenderWidgetHostViewGuest::WheelEventAck( 541 void RenderWidgetHostViewGuest::WheelEventAck(
538 const blink::WebMouseWheelEvent& event, 542 const blink::WebMouseWheelEvent& event,
539 InputEventAckState ack_result) { 543 InputEventAckState ack_result) {
540 if (ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED || 544 if (ack_result == INPUT_EVENT_ACK_STATE_NOT_CONSUMED ||
541 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS) { 545 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS) {
542 guest_->ResendEventToEmbedder(event); 546 guest_->ResendEventToEmbedder(event);
543 } 547 }
544 } 548 }
545 549
546 void RenderWidgetHostViewGuest::GestureEventAck( 550 void RenderWidgetHostViewGuest::GestureEventAck(
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 host_->ForwardGestureEvent(gesture_event); 656 host_->ForwardGestureEvent(gesture_event);
653 return; 657 return;
654 } 658 }
655 } 659 }
656 660
657 bool RenderWidgetHostViewGuest::HasEmbedderChanged() { 661 bool RenderWidgetHostViewGuest::HasEmbedderChanged() {
658 return guest_ && guest_->has_attached_since_surface_set(); 662 return guest_ && guest_->has_attached_since_surface_set();
659 } 663 }
660 664
661 } // namespace content 665 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698