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

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

Issue 2633723002: Add OOPIF-specific test for setting TOUCH_ACTION in PointerEvents. (Closed)
Patch Set: Version without spurious whitespace additions. Created 3 years, 11 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <queue> 11 #include <queue>
12 12
13 #include "base/gtest_prod_util.h"
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/time/time.h" 15 #include "base/time/time.h"
15 #include "content/browser/renderer_host/input/gesture_event_queue.h" 16 #include "content/browser/renderer_host/input/gesture_event_queue.h"
16 #include "content/browser/renderer_host/input/input_router.h" 17 #include "content/browser/renderer_host/input/input_router.h"
17 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" 18 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h"
18 #include "content/browser/renderer_host/input/touch_action_filter.h" 19 #include "content/browser/renderer_host/input/touch_action_filter.h"
19 #include "content/browser/renderer_host/input/touch_event_queue.h" 20 #include "content/browser/renderer_host/input/touch_event_queue.h"
20 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h" 21 #include "content/browser/renderer_host/input/touchpad_tap_suppression_controlle r.h"
21 #include "content/common/input/input_event_dispatch_type.h" 22 #include "content/common/input/input_event_dispatch_type.h"
22 #include "content/common/input/input_event_stream_validator.h" 23 #include "content/common/input/input_event_stream_validator.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool HasPendingEvents() const override; 75 bool HasPendingEvents() const override;
75 void SetDeviceScaleFactor(float device_scale_factor) override; 76 void SetDeviceScaleFactor(float device_scale_factor) override;
76 77
77 // IPC::Listener 78 // IPC::Listener
78 bool OnMessageReceived(const IPC::Message& message) override; 79 bool OnMessageReceived(const IPC::Message& message) override;
79 80
80 void SetFrameTreeNodeId(int frameTreeNodeId) override; 81 void SetFrameTreeNodeId(int frameTreeNodeId) override;
81 82
82 private: 83 private:
83 friend class InputRouterImplTest; 84 friend class InputRouterImplTest;
85 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest,
86 SubframeTouchEventRouting);
84 87
85 // TouchpadTapSuppressionControllerClient 88 // TouchpadTapSuppressionControllerClient
86 void SendMouseEventImmediately( 89 void SendMouseEventImmediately(
87 const MouseEventWithLatencyInfo& mouse_event) override; 90 const MouseEventWithLatencyInfo& mouse_event) override;
88 91
89 // TouchEventQueueClient 92 // TouchEventQueueClient
90 void SendTouchEventImmediately( 93 void SendTouchEventImmediately(
91 const TouchEventWithLatencyInfo& touch_event) override; 94 const TouchEventWithLatencyInfo& touch_event) override;
92 void OnTouchEventAck(const TouchEventWithLatencyInfo& event, 95 void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
93 InputEventAckState ack_result) override; 96 InputEventAckState ack_result) override;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // touch action. Note that this will only affect platforms that have a 194 // touch action. Note that this will only affect platforms that have a
192 // non-zero touch timeout configuration. 195 // non-zero touch timeout configuration.
193 void UpdateTouchAckTimeoutEnabled(); 196 void UpdateTouchAckTimeoutEnabled();
194 197
195 // If a flush has been requested, signals a completed flush to the client if 198 // If a flush has been requested, signals a completed flush to the client if
196 // all events have been dispatched (i.e., |HasPendingEvents()| is false). 199 // all events have been dispatched (i.e., |HasPendingEvents()| is false).
197 void SignalFlushedIfNecessary(); 200 void SignalFlushedIfNecessary();
198 201
199 int routing_id() const { return routing_id_; } 202 int routing_id() const { return routing_id_; }
200 203
204 TouchAction allowed_touch_action() {
Charlie Reis 2017/01/13 21:37:17 This isn't needed in production code, right? Mayb
wjmaclean 2017/01/13 21:59:22 Done.
205 return touch_action_filter_.allowed_touch_action();
206 }
207
201 IPC::Sender* sender_; 208 IPC::Sender* sender_;
202 InputRouterClient* client_; 209 InputRouterClient* client_;
203 InputAckHandler* ack_handler_; 210 InputAckHandler* ack_handler_;
204 int routing_id_; 211 int routing_id_;
205 int frame_tree_node_id_; 212 int frame_tree_node_id_;
206 213
207 // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK 214 // (Similar to |mouse_move_pending_|.) True while waiting for SelectRange_ACK
208 // or MoveRangeSelectionExtent_ACK. 215 // or MoveRangeSelectionExtent_ACK.
209 bool select_message_pending_; 216 bool select_message_pending_;
210 217
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 InputEventStreamValidator output_stream_validator_; 261 InputEventStreamValidator output_stream_validator_;
255 262
256 float device_scale_factor_; 263 float device_scale_factor_;
257 264
258 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); 265 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
259 }; 266 };
260 267
261 } // namespace content 268 } // namespace content
262 269
263 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 270 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/site_per_process_browsertest.cc » ('j') | content/browser/site_per_process_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698