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

Side by Side Diff: content/renderer/mus/render_widget_mus_connection.cc

Issue 2663283002: scheduler: Detect single event gestures correctly (Closed)
Patch Set: Fix test build failure Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/renderer/mus/render_widget_mus_connection.h" 5 #include "content/renderer/mus/render_widget_mus_connection.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 DCHECK(!pending_ack_.is_null()); 112 DCHECK(!pending_ack_.is_null());
113 pending_ack_.Run(input_event_ack->state == 113 pending_ack_.Run(input_event_ack->state ==
114 InputEventAckState::INPUT_EVENT_ACK_STATE_CONSUMED 114 InputEventAckState::INPUT_EVENT_ACK_STATE_CONSUMED
115 ? ui::mojom::EventResult::HANDLED 115 ? ui::mojom::EventResult::HANDLED
116 : ui::mojom::EventResult::UNHANDLED); 116 : ui::mojom::EventResult::UNHANDLED);
117 pending_ack_.Reset(); 117 pending_ack_.Reset();
118 } 118 }
119 119
120 void RenderWidgetMusConnection::NotifyInputEventHandled( 120 void RenderWidgetMusConnection::NotifyInputEventHandled(
121 blink::WebInputEvent::Type handled_type, 121 blink::WebInputEvent::Type handled_type,
122 blink::WebInputEventResult result,
122 InputEventAckState ack_result) { 123 InputEventAckState ack_result) {
123 NOTIMPLEMENTED(); 124 NOTIMPLEMENTED();
124 } 125 }
125 126
126 void RenderWidgetMusConnection::SetInputHandler( 127 void RenderWidgetMusConnection::SetInputHandler(
127 RenderWidgetInputHandler* input_handler) { 128 RenderWidgetInputHandler* input_handler) {
128 DCHECK(!input_handler_); 129 DCHECK(!input_handler_);
129 input_handler_ = input_handler; 130 input_handler_ = input_handler;
130 } 131 }
131 132
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // previous event. 172 // previous event.
172 // DCHECK(pending_ack_.is_null()); 173 // DCHECK(pending_ack_.is_null());
173 pending_ack_ = ack; 174 pending_ack_ = ack;
174 // TODO(fsamuel, sadrul): Track real latency info. 175 // TODO(fsamuel, sadrul): Track real latency info.
175 ui::LatencyInfo latency_info; 176 ui::LatencyInfo latency_info;
176 input_handler_->HandleInputEvent(*input_event, latency_info, 177 input_handler_->HandleInputEvent(*input_event, latency_info,
177 DISPATCH_TYPE_BLOCKING); 178 DISPATCH_TYPE_BLOCKING);
178 } 179 }
179 180
180 } // namespace content 181 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/mus/render_widget_mus_connection.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698