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

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

Issue 2662173005: Revert of scheduler: Detect single event gestures correctly (Closed)
Patch Set: 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,
123 InputEventAckState ack_result) { 122 InputEventAckState ack_result) {
124 NOTIMPLEMENTED(); 123 NOTIMPLEMENTED();
125 } 124 }
126 125
127 void RenderWidgetMusConnection::SetInputHandler( 126 void RenderWidgetMusConnection::SetInputHandler(
128 RenderWidgetInputHandler* input_handler) { 127 RenderWidgetInputHandler* input_handler) {
129 DCHECK(!input_handler_); 128 DCHECK(!input_handler_);
130 input_handler_ = input_handler; 129 input_handler_ = input_handler;
131 } 130 }
132 131
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // previous event. 171 // previous event.
173 // DCHECK(pending_ack_.is_null()); 172 // DCHECK(pending_ack_.is_null());
174 pending_ack_ = ack; 173 pending_ack_ = ack;
175 // TODO(fsamuel, sadrul): Track real latency info. 174 // TODO(fsamuel, sadrul): Track real latency info.
176 ui::LatencyInfo latency_info; 175 ui::LatencyInfo latency_info;
177 input_handler_->HandleInputEvent(*input_event, latency_info, 176 input_handler_->HandleInputEvent(*input_event, latency_info,
178 DISPATCH_TYPE_BLOCKING); 177 DISPATCH_TYPE_BLOCKING);
179 } 178 }
180 179
181 } // namespace content 180 } // 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