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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.cc

Issue 2158423002: Wheel scroll latching enabled behind flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit_tests_fixed Created 4 years, 5 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/browser/renderer_host/input/input_router_impl.h" 5 #include "content/browser/renderer_host/input/input_router_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "content/common/edit_command.h" 22 #include "content/common/edit_command.h"
23 #include "content/common/input/input_event_ack_state.h" 23 #include "content/common/input/input_event_ack_state.h"
24 #include "content/common/input/touch_action.h" 24 #include "content/common/input/touch_action.h"
25 #include "content/common/input/web_input_event_traits.h" 25 #include "content/common/input/web_input_event_traits.h"
26 #include "content/common/input/web_touch_event_traits.h" 26 #include "content/common/input/web_touch_event_traits.h"
27 #include "content/common/input_messages.h" 27 #include "content/common/input_messages.h"
28 #include "content/common/view_messages.h" 28 #include "content/common/view_messages.h"
29 #include "content/public/browser/notification_service.h" 29 #include "content/public/browser/notification_service.h"
30 #include "content/public/browser/notification_types.h" 30 #include "content/public/browser/notification_types.h"
31 #include "content/public/browser/user_metrics.h" 31 #include "content/public/browser/user_metrics.h"
32 #include "content/public/common/content_features.h"
32 #include "content/public/common/content_switches.h" 33 #include "content/public/common/content_switches.h"
33 #include "ipc/ipc_sender.h" 34 #include "ipc/ipc_sender.h"
34 #include "ui/events/blink/blink_event_util.h" 35 #include "ui/events/blink/blink_event_util.h"
35 #include "ui/events/event.h" 36 #include "ui/events/event.h"
36 #include "ui/events/keycodes/keyboard_codes.h" 37 #include "ui/events/keycodes/keyboard_codes.h"
37 38
38 using base::Time; 39 using base::Time;
39 using base::TimeDelta; 40 using base::TimeDelta;
40 using base::TimeTicks; 41 using base::TimeTicks;
41 using blink::WebGestureEvent; 42 using blink::WebGestureEvent;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 ack_handler_(ack_handler), 78 ack_handler_(ack_handler),
78 routing_id_(routing_id), 79 routing_id_(routing_id),
79 frame_tree_node_id_(-1), 80 frame_tree_node_id_(-1),
80 select_message_pending_(false), 81 select_message_pending_(false),
81 move_caret_pending_(false), 82 move_caret_pending_(false),
82 mouse_move_pending_(false), 83 mouse_move_pending_(false),
83 current_ack_source_(ACK_SOURCE_NONE), 84 current_ack_source_(ACK_SOURCE_NONE),
84 flush_requested_(false), 85 flush_requested_(false),
85 active_renderer_fling_count_(0), 86 active_renderer_fling_count_(0),
86 touch_scroll_started_sent_(false), 87 touch_scroll_started_sent_(false),
87 wheel_event_queue_(this, kDefaultWheelScrollTransactionMs), 88 wheel_event_queue_(
89 this,
90 base::FeatureList::IsEnabled(features::kTouchpadScrollLatching)),
88 touch_event_queue_(this, config.touch_config), 91 touch_event_queue_(this, config.touch_config),
89 gesture_event_queue_(this, this, config.gesture_config), 92 gesture_event_queue_(this, this, config.gesture_config),
90 device_scale_factor_(1.f) { 93 device_scale_factor_(1.f) {
91 DCHECK(sender); 94 DCHECK(sender);
92 DCHECK(client); 95 DCHECK(client);
93 DCHECK(ack_handler); 96 DCHECK(ack_handler);
94 UpdateTouchAckTimeoutEnabled(); 97 UpdateTouchAckTimeoutEnabled();
95 } 98 }
96 99
97 InputRouterImpl::~InputRouterImpl() { 100 InputRouterImpl::~InputRouterImpl() {
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 651
649 flush_requested_ = false; 652 flush_requested_ = false;
650 client_->DidFlush(); 653 client_->DidFlush();
651 } 654 }
652 655
653 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) { 656 void InputRouterImpl::SetFrameTreeNodeId(int frameTreeNodeId) {
654 frame_tree_node_id_ = frameTreeNodeId; 657 frame_tree_node_id_ = frameTreeNodeId;
655 } 658 }
656 659
657 } // namespace content 660 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698