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

Side by Side Diff: content/common/input/web_input_event_traits.cc

Issue 1780953003: Change the non-blocking event queue to the main thread event queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_regression_5
Patch Set: Force ack in renderer to be solely based on the DispatchEventType Created 4 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/common/input/web_input_event_traits.h" 5 #include "content/common/input/web_input_event_traits.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 event_to_coalesce, 459 event_to_coalesce,
460 &event); 460 &event);
461 } 461 }
462 462
463 void WebInputEventTraits::Coalesce(const WebInputEvent& event_to_coalesce, 463 void WebInputEventTraits::Coalesce(const WebInputEvent& event_to_coalesce,
464 WebInputEvent* event) { 464 WebInputEvent* event) {
465 DCHECK(event); 465 DCHECK(event);
466 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event); 466 Apply(WebInputEventCoalesce(), event->type, event_to_coalesce, event);
467 } 467 }
468 468
469 bool WebInputEventTraits::WillReceiveAckFromRenderer( 469 bool WebInputEventTraits::ShouldBlockEventOnRenderer(
tdresser 2016/03/15 13:41:21 This naming is a tiny bit confusing, because it's
dtapuska 2016/03/15 19:46:04 Done.
470 const WebInputEvent& event) { 470 const WebInputEvent& event) {
471 switch (event.type) { 471 switch (event.type) {
472 case WebInputEvent::MouseDown: 472 case WebInputEvent::MouseDown:
473 case WebInputEvent::MouseUp: 473 case WebInputEvent::MouseUp:
474 case WebInputEvent::MouseEnter: 474 case WebInputEvent::MouseEnter:
475 case WebInputEvent::MouseLeave: 475 case WebInputEvent::MouseLeave:
476 case WebInputEvent::ContextMenu: 476 case WebInputEvent::ContextMenu:
477 case WebInputEvent::GestureScrollBegin: 477 case WebInputEvent::GestureScrollBegin:
478 case WebInputEvent::GestureScrollEnd: 478 case WebInputEvent::GestureScrollEnd:
479 case WebInputEvent::GestureShowPress: 479 case WebInputEvent::GestureShowPress:
(...skipping 14 matching lines...) Expand all
494 494
495 uint32_t WebInputEventTraits::GetUniqueTouchEventId( 495 uint32_t WebInputEventTraits::GetUniqueTouchEventId(
496 const WebInputEvent& event) { 496 const WebInputEvent& event) {
497 if (WebInputEvent::isTouchEventType(event.type)) { 497 if (WebInputEvent::isTouchEventType(event.type)) {
498 return static_cast<const WebTouchEvent&>(event).uniqueTouchEventId; 498 return static_cast<const WebTouchEvent&>(event).uniqueTouchEventId;
499 } 499 }
500 return 0U; 500 return 0U;
501 } 501 }
502 502
503 } // namespace content 503 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698