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

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: Fix android 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
« no previous file with comments | « content/common/input/web_input_event_traits.h ('k') | content/content_renderer.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::ShouldBlockEventStream(const WebInputEvent& event) {
470 const WebInputEvent& event) {
471 switch (event.type) { 470 switch (event.type) {
472 case WebInputEvent::MouseDown: 471 case WebInputEvent::MouseDown:
473 case WebInputEvent::MouseUp: 472 case WebInputEvent::MouseUp:
474 case WebInputEvent::MouseEnter: 473 case WebInputEvent::MouseEnter:
475 case WebInputEvent::MouseLeave: 474 case WebInputEvent::MouseLeave:
476 case WebInputEvent::ContextMenu: 475 case WebInputEvent::ContextMenu:
477 case WebInputEvent::GestureScrollBegin: 476 case WebInputEvent::GestureScrollBegin:
478 case WebInputEvent::GestureScrollEnd: 477 case WebInputEvent::GestureScrollEnd:
479 case WebInputEvent::GestureShowPress: 478 case WebInputEvent::GestureShowPress:
480 case WebInputEvent::GestureTapUnconfirmed: 479 case WebInputEvent::GestureTapUnconfirmed:
(...skipping 13 matching lines...) Expand all
494 493
495 uint32_t WebInputEventTraits::GetUniqueTouchEventId( 494 uint32_t WebInputEventTraits::GetUniqueTouchEventId(
496 const WebInputEvent& event) { 495 const WebInputEvent& event) {
497 if (WebInputEvent::isTouchEventType(event.type)) { 496 if (WebInputEvent::isTouchEventType(event.type)) {
498 return static_cast<const WebTouchEvent&>(event).uniqueTouchEventId; 497 return static_cast<const WebTouchEvent&>(event).uniqueTouchEventId;
499 } 498 }
500 return 0U; 499 return 0U;
501 } 500 }
502 501
503 } // namespace content 502 } // namespace content
OLDNEW
« no previous file with comments | « content/common/input/web_input_event_traits.h ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698